mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-25 12:12:54 +01:00
Improve supybot's handling of PRIVMSGs that start with 'supybot'
This commit is contained in:
parent
4e6fb0b9fe
commit
7b8b1a25ca
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user