Update server.py
This commit is contained in:
parent
67899409b8
commit
bbcaa88de4
1 changed files with 6 additions and 3 deletions
|
@ -509,15 +509,18 @@ def session(connection, client):
|
||||||
if pending in users:
|
if pending in users:
|
||||||
for j in users:
|
for j in users:
|
||||||
if j != pending and not j in done:
|
if j != pending and not j in done:
|
||||||
nickname_list[j].sendall(bytes(f":{pending}!~{username}@{hostname} QUIT :{cause}\r\n","UTF-8"))
|
try:
|
||||||
done.append(j)
|
nickname_list[j].sendall(bytes(f":{pending}!~{username}@{hostname} QUIT :{cause}\r\n","UTF-8"))
|
||||||
|
done.append(j)
|
||||||
|
except:
|
||||||
|
print(traceback.format_exc())
|
||||||
# Remove the quitting user from the channel.
|
# Remove the quitting user from the channel.
|
||||||
try:
|
try:
|
||||||
channels_list[i].remove(pending)
|
channels_list[i].remove(pending)
|
||||||
except:
|
except:
|
||||||
print(traceback.format_exc())
|
print(traceback.format_exc())
|
||||||
except:
|
except:
|
||||||
pass
|
print(traceback.format_exc())
|
||||||
cleanup_manual()
|
cleanup_manual()
|
||||||
def cleanup():
|
def cleanup():
|
||||||
while True:
|
while True:
|
||||||
|
|
Loading…
Reference in a new issue