plugin XEP-0045: fixed bad default parameter
This commit is contained in:
parent
1d08040db4
commit
47d547aef9
1 changed files with 3 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue