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

Commits:

1 changed file:

Changes:

  • nbxmpp/structs.py
    ... ... @@ -378,6 +378,9 @@ class RosterItem:
    378 378
                 raise Exception('jid attribute missing')
    
    379 379
     
    
    380 380
             jid = JID.from_string(jid)
    
    381
    +        if jid.is_full:
    
    382
    +            raise Exception('full jid in roster not allowed')
    
    383
    +
    
    381 384
             groups = {group.getData() for group in node.getTags('group')}
    
    382 385
     
    
    383 386
             return cls(jid=jid,