mirror of
http://aero2k.de/t/repos/urlbot-native.git
synced 2017-09-06 15:25:38 +02:00
allow bots to activate plugins, but do not answer them
This commit is contained in:
@@ -161,6 +161,9 @@ class UrlBot(IdleBot):
|
||||
# message = _prevent_panic(message, msg_obj['from'].bare)
|
||||
# if get_bots_present(msg_obj['from'].bare):
|
||||
# return
|
||||
if msg_obj['mucnick'] in config.runtimeconf_get("other_bots", ()):
|
||||
self.logger.debug("not talking to the other bot named {}".format( msg_obj['mucnick']))
|
||||
return False
|
||||
self.send_message(
|
||||
mto=msg_obj['from'].bare,
|
||||
mbody=message,
|
||||
|
||||
Reference in New Issue
Block a user