Revert "added ignore mode"
This commit is contained in:
parent
f893d9ed65
commit
9a06f291d2
1 changed files with 0 additions and 19 deletions
|
@ -1,19 +0,0 @@
|
||||||
from util import hook
|
|
||||||
import botmodes
|
|
||||||
|
|
||||||
|
|
||||||
@hook.sieve
|
|
||||||
def ignore(bot, input, func, kind, args):
|
|
||||||
channel = None
|
|
||||||
if input.chan in input.users.channels:
|
|
||||||
channel = input.users.channels[input.chan]
|
|
||||||
user = None
|
|
||||||
if input.nick in input.users.users:
|
|
||||||
user = input.users.users[input.nick]
|
|
||||||
c = botmodes.Checker(bot, user, channel)
|
|
||||||
db = bot.get_db_connection(input.conn)
|
|
||||||
if c.check("neverquiet." + kind, db):
|
|
||||||
return input
|
|
||||||
if c.check("quiet." + kind, db):
|
|
||||||
return
|
|
||||||
return input
|
|
Reference in a new issue