addvoice/removevoice should use "v" not "o"
This commit is contained in:
parent
c8309d96ea
commit
dee26c45be
1 changed files with 2 additions and 2 deletions
|
@ -48,7 +48,7 @@ class Module(object):
|
|||
event["stderr"].write("'%s' already has automode %s" % (
|
||||
target_user.nickname, mode_name))
|
||||
else:
|
||||
automodes.append("o")
|
||||
automodes.append(mode)
|
||||
event["target"].set_user_setting(target_user.get_id(), "automodes",
|
||||
automodes)
|
||||
event["stdout"].write("Added automode %s for '%s'" % (
|
||||
|
@ -61,7 +61,7 @@ class Module(object):
|
|||
event["stderr"].write("'%s' doesn't have automode %s" % (
|
||||
target_user.nickname, mode_name))
|
||||
else:
|
||||
automodes.remove("o")
|
||||
automodes.remove(mode)
|
||||
event["target"].set_user_setting(target_user.get_id(), "automodes",
|
||||
automodes)
|
||||
event["stdout"].write("Removed automode %s from '%s'" % (
|
||||
|
|
Loading…
Reference in a new issue