diff options
author | Florent Le Coz <louiz@louiz.org> | 2011-02-24 20:16:35 +0100 |
---|---|---|
committer | Florent Le Coz <louiz@louiz.org> | 2011-02-24 20:16:35 +0100 |
commit | 1d2bb35f3bcd35a242f8cbb37f743d70be436e5a (patch) | |
tree | 8069b0a898ccc5d9ddaf1190a8c26356cacb2908 | |
parent | 6f87306a7eca932e48b6fcc84f1cf5d5ba12fab5 (diff) | |
download | poezio-1d2bb35f3bcd35a242f8cbb37f743d70be436e5a.tar.gz poezio-1d2bb35f3bcd35a242f8cbb37f743d70be436e5a.tar.bz2 poezio-1d2bb35f3bcd35a242f8cbb37f743d70be436e5a.tar.xz poezio-1d2bb35f3bcd35a242f8cbb37f743d70be436e5a.zip |
Pass the message too
-rw-r--r-- | src/core.py | 12 |
1 files changed, 6 insertions, 6 deletions
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 |