From 1d2bb35f3bcd35a242f8cbb37f743d70be436e5a Mon Sep 17 00:00:00 2001 From: Florent Le Coz Date: Thu, 24 Feb 2011 20:16:35 +0100 Subject: Pass the message too --- src/core.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src') diff --git a/src/core.py b/src/core.py index d0714c39..a844968a 100644 --- a/src/core.py +++ b/src/core.py @@ -220,25 +220,25 @@ class Core(object): def on_chatstate_active(self, message): if message['type'] == 'chat': # normal conversation - self.on_chatstate_normal_conversation("active") + self.on_chatstate_normal_conversation(message, "active") def on_chatstate_inactive(self, message): if message['type'] == 'chat': # normal conversation - self.on_chatstate_normal_conversation("inactive") + self.on_chatstate_normal_conversation(message, "inactive") def on_chatstate_composing(self, message): if message['type'] == 'chat': - self.on_chatstate_normal_conversation("composing") + self.on_chatstate_normal_conversation(message, "composing") def on_chatstate_paused(self, message): if message['type'] == 'chat': - self.on_chatstate_normal_conversation("paused") + self.on_chatstate_normal_conversation(message, "paused") def on_chatstate_gone(self, message): if message['type'] == 'chat': - self.on_chatstate_normal_conversation("gone") + self.on_chatstate_normal_conversation(message, "gone") - def on_chatstate_normal_conversation(self, state): + def on_chatstate_normal_conversation(self, message,state): tab = self.get_tab_of_conversation_with_jid(message['from'], False) if not tab: return -- cgit v1.2.3