diff options
Diffstat (limited to 'src/common/xmpp/protocol.py')
-rw-r--r-- | src/common/xmpp/protocol.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/xmpp/protocol.py b/src/common/xmpp/protocol.py index 04bec8a58..3570cdbab 100644 --- a/src/common/xmpp/protocol.py +++ b/src/common/xmpp/protocol.py @@ -775,7 +775,7 @@ class DataForm(Node): for field in self.getTags('field'): name=field.getAttr('var') typ=field.getType() - if type(typ) in [type(''),type(u'')] and typ[-6:]=='-multi': + if type(typ) in [type(''),type(u'')] and typ.endswith('-multi'): val=[] for i in field.getTags('value'): val.append(i.getData()) else: val=field.getTagData('value') |