From ba60379c76e682176f264004745bd7c608ec0059 Mon Sep 17 00:00:00 2001 From: urlbot Date: Tue, 2 Dec 2014 16:37:35 +0100 Subject: [PATCH] re-add bot_user check and actually fix it --- plugins.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/plugins.py b/plugins.py index a25e148..26e53b4 100644 --- a/plugins.py +++ b/plugins.py @@ -471,6 +471,10 @@ def data_parse_commands(msg): if 2 > len(words): # need at least two words return None + # don't reply if beginning of the text matches bot_user + if not data.startswith(conf('bot_user')): + return None + if 'hangup' in data: logger('warn', 'received hangup: ' + data) sys.exit(1)