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

fix command/parser bug II.

This commit is contained in:
Thorsten
2015-12-27 00:10:28 +01:00
parent 7035a02c53
commit 3767263b49

View File

@@ -219,8 +219,8 @@ class UrlBot(IdleBot):
reacted_on_command = self.data_parse_commands(msg_obj)
reacted_on_parse = self.data_parse_other(msg_obj)
if not any([reacted_on_command, reacted_on_parse]) \
and rate_limit(RATE_GLOBAL):
if (msg_obj['data'].startswith(config.conf_get('bot_nickname')) and not any(
[reacted_on_command, reacted_on_parse]) and rate_limit(RATE_GLOBAL)):
ret = else_command({'reply_user': msg_obj['from']._jid[2]})
if ret:
if 'msg' in ret: