summaryrefslogtreecommitdiff
path: root/src/core.py
diff options
context:
space:
mode:
authorFlorent Le Coz <louiz@louiz.org>2012-07-03 01:59:25 +0200
committerFlorent Le Coz <louiz@louiz.org>2012-07-03 01:59:25 +0200
commit4bc215806b62f687faec9f5176d717f071cc6c9f (patch)
tree38310b270e4ec1792562948560878962f678e456 /src/core.py
parent737c6aae437530a0bd09852a01aabc583cc721bc (diff)
downloadpoezio-4bc215806b62f687faec9f5176d717f071cc6c9f.tar.gz
poezio-4bc215806b62f687faec9f5176d717f071cc6c9f.tar.bz2
poezio-4bc215806b62f687faec9f5176d717f071cc6c9f.tar.xz
poezio-4bc215806b62f687faec9f5176d717f071cc6c9f.zip
Improve the simple_notify plugin and the daemon to execute a command to clean the notification and to execute the remote commands through sh -c, letting us use pipes and redirections. Also adds the highlight event for plugin, and make the simple_notify plugin use it as well.
Diffstat (limited to 'src/core.py')
-rw-r--r--src/core.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/core.py b/src/core.py
index 0147cbdf..2d78123c 100644
--- a/src/core.py
+++ b/src/core.py
@@ -1445,7 +1445,8 @@ class Core(object):
body = xhtml.get_body_from_message_stanza(message)
if body:
date = date if delayed == True else None
- tab.add_message(body, date, nick_from, history=True if date else False)
+ if tab.add_message(body, date, nick_from, history=True if date else False):
+ self.events.trigger('highlight', message, tab)
if tab is self.current_tab():
tab.text_win.refresh()
tab.info_header.refresh(tab, tab.text_win)