This commit is contained in:
parent
b53a82fd4c
commit
c0f2b3b91c
1 changed files with 3 additions and 0 deletions
|
@ -310,7 +310,10 @@ def session(connection, client, ip, isssl=False):
|
||||||
try:
|
try:
|
||||||
if args[0] == data2["webirc_pass"]:
|
if args[0] == data2["webirc_pass"]:
|
||||||
hostname = args[2]
|
hostname = args[2]
|
||||||
|
client[0] = args[3]
|
||||||
connection.sendall(bytes(f":{server} NOTICE * :*** WebIRC detected, welcome to IRC!\r\n", "UTF-8"))
|
connection.sendall(bytes(f":{server} NOTICE * :*** WebIRC detected, welcome to IRC!\r\n", "UTF-8"))
|
||||||
|
if hostname != client[0]:
|
||||||
|
connection.sendall(bytes(f":{server} NOTICE * :*** Got WebIRC hostname! {hostname}\r\n", "UTF-8"))
|
||||||
except:
|
except:
|
||||||
print(traceback.format_exc())
|
print(traceback.format_exc())
|
||||||
break
|
break
|
||||||
|
|
Loading…
Add table
Reference in a new issue