fix NameError: 's' is not defined in ctx.wrap_sock

This commit is contained in:
Julian Marcos 2022-01-20 19:12:02 +01:00
parent 4f299caaa9
commit 3aa6f72c9f
Signed by: jmjl
GPG Key ID: 1880FB2F1A6361AB
1 changed files with 1 additions and 1 deletions

2
bot.py
View File

@ -13,7 +13,7 @@ if __name__ == '__main__':
shared.sock = socket.socket()
ctx = ssl.create_default_context(purpose=ssl.Purpose.CLIENT_AUTH)
if tls == True:
shared.sock = ctx.wrap_socket(s)
shared.sock = ctx.wrap_socket(shared.sock)
shared.sock.connect((HOST, PORT))
_send(f"NICK {NICK}")
_send(f"USER {NICK} 0 * :{REALNAME}")