summaryrefslogtreecommitdiff
path: root/src/core.py
diff options
context:
space:
mode:
authorFlorent Le Coz <louiz@louiz.org>2011-11-07 14:57:13 +0100
committerFlorent Le Coz <louiz@louiz.org>2011-11-07 14:57:13 +0100
commit41b54973309d49932e4a5459bd76b0ef671e4545 (patch)
tree23479d41f99698fb0b523018bfa456c69e61af26 /src/core.py
parent54962e6796301f6fb57d09f7778ab50f69e35943 (diff)
parent1f3fafe15569c50fc877b5b24209e1d1214ae97a (diff)
downloadpoezio-41b54973309d49932e4a5459bd76b0ef671e4545.tar.gz
poezio-41b54973309d49932e4a5459bd76b0ef671e4545.tar.bz2
poezio-41b54973309d49932e4a5459bd76b0ef671e4545.tar.xz
poezio-41b54973309d49932e4a5459bd76b0ef671e4545.zip
Merge branch 'plugins' of https://git.louiz.org/poezio into plugins
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 10e114e0..ba2c7b1d 100644
--- a/src/core.py
+++ b/src/core.py
@@ -559,6 +559,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
@@ -608,6 +609,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':
@@ -1048,6 +1050,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