Defer initialUsers, initialNames and delChannel to threads to improve performance

This commit is contained in:
2019-08-19 20:12:42 +01:00
parent 545282e201
commit c63f301b7f
2 changed files with 26 additions and 7 deletions

View File

@@ -398,7 +398,7 @@ class IRCBot(IRCClient):
lc.stop()
del self._getWho[channel]
userinfo.delChannel(self.net, channel) # < we do not need to deduplicate this
log("Can no longer cover %s, removing records" % channel) # as it will only be matched once --
#log("Can no longer cover %s, removing records" % channel)# as it will only be matched once --
# other bots have different nicknames so
def left(self, user, channel, message): # even if they saw it, they wouldn't react
self.event(type="part", muser=user, target=channel, message=message)