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
1 changed files with 3 additions and 0 deletions

View File

@ -326,6 +326,9 @@ class Relay(callbacks.Privmsg):
realIrc = irc.getRealIrc()
try:
(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)
except ValueError:
if len(self.abbreviations) == 2: