From 7b800fb4c6fdd49c26d469b2d447c4b3564d1644 Mon Sep 17 00:00:00 2001 From: James Vega Date: Thu, 16 Dec 2004 18:07:55 +0000 Subject: [PATCH] Send proper CTCP responses. --- plugins/Ctcp.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/plugins/Ctcp.py b/plugins/Ctcp.py index f742506c8..eef0fd136 100644 --- a/plugins/Ctcp.py +++ b/plugins/Ctcp.py @@ -125,17 +125,19 @@ class Ctcp(callbacks.PrivmsgCommandAndRegexp): def ctcpTime(self, irc, msg, match): "\x01TIME\x01" self.log.info('Received CTCP TIME from %s' % msg.prefix) - self._reply(irc, msg, time.ctime()) + self._reply(irc, msg, 'TIME %s' % time.ctime()) def ctcpFinger(self, irc, msg, match): "\x01FINGER\x01" self.log.info('Received CTCP FINGER from %s' % msg.prefix) - self._reply(irc, msg, 'Supybot, the best Python IRC bot in existence!') + self._reply(irc, msg, + 'FINGER Supybot, the best Python IRC bot in existence!') def ctcpSource(self, irc, msg, match): "\x01SOURCE\x01" self.log.info('Received CTCP SOURCE from %s' % msg.prefix) - self._reply(irc, msg, 'http://www.sourceforge.net/projects/supybot/') + self._reply(irc, msg, + 'SOURCE http://www.sourceforge.net/projects/supybot/') def doNotice(self, irc, msg): if ircmsgs.isCtcp(msg):