mirror of
https://github.com/jlu5/PyLink.git
synced 2024-11-24 03:29:28 +01:00
clientbot: downgrade bad updateClient() calls to warning
This commit is contained in:
parent
838ea6bfc4
commit
90f1999c6d
@ -256,7 +256,10 @@ class ClientbotWrapperProtocol(Protocol):
|
||||
|
||||
def updateClient(self, target, field, text):
|
||||
"""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]
|
||||
|
||||
if field == 'IDENT' and u.ident != text:
|
||||
|
Loading…
Reference in New Issue
Block a user