bitbot-3.11-fork/modules/ircv3_botignore.py

11 lines
313 B
Python
Raw Normal View History

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