aboutsummaryrefslogtreecommitdiff
path: root/src/core_modules
diff options
context:
space:
mode:
authorGravatar jesopo2019-12-27 21:34:08 +0000
committerGravatar jesopo2019-12-27 21:34:08 +0000
commite3455f94fb1961ae947bbeb2dfcd6a2c7f18bdd2 (patch)
tree0eed347f3cffa80c1ac7149720fe0eba567e05b1 /src/core_modules
parentactually replace "$$" with "$" (diff)
signature
only respect CASEMAPPING when it's not an empty string
Diffstat (limited to 'src/core_modules')
-rw-r--r--src/core_modules/line_handler/core.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core_modules/line_handler/core.py b/src/core_modules/line_handler/core.py
index d72bf223..60bde125 100644
--- a/src/core_modules/line_handler/core.py
+++ b/src/core_modules/line_handler/core.py
@@ -51,7 +51,7 @@ def handle_005(events, event):
event["server"].channel_modes = list(modes[3])
if "CHANTYPES" in isupport:
event["server"].channel_types = list(isupport["CHANTYPES"])
- if "CASEMAPPING" in isupport:
+ if "CASEMAPPING" in isupport and isupport["CASEMAPPING"]:
event["server"].case_mapping = isupport["CASEMAPPING"]
if "STATUSMSG" in isupport:
event["server"].statusmsg = list(isupport["STATUSMSG"])