Update server.py
This commit is contained in:
parent
0f42b0dc4f
commit
1fb1389e57
1 changed files with 1 additions and 1 deletions
|
@ -92,6 +92,7 @@ def pinger(nick, connection):
|
||||||
connection.close()
|
connection.close()
|
||||||
break
|
break
|
||||||
def session(connection, client):
|
def session(connection, client):
|
||||||
|
global property_list
|
||||||
pending = "*" # The nickname of the client
|
pending = "*" # The nickname of the client
|
||||||
already_set = False # If the client gave the server a NICK packet
|
already_set = False # If the client gave the server a NICK packet
|
||||||
ready = False # If the client gave the server a USER packet
|
ready = False # If the client gave the server a USER packet
|
||||||
|
@ -283,7 +284,6 @@ def session(connection, client):
|
||||||
if len(args) == 0:
|
if len(args) == 0:
|
||||||
connection.sendall(bytes(f":{server} 461 {pending} {command} :Not enough parameters\r\n","UTF-8"))
|
connection.sendall(bytes(f":{server} 461 {pending} {command} :Not enough parameters\r\n","UTF-8"))
|
||||||
else:
|
else:
|
||||||
global property_list
|
|
||||||
channel = text.split(" ")[1]
|
channel = text.split(" ")[1]
|
||||||
if channel in channels_list:
|
if channel in channels_list:
|
||||||
for i in channels_list[channel]:
|
for i in channels_list[channel]:
|
||||||
|
|
Loading…
Reference in a new issue