|
|
|
@ -72,8 +72,9 @@ class IRC:
|
|
|
|
|
|
|
|
|
|
def keepalive(self, line):
|
|
|
|
|
"""Stay connected to a server by responding to server pings."""
|
|
|
|
|
if "PING" in line:
|
|
|
|
|
self.send("PONG", ":" + line.split(":", 2)[1].split(" ", 1)[0])
|
|
|
|
|
resp = line.split(" ", 1)[1]
|
|
|
|
|
if ("PING " + resp) in line:
|
|
|
|
|
self.send("PONG", resp)
|
|
|
|
|
|
|
|
|
|
def join_channels(self, channels):
|
|
|
|
|
"""Join channels given a list of channel names."""
|
|
|
|
|