From e8f5c21fcd4fd80534437ad914b6f80b9b606720 Mon Sep 17 00:00:00 2001 From: Florent Le Coz Date: Wed, 1 May 2013 18:39:33 +0200 Subject: Lets plugins change the presence BEFORE joining a muc, with a new plugin event --- src/core.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/core.py') diff --git a/src/core.py b/src/core.py index 6d882835..0d53f5b6 100644 --- a/src/core.py +++ b/src/core.py @@ -1735,11 +1735,11 @@ class Core(object): seconds = int(seconds) else: seconds = 0 - muc.join_groupchat(self.xmpp, room, nick, password, + muc.join_groupchat(self, room, nick, password, histo_length, current_status.message, current_status.show, seconds=seconds) if not tab: self.open_new_room(room, nick) - muc.join_groupchat(self.xmpp, room, nick, password, + muc.join_groupchat(self, room, nick, password, histo_length, current_status.message, current_status.show) else: tab.own_nick = nick @@ -3272,7 +3272,7 @@ class Core(object): # do not join rooms that do not have autojoin # but display them anyway if bm.autojoin: - muc.join_groupchat(self.xmpp, bm.jid, nick, + muc.join_groupchat(self, bm.jid, nick, passwd=bm.password, maxhistory=histo_length, status=self.status.message, -- cgit v1.2.3