2019-07-09 20:25:43 +00:00
|
|
|
from src import EventManager, ModuleManager, utils
|
2019-06-19 21:37:03 +00:00
|
|
|
|
|
|
|
TAG = utils.irc.MessageTag(None, "inspircd.org/bot")
|
|
|
|
|
|
|
|
class Module(ModuleManager.BaseModule):
|
|
|
|
@utils.hook("received.message.private")
|
|
|
|
@utils.hook("received.message.channel")
|
2019-07-09 20:25:43 +00:00
|
|
|
@utils.kwarg("priority", EventManager.PRIORITY_HIGH)
|
2019-06-19 21:37:03 +00:00
|
|
|
def message(self, event):
|
|
|
|
if TAG.present(event["tags"]):
|
|
|
|
event.eat()
|