summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/core.py3
-rwxr-xr-xsrc/daemon.py2
2 files changed, 3 insertions, 2 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)
diff --git a/src/daemon.py b/src/daemon.py
index 4b4c0b79..bd6dbd85 100755
--- a/src/daemon.py
+++ b/src/daemon.py
@@ -40,7 +40,7 @@ class Executor(threading.Thread):
def run(self):
log.info('executing %s' % (self.command.strip(),))
- command = shlex.split(self.command)
+ command = shlex.split('sh -c "%s"' % self.command)
subprocess.call(command)
def main():