diff --git a/server.py b/server.py
index 1a26c4b..ccd9c44 100644
--- a/server.py
+++ b/server.py
@@ -522,8 +522,7 @@ def session(connection, client, ip, isssl=False):
                                                     except:
                                                         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"]:
+                                                    if property_list[pending]["identified"] and channel in channel_modestore_identify:
                                                         print(property_list[pending]["identusername"])
                                                         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"]])