fix command disable bug
This commit is contained in:
parent
6452c1169c
commit
420c8f518d
|
@ -5,10 +5,12 @@ from util import hook
|
||||||
|
|
||||||
@hook.sieve
|
@hook.sieve
|
||||||
def sieve_suite(bot, input, func, kind, args):
|
def sieve_suite(bot, input, func, kind, args):
|
||||||
if input.command == 'PRIVMSG'
|
if input.command == 'PRIVMSG' and
|
||||||
if input.nick.lower()[-3:] == 'bot' and args.get('ignorebots', True):
|
input.nick.lower()[-3:] == 'bot' and args.get('ignorebots', True):
|
||||||
return None
|
return None
|
||||||
elif input.trigger in bot.config.get('disabled_commands', []):
|
|
||||||
|
if kind == "command":
|
||||||
|
if input.trigger in bot.config.get('disabled_commands', []):
|
||||||
return None
|
return None
|
||||||
|
|
||||||
fn = re.match(r'^plugins.(.+).py$', func._filename)
|
fn = re.match(r'^plugins.(.+).py$', func._filename)
|
||||||
|
|
Loading…
Reference in New Issue