add ircv3_botignore.py, to ignore inspircd.org/bot users

This commit is contained in:
jesopo 2019-06-19 22:37:03 +01:00
parent 9457430c15
commit 7bc24a8ba9

View file

@ -0,0 +1,10 @@
from src import ModuleManager, utils
TAG = utils.irc.MessageTag(None, "inspircd.org/bot")
class Module(ModuleManager.BaseModule):
@utils.hook("received.message.private")
@utils.hook("received.message.channel")
def message(self, event):
if TAG.present(event["tags"]):
event.eat()