add ircv3_botignore.py, to ignore inspircd.org/bot
users
This commit is contained in:
parent
9457430c15
commit
7bc24a8ba9
1 changed files with 10 additions and 0 deletions
10
modules/ircv3_botignore.py
Normal file
10
modules/ircv3_botignore.py
Normal 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()
|
Loading…
Reference in a new issue