Merge pull request #280 from allan-simon/develop
fixed setRole function,
This commit is contained in:
commit
69e55d7316
@ -304,7 +304,7 @@ class XEP_0045(BasePlugin):
|
|||||||
room), whereas affiliations are permanent (they last across groupchat
|
room), whereas affiliations are permanent (they last across groupchat
|
||||||
sessions).
|
sessions).
|
||||||
"""
|
"""
|
||||||
if role not in ('outcast', 'member', 'admin', 'owner', 'none'):
|
if role not in ('moderator', 'participant', 'visitor', 'none'):
|
||||||
raise TypeError
|
raise TypeError
|
||||||
query = ET.Element('{http://jabber.org/protocol/muc#admin}query')
|
query = ET.Element('{http://jabber.org/protocol/muc#admin}query')
|
||||||
item = ET.Element('item', {'role':role, 'nick':nick})
|
item = ET.Element('item', {'role':role, 'nick':nick})
|
||||||
|
Loading…
Reference in New Issue
Block a user