-def init_connection():
- print("CONNECTING TO " + servernet)
- io = IO(servernet, port)
- io.send_line("NICK " + nickname)
- io.send_line("USER " + username + " 0 * : ")
- io.send_line("JOIN " + channel)
- servername = io.recv_line().split(" ")[0][1:]
+def init_session():
+ print("CONNECTING TO " + SERVERNET)
+ io = IO(SERVERNET, PORT, TIMEOUT)
+ io.send_line("NICK " + NICKNAME)
+ io.send_line("USER " + USERNAME + " 0 * : ")
+ io.send_line("JOIN " + CHANNEL)