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" % ( event["stderr"].write("'%s' already has automode %s" % (
target_user.nickname, mode_name)) target_user.nickname, mode_name))
else: else:
automodes.append("o") automodes.append(mode)
event["target"].set_user_setting(target_user.get_id(), "automodes", event["target"].set_user_setting(target_user.get_id(), "automodes",
automodes) automodes)
event["stdout"].write("Added automode %s for '%s'" % ( event["stdout"].write("Added automode %s for '%s'" % (
@ -61,7 +61,7 @@ class Module(object):
event["stderr"].write("'%s' doesn't have automode %s" % ( event["stderr"].write("'%s' doesn't have automode %s" % (
target_user.nickname, mode_name)) target_user.nickname, mode_name))
else: else:
automodes.remove("o") automodes.remove(mode)
event["target"].set_user_setting(target_user.get_id(), "automodes", event["target"].set_user_setting(target_user.get_id(), "automodes",
automodes) automodes)
event["stdout"].write("Removed automode %s from '%s'" % ( event["stdout"].write("Removed automode %s from '%s'" % (