parent
50282f850e
commit
aaff5b977e
1 changed files with 325 additions and 321 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue