From 358c5ec04cf4d21418d8bd44c433963cc160a12d Mon Sep 17 00:00:00 2001 From: swee <meow@swee.codes> Date: Fri, 14 Feb 2025 23:40:41 -0800 Subject: [PATCH] Update server.py --- server.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server.py b/server.py index caf201a..2b3bcdc 100644 --- a/server.py +++ b/server.py @@ -539,7 +539,7 @@ def session(connection, client, ip, isssl=False): users += f"{who_mode}{i} " dosend(bytes(f"{tags()}:{server} 353 {pending} = {channel} :{users}\r\n","UTF-8")) dosend(bytes(f"{tags()}:{server} 366 {pending} {channel} :End of /NAMES list.\r\n","UTF-8")) - if topic_list[channel] == "": + if topic_list[channel] != "": tpc = topic_list[channel] print(tpc) dosend(bytes(f"{tags()}:{server} 332 {pending} {channel} :{tpc}\r\n","UTF-8")) @@ -570,7 +570,7 @@ def session(connection, client, ip, isssl=False): else: dosend(bytes(f"{tags()}:{server} 482 {pending} {channel} :You're not channel operator\r\n","UTF-8")) else: - if topic_list[channel] == "": + if topic_list[channel] != "": tpc = topic_list[channel] dosend(bytes(f"{tags()}:{server} 332 {pending} {channel} :{tpc}\r\n","UTF-8")) else: