3
0
mirror of https://github.com/jlu5/PyLink.git synced 2024-11-27 21:19:31 +01:00

clientbot: downgrade bad updateClient() calls to warning

This commit is contained in:
James Lu 2016-09-08 17:44:02 -07:00
parent 838ea6bfc4
commit 90f1999c6d

View File

@ -256,7 +256,10 @@ class ClientbotWrapperProtocol(Protocol):
def updateClient(self, target, field, text): def updateClient(self, target, field, text):
"""Updates the known ident, host, or realname of a client.""" """Updates the known ident, host, or realname of a client."""
assert target in self.irc.users, "Unknown target %s" % target if target not in self.irc.users:
log.warning("(%s) Unknown target %s for updateClient()", self.irc.name, target)
return
u = self.irc.users[target] u = self.irc.users[target]
if field == 'IDENT' and u.ident != text: if field == 'IDENT' and u.ident != text: