This commit is contained in:
parent
6c89da16af
commit
8bfd72c416
1 changed files with 7 additions and 3 deletions
10
server.py
10
server.py
|
@ -306,9 +306,13 @@ def session(connection, client, ip, isssl=False):
|
||||||
elif args[0].upper() == "END":
|
elif args[0].upper() == "END":
|
||||||
CAPEND = True
|
CAPEND = True
|
||||||
elif command == "WEBIRC" and not finished:
|
elif command == "WEBIRC" and not finished:
|
||||||
if args[0] == data["webirc_pass"]:
|
try:
|
||||||
hostname = args[2]
|
if args[0] == data["webirc_pass"]:
|
||||||
connection.sendall(bytes(f":{server} NOTICE * :*** WebIRC detected, welcome to IRC!\r\n", "UTF-8"))
|
hostname = args[2]
|
||||||
|
connection.sendall(bytes(f":{server} NOTICE * :*** WebIRC detected, welcome to IRC!\r\n", "UTF-8"))
|
||||||
|
except:
|
||||||
|
print(traceback.format_exc())
|
||||||
|
break
|
||||||
elif (ready and already_set) and (CAPEND if usesIRCv3 else True) and not finished:
|
elif (ready and already_set) and (CAPEND if usesIRCv3 else True) and not finished:
|
||||||
cleanup_manual()
|
cleanup_manual()
|
||||||
print(f"User {pending} successfully logged in.")
|
print(f"User {pending} successfully logged in.")
|
||||||
|
|
Loading…
Add table
Reference in a new issue