From a1a36b622bdc0a40e9af31cd3eb9ab4224044816 Mon Sep 17 00:00:00 2001 From: Sheppy Date: Sat, 25 Feb 2017 23:39:27 +0100 Subject: [PATCH] msg now only push with magic word --- herbstluftwm/panel_content.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/herbstluftwm/panel_content.py b/herbstluftwm/panel_content.py index 4485621..99b06fa 100755 --- a/herbstluftwm/panel_content.py +++ b/herbstluftwm/panel_content.py @@ -87,6 +87,8 @@ def irc(): return "" msg = " ".join(tmp[-1].split(" ")[2:])[:50] user = tmp[-1].split(" ")[1][:15] + if not "%push" in msg: + return "" ret_string = "MSG FROM: "+user+"-> "+msg.rstrip('\n')+" - [ "+str(len(tmp))+" total ]" return color_panel(ret_string,RED) except(IOError):