From 5491d97704474276f09156eea5459c43551a17ba Mon Sep 17 00:00:00 2001 From: Jeremy Fincher Date: Tue, 26 Aug 2003 17:55:30 +0000 Subject: [PATCH] Gave a proper error message for a relaywhois is a nick that isn't online. --- plugins/Relay.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/plugins/Relay.py b/plugins/Relay.py index 7a9b4cbd8..30c7eaf86 100644 --- a/plugins/Relay.py +++ b/plugins/Relay.py @@ -377,6 +377,16 @@ class Relay(callbacks.Privmsg): replyIrc.reply(replyMsg, s) del self.whois[(irc, nick)] + def do402(self, irc, msg): + if not isinstance(irc, irclib.Irc): + irc = irc.getRealIrc() + nick = ircutils.toLower(msg.args[1]) + if (irc, nick) not in self.whois: + return + (replyIrc, replyMsg, d) = self.whois[(irc, nick)] + s = 'There is no %s on %s.' % (nick, self.abbreviations[irc]) + replyIrc.reply(replyMsg, s) + def _formatPrivmsg(self, nick, network, msg): # colorize nicks if self.color >= 1: