From 354c7ff999d494954ec9b5647c73cba6688b7630 Mon Sep 17 00:00:00 2001 From: Juhani Haverinen Date: Fri, 13 Feb 2015 17:52:15 +0200 Subject: [PATCH] Ignore lines starting with ZWSP --- botcmd.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/botcmd.py b/botcmd.py index 41308e6..a7dbd65 100644 --- a/botcmd.py +++ b/botcmd.py @@ -114,6 +114,8 @@ def parse((line,irc)): if nick in blacklist: return + elif len(line) >= 4 and len(line[3]) >= 4 and line[3][:4] == ':\xe2\x80\x8b': # If line begins with ZWSP + return if line[1]=='PRIVMSG': if line[3]==':#echo':