3
0
mirror of https://github.com/jlu5/PyLink.git synced 2025-05-03 13:17:32 +02:00

clientbot: fix misleading comment

This commit is contained in:
James Lu 2017-04-09 15:01:49 -07:00
parent 709b1d2ead
commit cc9ffd47b1

View File

@ -339,12 +339,12 @@ class ClientbotWrapperProtocol(Protocol):
Limited (internal) nick collision checking is done here to prevent Clientbot users from Limited (internal) nick collision checking is done here to prevent Clientbot users from
being confused with virtual clients, and vice versa.""" being confused with virtual clients, and vice versa."""
# If this sender isn't known or it is one of our virtual clients, spawn a new one.
# spawnClient() will take care of any nick collisions caused by new, Clientbot users
# taking the same nick as one of our virtual clients.
idsource = self.irc.nickToUid(nick) idsource = self.irc.nickToUid(nick)
is_internal = self.irc.isInternalClient(idsource) is_internal = self.irc.isInternalClient(idsource)
# If this sender isn't known or it is one of our virtual clients, spawn a new one.
# This also takes care of any nick collisions caused by new, Clientbot users
# taking the same nick as one of our virtual clients, and will force the virtual client to lose.
if (not idsource) or (is_internal and self.irc.pseudoclient and idsource != self.irc.pseudoclient.uid): if (not idsource) or (is_internal and self.irc.pseudoclient and idsource != self.irc.pseudoclient.uid):
if idsource: if idsource:
log.debug('(%s) Nick-colliding virtual client %s/%s', self.irc.name, idsource, nick) log.debug('(%s) Nick-colliding virtual client %s/%s', self.irc.name, idsource, nick)