Fixed bug
This commit is contained in:
parent
d6e2dc8f85
commit
3e2dad827f
|
@ -5,14 +5,17 @@ muted = []
|
||||||
|
|
||||||
|
|
||||||
def mute_target(target):
|
def mute_target(target):
|
||||||
|
target = target.lower()
|
||||||
muted.append(target)
|
muted.append(target)
|
||||||
|
|
||||||
|
|
||||||
def unmute_target(target):
|
def unmute_target(target):
|
||||||
|
target = target.lower()
|
||||||
muted.remove(target)
|
muted.remove(target)
|
||||||
|
|
||||||
|
|
||||||
def is_muted(target):
|
def is_muted(target):
|
||||||
|
target = target.lower()
|
||||||
if target in muted:
|
if target in muted:
|
||||||
return True
|
return True
|
||||||
else:
|
else:
|
||||||
|
@ -31,10 +34,9 @@ def mutesieve(bot, input, func, type, args):
|
||||||
return input
|
return input
|
||||||
|
|
||||||
|
|
||||||
@hook.command("muted")
|
|
||||||
@hook.command(autohelp=False)
|
@hook.command(autohelp=False)
|
||||||
def listmuted(inp, bot=None):
|
def listmuted(inp, bot=None):
|
||||||
".listmuted -- Lists the muted users/channels."
|
".listmuted -- Lists muted users/channels."
|
||||||
if muted:
|
if muted:
|
||||||
return "Muted users/channels are: " + ", ".join(muted)
|
return "Muted users/channels are: " + ", ".join(muted)
|
||||||
else:
|
else:
|
||||||
|
|
Reference in a new issue