Fix for bug #814149, bad error message in relaywhois.

This commit is contained in:
Jeremy Fincher 2003-09-29 05:34:02 +00:00
parent a91c55a93a
commit d0f9e11a32

View File

@ -326,6 +326,9 @@ class Relay(callbacks.Privmsg):
realIrc = irc.getRealIrc() realIrc = irc.getRealIrc()
try: try:
(nick, network) = nickAtNetwork.split('@', 1) (nick, network) = nickAtNetwork.split('@', 1)
if not ircutils.isNick(nick):
irc.error(msg, '%s is not an IRC nick.' % nick)
return
nick = ircutils.toLower(nick) nick = ircutils.toLower(nick)
except ValueError: except ValueError:
if len(self.abbreviations) == 2: if len(self.abbreviations) == 2: