1
0
mirror of http://aero2k.de/t/repos/urlbot-native.git synced 2017-09-06 15:25:38 +02:00

re-add bot_user check and actually fix it

This commit is contained in:
urlbot
2014-12-02 16:37:35 +01:00
parent 83d6ecff37
commit ba60379c76

View File

@@ -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)