From c8d6e512d267d87ead56899a22f2a30064cb117c Mon Sep 17 00:00:00 2001 From: Allan Simon Date: Fri, 7 Feb 2014 12:11:28 +0800 Subject: fixed setRole function, the check where made against 'affiliation' values, now we do that against actual role values --- sleekxmpp/plugins/xep_0045.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sleekxmpp/plugins') 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}) -- cgit v1.2.3