From a27f62a0aa39cfc2c7d3721a6da0652552b6f8a9 Mon Sep 17 00:00:00 2001 From: nyuszika7h Date: Thu, 20 Mar 2014 11:55:11 +0100 Subject: [PATCH] Ctcp: Fix regex for PING --- plugins/Ctcp/plugin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/Ctcp/plugin.py b/plugins/Ctcp/plugin.py index 0512480d5..dafec6af2 100644 --- a/plugins/Ctcp/plugin.py +++ b/plugins/Ctcp/plugin.py @@ -78,7 +78,7 @@ class Ctcp(callbacks.PluginRegexp): irc.reply(s, notice=True, private=True, to=msg.nick) def ctcpPing(self, irc, msg, match): - "\x01PING ?(.*)\x01" + "\x01PING(?: (.*))?\x01" self.log.info('Received CTCP PING from %s', msg.prefix) payload = match.group(1) if payload: