aboutsummaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorGravatar jesopo2018-09-06 18:10:12 +0100
committerGravatar jesopo2018-09-06 18:10:12 +0100
commitdee26c45bee6b186f875bd6754ba8282dc9597e4 (patch)
tree4d7838f3149f4bcb81e6de08cd0f016d3528bb91 /modules
parentOnly do automode when a user is identified, also do automode on an IRCv3 (diff)
signature
addvoice/removevoice should use "v" not "o"
Diffstat (limited to 'modules')
-rw-r--r--modules/auto_mode.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/auto_mode.py b/modules/auto_mode.py
index 6deff530..dc785adb 100644
--- a/modules/auto_mode.py
+++ b/modules/auto_mode.py
@@ -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'" % (