Update server.py
Some checks failed
/ check (push) Failing after 14s

This commit is contained in:
Nova Cat 2025-01-29 19:57:22 -08:00
parent 50282f850e
commit aaff5b977e

View file

@ -365,9 +365,13 @@ def session(connection, client, ip, isssl=False):
motd = open(motd_file).read()
connection.sendall(bytes(f":{server} 375 {pending} :- {server} Message of the Day -\r\n", "UTF-8"))
for i in motd.rstrip().split("\n"):
connection.sendall(bytes(f":{server} 376 {pending} :- {i}\r\n", "UTF-8"))
connection.sendall(bytes(f":{server} 372 {pending} :End of /MOTD command\r\n", "UTF-8"))
connection.sendall(bytes(f":{server} 372 {pending} :- {i}\r\n", "UTF-8"))
connection.sendall(bytes(f":{server} 376 {pending} :End of /MOTD command\r\n", "UTF-8"))
elif finished:
pendingCommands.append(text)
for comd in pendingCommands:
command = comd.split(" ")[0].upper()
args = comd.split(" ")[1:]
processedExternally = False
for i in commandProviders:
cmdrun = i.command(command=command, args=args, nick=pending, ip=client[0], user=property_list[pending], connection=connection)