Fix bug with MOTD, fix bug on JOIN with Revolution IRC
All checks were successful
/ check (push) Successful in 18s
All checks were successful
/ check (push) Successful in 18s
This commit is contained in:
parent
43bd7d8fd7
commit
591b857305
1 changed files with 4 additions and 2 deletions
|
@ -267,8 +267,8 @@ def session(connection, client, ip, ssl=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"))
|
||||
# End the MOTD
|
||||
connection.sendall(bytes(f":{pending} MODE {pending} +iw\r\n","UTF-8"))
|
||||
finished = True
|
||||
|
@ -299,6 +299,8 @@ def session(connection, client, ip, ssl=False):
|
|||
pass
|
||||
elif command == "JOIN":
|
||||
channels = text.split(" ")[1]
|
||||
if channels[0][0] == ":":
|
||||
channels[0] = channels[0][1:]
|
||||
for channelt in channels.split(","):
|
||||
channel = channelt.strip()
|
||||
if channel.lower() in lower_chans:
|
||||
|
|
Loading…
Add table
Reference in a new issue