only respect CASEMAPPING when it's not an empty string

This commit is contained in:
jesopo 2019-12-27 21:34:08 +00:00
parent cff1a55fe6
commit e3455f94fb

View file

@ -51,7 +51,7 @@ def handle_005(events, event):
event["server"].channel_modes = list(modes[3]) event["server"].channel_modes = list(modes[3])
if "CHANTYPES" in isupport: if "CHANTYPES" in isupport:
event["server"].channel_types = list(isupport["CHANTYPES"]) event["server"].channel_types = list(isupport["CHANTYPES"])
if "CASEMAPPING" in isupport: if "CASEMAPPING" in isupport and isupport["CASEMAPPING"]:
event["server"].case_mapping = isupport["CASEMAPPING"] event["server"].case_mapping = isupport["CASEMAPPING"]
if "STATUSMSG" in isupport: if "STATUSMSG" in isupport:
event["server"].statusmsg = list(isupport["STATUSMSG"]) event["server"].statusmsg = list(isupport["STATUSMSG"])