From 72aed2e7fcd52831ec67867c6773c46f007864c4 Mon Sep 17 00:00:00 2001
From: swee <meow@swee.codes>
Date: Sat, 15 Feb 2025 00:00:42 -0800
Subject: [PATCH] Update server.py

---
 server.py | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

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: