mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-28 05:32:51 +01:00
Fixed an infinite loop bug.
This commit is contained in:
parent
f11e7d19d3
commit
4539f388bf
@ -119,10 +119,14 @@ def addressed(nick, msg, prefixChars=None, nicks=None,
|
||||
if lowered.startswith(nick):
|
||||
try:
|
||||
(maybeNick, rest) = payload.split(None, 1)
|
||||
toContinue = False
|
||||
while not ircutils.isNick(maybeNick, strictRfc=True):
|
||||
if maybeNick[-1].isalnum():
|
||||
continue
|
||||
toContinue = True
|
||||
break
|
||||
maybeNick = maybeNick[:-1]
|
||||
if toContinue:
|
||||
continue
|
||||
if ircutils.nickEqual(maybeNick, nick):
|
||||
return rest
|
||||
else:
|
||||
|
Loading…
Reference in New Issue
Block a user