removed default action
This commit is contained in:
parent
2c71c75e66
commit
d74a57d387
1 changed files with 5 additions and 11 deletions
|
@ -39,14 +39,11 @@ def listmuted(inp, bot=None):
|
||||||
return "Muted users/channels are: " + ", ".join(muted)
|
return "Muted users/channels are: " + ", ".join(muted)
|
||||||
|
|
||||||
|
|
||||||
@hook.command(autohelp=False, adminonly=True)
|
@hook.command(adminonly=True)
|
||||||
def mute(inp, input=None, db=None):
|
def mute(inp, input=None, db=None):
|
||||||
".mute <channel/user> -- Makes the bot ignore <channel/user>."
|
".mute <channel/user> -- Makes the bot ignore <channel/user>."
|
||||||
"If no channel is specified, it is muted in the current channel."
|
"If no channel is specified, it is muted in the current channel."
|
||||||
if inp:
|
target = inp
|
||||||
target = inp
|
|
||||||
else:
|
|
||||||
target = input.chan
|
|
||||||
|
|
||||||
if is_muted(target):
|
if is_muted(target):
|
||||||
input.notice("%s is already muted." % target)
|
input.notice("%s is already muted." % target)
|
||||||
|
@ -55,15 +52,12 @@ def mute(inp, input=None, db=None):
|
||||||
input.notice("%s has been muted." % target)
|
input.notice("%s has been muted." % target)
|
||||||
|
|
||||||
|
|
||||||
@hook.command(autohelp=False, adminonly=True)
|
@hook.command(adminonly=True)
|
||||||
def unmute(inp, input=None, db=None):
|
def unmute(inp, input=None, db=None):
|
||||||
".unmute <channel/user> -- Makes the bot listen to <channel/user>."
|
".unmute <channel/user> -- Makes the bot listen to <channel/user>."
|
||||||
"If no channel is specified, it is unmuted in the current channel."
|
"If no channel is specified, it is unmuted in the current channel."
|
||||||
if inp:
|
target = inp
|
||||||
target = inp
|
|
||||||
else:
|
|
||||||
target = input.chan
|
|
||||||
|
|
||||||
if is_muted(target):
|
if is_muted(target):
|
||||||
unmute_target(target)
|
unmute_target(target)
|
||||||
input.notice("%s has been unmuted." % target)
|
input.notice("%s has been unmuted." % target)
|
||||||
|
|
Reference in a new issue