Improve supybot's handling of PRIVMSGs that start with 'supybot'

This commit is contained in:
James Vega 2004-02-02 02:36:53 +00:00
parent 4e6fb0b9fe
commit 7b8b1a25ca

View File

@ -79,6 +79,8 @@ def addressed(nick, msg):
try: try:
(maybeNick, rest) = msg.args[1].split(None, 1) (maybeNick, rest) = msg.args[1].split(None, 1)
while not ircutils.isNick(maybeNick): while not ircutils.isNick(maybeNick):
if maybeNick[-1].isalnum():
return ''
maybeNick = maybeNick[:-1] maybeNick = maybeNick[:-1]
if ircutils.nickEqual(maybeNick, nick): if ircutils.nickEqual(maybeNick, nick):
return rest return rest