mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-24 11:42:52 +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:
|
||||
(maybeNick, rest) = msg.args[1].split(None, 1)
|
||||
while not ircutils.isNick(maybeNick):
|
||||
if maybeNick[-1].isalnum():
|
||||
return ''
|
||||
maybeNick = maybeNick[:-1]
|
||||
if ircutils.nickEqual(maybeNick, nick):
|
||||
return rest
|
||||
|
Loading…
Reference in New Issue
Block a user