summaryrefslogtreecommitdiff
path: root/sleekxmpp/plugins
diff options
context:
space:
mode:
authorLance Stout <lancestout@gmail.com>2014-02-09 14:39:08 -0800
committerLance Stout <lancestout@gmail.com>2014-02-09 14:39:08 -0800
commit69e55d731616fade6f9062bc9d4b058f912d09ca (patch)
tree741281b4fca77273df9a42347031293f149b18fe /sleekxmpp/plugins
parent158411e918745931429739769ca72080dfb4f07f (diff)
parentc8d6e512d267d87ead56899a22f2a30064cb117c (diff)
downloadslixmpp-69e55d731616fade6f9062bc9d4b058f912d09ca.tar.gz
slixmpp-69e55d731616fade6f9062bc9d4b058f912d09ca.tar.bz2
slixmpp-69e55d731616fade6f9062bc9d4b058f912d09ca.tar.xz
slixmpp-69e55d731616fade6f9062bc9d4b058f912d09ca.zip
Merge pull request #280 from allan-simon/develop
fixed setRole function,
Diffstat (limited to 'sleekxmpp/plugins')
-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})