plugin XEP-0045: fixed bad default parameter

This commit is contained in:
Goffi 2015-11-29 22:47:52 +01:00
commit 47d547aef9

View file

@ -380,10 +380,12 @@ class XEP_0045(object):
# > /usr/local/lib/python2.7/dist-packages/twisted/internet/defer.py(480)_startRunCallbacks()
# -> raise AlreadyCalledError(extra)
def _join(self, room_jid_s, nick, options={}, profile_key=C.PROF_KEY_NONE):
def _join(self, room_jid_s, nick, options=None, profile_key=C.PROF_KEY_NONE):
"""join method used by bridge: use the join method, but doesn't return any deferred
@return: unicode (the room bare)
"""
if options is None:
options = {}
profile = self.host.memory.getProfileName(profile_key)
if not self.checkClient(profile):
return