Philipp Hörist pushed to branch master at gajim / python-nbxmpp
Commits:
-
6d9d8f72
by Philipp Hörist at 2019-03-06T22:19:59Z
1 changed file:
Changes:
| ... | ... | @@ -1261,6 +1261,8 @@ class Presence(Protocol): |
| 1261 | 1261 |
"""
|
| 1262 | 1262 |
Set the show value of the message
|
| 1263 | 1263 |
"""
|
| 1264 |
+ if val not in ['away', 'chat', 'dnd', 'xa']:
|
|
| 1265 |
+ raise ValueError('Invalid show value: %s' % val)
|
|
| 1264 | 1266 |
self.setTagData('show', val)
|
| 1265 | 1267 |
|
| 1266 | 1268 |
def setStatus(self, val):
|