diff --git a/server.py b/server.py index 0a35bd6..bc6f540 100644 --- a/server.py +++ b/server.py @@ -523,9 +523,11 @@ def session(connection, client, ip, isssl=False): dosend(bytes(f"{tags()}:{server} NOTICE * :*** Could not join {channel}\r\n","UTF-8")) print(channels_list) print(channel_modestore_identify[channel]) - if property_list[pending]["identified"] and property_list[pending]["identusername"] in channel_modestore_identify[channel]: - print(f"{pending} has an identify mode, setting mode " + channel_modestore_identify[channel][property_list[pending]["identusername"]]) - channel_modestore[channel][pending] = channel_modestore_identify[channel][property_list[pending]["identusername"]] + print(property_list[pending]["identusername"]) + if property_list[pending]["identified"]: + if property_list[pending]["identusername"] in channel_modestore_identify[channel]: + print(f"{pending} has an identify mode, setting mode " + channel_modestore_identify[channel][property_list[pending]["identusername"]]) + channel_modestore[channel][pending] = channel_modestore_identify[channel][property_list[pending]["identusername"]] for i in channels_list[channel]: try: if i != pending: