aboutsummaryrefslogtreecommitdiff
path: root/modules/channel_op.py
diff options
context:
space:
mode:
authorGravatar jesopo2018-07-02 16:15:26 +0100
committerGravatar jesopo2018-07-02 16:15:26 +0100
commit84cc65526f3f701ba4fed666a8ce6a3a8d487ae9 (patch)
treed003fa2c3b54ab68a132313907f84098b3114948 /modules/channel_op.py
parentAdded guid functionality to random_number.py (diff)
Track user channel modes by user object, not nickname
Diffstat (limited to 'modules/channel_op.py')
-rw-r--r--modules/channel_op.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/channel_op.py b/modules/channel_op.py
index 03d97426..1093ad10 100644
--- a/modules/channel_op.py
+++ b/modules/channel_op.py
@@ -90,7 +90,7 @@ class Module(object):
if len(set(nicknames) & set(event["message_split"])) >= event["channel"].get_setting(
"highlight-spam-threshold", 10):
protection_enabled = event["channel"].get_setting("highlight-spam-protection", False)
- has_mode = event["channel"].mode_or_above(event["user"].nickname, "v")
+ has_mode = event["channel"].mode_or_above(event["user"], "v")
should_ban = event["channel"].get_setting("highlight-spam-ban", False)
if protection_enabled and not has_mode:
if should_ban: