(229 . 7)(229 . 10)
32 # Auth to server
33 send("NICK %s\r\n" % Nick)
34 send("USER %s %s %s :%s\r\n" % (Nick, Nick, Nick, Nick))
35 send("NICKSERV IDENTIFY %s %s\r\n" % (Nick, Pass))
36
37 # If this is a production bot, rather than test, there will be a PW:
38 if Pass != "":
39 send("NICKSERV IDENTIFY %s %s\r\n" % (Nick, Pass))
40
41 time.sleep(Join_Delay) # wait to join until fleanode eats auth
42
(258 . 7)(261 . 10)
44 connected = False
45 continue
46 try:
47 data = data.strip(b'\r\n').decode("utf-8")
48 try:
49 data = data.strip(b'\r\n').decode("utf-8")
50 except UnicodeDecodeError:
51 data = data.strip(b'\r\n').decode('latin-1')
52 for l in data.splitlines():
53 received_line(l)
54 continue