allow bots to activate plugins, but do not answer them

This commit is contained in:
Thorsten S
2015-12-21 17:03:38 +01:00
parent 5c2f1b82ae
commit d2301d1679
4 changed files with 9 additions and 9 deletions

View File

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