addvoice/removevoice should use "v" not "o"

This commit is contained in:
jesopo 2018-09-06 18:10:12 +01:00
parent c8309d96ea
commit dee26c45be

View file

@ -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'" % (