fix NameError: 's' is not defined in ctx.wrap_sock
This commit is contained in:
parent
4f299caaa9
commit
3aa6f72c9f
2
bot.py
2
bot.py
|
@ -13,7 +13,7 @@ if __name__ == '__main__':
|
||||||
shared.sock = socket.socket()
|
shared.sock = socket.socket()
|
||||||
ctx = ssl.create_default_context(purpose=ssl.Purpose.CLIENT_AUTH)
|
ctx = ssl.create_default_context(purpose=ssl.Purpose.CLIENT_AUTH)
|
||||||
if tls == True:
|
if tls == True:
|
||||||
shared.sock = ctx.wrap_socket(s)
|
shared.sock = ctx.wrap_socket(shared.sock)
|
||||||
shared.sock.connect((HOST, PORT))
|
shared.sock.connect((HOST, PORT))
|
||||||
_send(f"NICK {NICK}")
|
_send(f"NICK {NICK}")
|
||||||
_send(f"USER {NICK} 0 * :{REALNAME}")
|
_send(f"USER {NICK} 0 * :{REALNAME}")
|
||||||
|
|
Loading…
Reference in New Issue