summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsand <daniel@spatof.org>2013-05-13 15:21:23 (GMT)
committer sand <daniel@spatof.org>2013-05-13 15:21:23 (GMT)
commit8c53dbf93c16ce2226529cdcdbc2ab72f08f45d4 (patch)
tree384f7548a316f79183e73d6d01bb8062a5aae19f
parent85a6cc87222cd609da712f08bf3857bbb78095eb (diff)
fix per server ping
-rw-r--r--pinolo/irc.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/pinolo/irc.py b/pinolo/irc.py
index 02b7cea..11d53e0 100644
--- a/pinolo/irc.py
+++ b/pinolo/irc.py
@@ -393,7 +393,10 @@ class IRCConnection(object):
self.nick()
def on_PING(self, event):
- self.send(u"PONG %s" % event.argstr)
+ if event.text:
+ self.send(u"PONG %s" % event.text)
+ else:
+ seld.send(u"PONG foobar")
def on_CTCP_PING(self, event):
self.ctcp_ping_reply(event.user.nickname, event.argstr)