Update server.py

This commit is contained in:
Nova Cat 2025-02-14 23:51:54 -08:00
parent 78f567825b
commit e6060bb599

View file

@ -483,13 +483,15 @@ def session(connection, client, ip, isssl=False):
temp_mode = cmdrun["identify"][1] temp_mode = cmdrun["identify"][1]
property_list[pending]["modes"] = temp_mode property_list[pending]["modes"] = temp_mode
dosend(bytes(f"{tags()}:{pending} MODE {pending} +{temp_mode}\r\n","UTF-8")) dosend(bytes(f"{tags()}:{pending} MODE {pending} +{temp_mode}\r\n","UTF-8"))
if "initchan" in cmdrun and cmdrun["initchan"]["name"] not in channels_list: if "initchan" in cmdrun and :
print(cmdrun["initchan"]) print(cmdrun["initchan"])
channels_list[cmdrun["initchan"]["name"]] = [] for chran in cmdrun["initchan"]:
topic_list[cmdrun["initchan"]["name"]] = cmdrun["initchan"]["topic"] if chran["name"] not in channels_list:
lower_chans[cmdrun["initchan"]["name"].lower()] = cmdrun["initchan"]["name"] channels_list[chran["name"]] = []
channel_modestore_identify[cmdrun["initchan"]["name"]] = cmdrun["initchan"]["automodes"] topic_list[chran["name"]] = chran["topic"]
channel_modestore[cmdrun["initchan"]["name"]] = {} lower_chans[chran["name"].lower()] = chran["name"]
channel_modestore_identify[chran["name"]] = chran["automodes"]
channel_modestore[chran["name"]] = {}
if processedExternally: if processedExternally:
pass pass
elif command == "JOIN": elif command == "JOIN":