mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-07 19:49:23 +01:00
Fix for bug #814149, bad error message in relaywhois.
This commit is contained in:
parent
a91c55a93a
commit
d0f9e11a32
@ -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:
|
||||||
|
Loading…
Reference in New Issue
Block a user