mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-23 11:09:23 +01:00
Gave a proper error message for a relaywhois is a nick that isn't online.
This commit is contained in:
parent
58d444b571
commit
5491d97704
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user