summaryrefslogtreecommitdiff
path: root/sleekxmpp
diff options
context:
space:
mode:
authorAllan Simon <simona@gobeta.com.cn>2014-02-07 12:11:28 +0800
committerAllan Simon <simona@gobeta.com.cn>2014-02-07 12:11:28 +0800
commitc8d6e512d267d87ead56899a22f2a30064cb117c (patch)
treef37e316dc4f761ce1eebcbb30134e8a6ccdb8edb /sleekxmpp
parenteb6ac68d5c8f323ef7036a4daf4e3cc0e55bfc85 (diff)
downloadslixmpp-c8d6e512d267d87ead56899a22f2a30064cb117c.tar.gz
slixmpp-c8d6e512d267d87ead56899a22f2a30064cb117c.tar.bz2
slixmpp-c8d6e512d267d87ead56899a22f2a30064cb117c.tar.xz
slixmpp-c8d6e512d267d87ead56899a22f2a30064cb117c.zip
fixed setRole function, the check where made against 'affiliation' values, now we do that against actual role values
Diffstat (limited to 'sleekxmpp')
-rw-r--r--sleekxmpp/plugins/xep_0045.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/sleekxmpp/plugins/xep_0045.py b/sleekxmpp/plugins/xep_0045.py
index 9587fa1a..ca5ed1ef 100644
--- a/sleekxmpp/plugins/xep_0045.py
+++ b/sleekxmpp/plugins/xep_0045.py
@@ -304,7 +304,7 @@ class XEP_0045(BasePlugin):
room), whereas affiliations are permanent (they last across groupchat
sessions).
"""
- if role not in ('outcast', 'member', 'admin', 'owner', 'none'):
+ if role not in ('moderator', 'participant', 'visitor', 'none'):
raise TypeError
query = ET.Element('{http://jabber.org/protocol/muc#admin}query')
item = ET.Element('item', {'role':role, 'nick':nick})