Fix a crash introduce something like 5-6 commits ago, np.

This commit is contained in:
Florent Le Coz 2013-05-06 22:46:25 +02:00
parent be6f5ba512
commit 38af82501c

View file

@ -1537,12 +1537,12 @@ class MucTab(ChatTab):
delay = config.get_by_tabname('autorejoin_delay', "5", self.general_jid, True)
delay = common.parse_str_to_secs(delay)
if delay <= 0:
muc.join_groupchat(self.core.xmpp, self.name, self.own_nick)
muc.join_groupchat(self.core, self.name, self.own_nick)
else:
self.core.add_timed_event(timed_events.DelayedEvent(
delay,
muc.join_groupchat,
self.core.xmpp,
self.core,
self.name,
self.own_nick))
@ -1579,12 +1579,12 @@ class MucTab(ChatTab):
delay = config.get_by_tabname('autorejoin_delay', "5", self.general_jid, True)
delay = common.parse_str_to_secs(delay)
if delay <= 0:
muc.join_groupchat(self.core.xmpp, self.name, self.own_nick)
muc.join_groupchat(self.core, self.name, self.own_nick)
else:
self.core.add_timed_event(timed_events.DelayedEvent(
delay,
muc.join_groupchat,
self.core.xmpp,
self.core,
self.name,
self.own_nick))
else: