From 7eaf074019a3055560d5b3fe5eeb3e4d372b874d Mon Sep 17 00:00:00 2001 From: James Lu Date: Sat, 23 Jul 2016 00:06:11 -0700 Subject: [PATCH] clientbot: poll WHO once every pingfreq --- protocols/clientbot.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/protocols/clientbot.py b/protocols/clientbot.py index 9f997a1..a1efea1 100644 --- a/protocols/clientbot.py +++ b/protocols/clientbot.py @@ -176,6 +176,10 @@ class ClientbotWrapperProtocol(Protocol): if self.irc.uplink: self.irc.send('PING %s' % self.irc.getFriendlyName(self.irc.uplink)) + # Poll WHO periodically to figure out any ident/host/away status changes. + for channel in self.irc.pseudoclient.channels: + self.irc.send('WHO %s' % channel) + def part(self, source, channel, reason=''): """STUB: Parts a user from a channel.""" self.irc.channels[channel].removeuser(source)