Compare commits

..

2 Commits

Author SHA1 Message Date
9de4990d69 connect via ipv6 2023-07-16 23:38:37 +00:00
ef88dad4a8 set modes before joining channels 2023-07-16 23:33:19 +00:00

View File

@ -39,7 +39,7 @@ r = "\x034"
g = "\x033"
context = ssl.create_default_context()
with socket.socket(socket.AF_INET, socket.SOCK_STREAM) as sock:
with socket.socket(socket.AF_INET6, socket.SOCK_STREAM) as sock:
irc = context.wrap_socket(sock, server_hostname=host)
@ -263,11 +263,11 @@ def start(host, port, nick, password, chans):
sleep(6)
auth(nick, password)
sleep(2)
mode(nick)
sleep(2)
for chan in chans:
join(chan)
sleep(2)
mode(nick)
sleep(2)
except Exception as err:
print("FAIL: "+err)