Philipp Hörist pushed to branch master at gajim / python-nbxmpp

Commits:

1 changed file:

Changes:

  • nbxmpp/protocol.py
    ... ... @@ -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):