h/plugins/mongblocker.py

7 lines
361 B
Python
Raw Permalink Normal View History

2015-11-04 18:26:40 +00:00
from util import hook
@hook.regex("\x07")
def kickbell(line, input=None, conn=None):
conn.msg("ChanServ", "KICK " + input.params.split()[0] + " " + input.nick + " You have won the no-bell peace prize")
input.notice("Please do not send the bell character to " + input.params.split()[0] + ". You have just disrupted the experience for a lot of people.")