summaryrefslogtreecommitdiff
path: root/src/core.py
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2011-11-07 14:45:08 +0100
committermathieui <mathieui@mathieui.net>2011-11-07 14:45:08 +0100
commit1f3fafe15569c50fc877b5b24209e1d1214ae97a (patch)
treec8d99d661ed19ed2deb453ba33e8bfb1712b58de /src/core.py
parent452f62ecf41f416c7a3af33f8e73e306cdafd1c4 (diff)
downloadpoezio-1f3fafe15569c50fc877b5b24209e1d1214ae97a.tar.gz
poezio-1f3fafe15569c50fc877b5b24209e1d1214ae97a.tar.bz2
poezio-1f3fafe15569c50fc877b5b24209e1d1214ae97a.tar.xz
poezio-1f3fafe15569c50fc877b5b24209e1d1214ae97a.zip
Add somme triggers
Diffstat (limited to 'src/core.py')
-rw-r--r--src/core.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/core.py b/src/core.py
index 8e85ce90..d19443a8 100644
--- a/src/core.py
+++ b/src/core.py
@@ -555,6 +555,7 @@ class Core(object):
tab = self.open_private_window(room_from, nick_from, False)
if not tab:
return
+ self.events.trigger('private_msg', message)
body = xhtml.get_body_from_message_stanza(message)
if not body:
return
@@ -604,6 +605,7 @@ class Core(object):
When receiving "normal" messages (from someone in our roster)
"""
jid = message['from']
+ self.events.trigger('conversation_msg', message)
body = xhtml.get_body_from_message_stanza(message)
if not body:
if message['type'] == 'error':
@@ -1044,6 +1046,7 @@ class Core(object):
if tab.get_user_by_name(nick_from) and\
tab.get_user_by_name(nick_from) in tab.ignores:
return
+ self.events.trigger('muc_mg', message)
body = xhtml.get_body_from_message_stanza(message)
if body:
date = date if delayed == True else None