diff options
| author | 2018-07-02 16:15:26 +0100 | |
|---|---|---|
| committer | 2018-07-02 16:15:26 +0100 | |
| commit | 84cc65526f3f701ba4fed666a8ce6a3a8d487ae9 (patch) | |
| tree | d003fa2c3b54ab68a132313907f84098b3114948 /modules/channel_op.py | |
| parent | Added 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.py | 2 |
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: |
