mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-23 19:19:32 +01:00
Removed the "All channels synced ..." message since it's not entirely accurate with our new JOIN ratelimiting.
This commit is contained in:
parent
08ab492c4a
commit
4e4c23a781
@ -723,11 +723,6 @@ class Irc(IrcCommandDispatcher):
|
|||||||
if world.testing:
|
if world.testing:
|
||||||
self.state.addMsg(self, msg)
|
self.state.addMsg(self, msg)
|
||||||
log.debug('Outgoing message: %s', str(msg).rstrip('\r\n'))
|
log.debug('Outgoing message: %s', str(msg).rstrip('\r\n'))
|
||||||
if msg.command == 'JOIN':
|
|
||||||
channels = msg.args[0].split(',')
|
|
||||||
for channel in channels:
|
|
||||||
# Let's make this more accurate.
|
|
||||||
self.startedSync[channel] = time.time()
|
|
||||||
return msg
|
return msg
|
||||||
elif self.zombie:
|
elif self.zombie:
|
||||||
# We kill the driver here so it doesn't continue to try to
|
# We kill the driver here so it doesn't continue to try to
|
||||||
@ -913,16 +908,12 @@ class Irc(IrcCommandDispatcher):
|
|||||||
|
|
||||||
def do315(self, msg):
|
def do315(self, msg):
|
||||||
channel = msg.args[1]
|
channel = msg.args[1]
|
||||||
popped = False
|
|
||||||
if channel in self.startedSync:
|
if channel in self.startedSync:
|
||||||
now = time.time()
|
now = time.time()
|
||||||
started = self.startedSync.pop(channel)
|
started = self.startedSync.pop(channel)
|
||||||
elapsed = now - started
|
elapsed = now - started
|
||||||
log.info('Join to %s on %s synced in %.2f seconds.',
|
log.info('Join to %s on %s synced in %.2f seconds.',
|
||||||
channel, self.network, elapsed)
|
channel, self.network, elapsed)
|
||||||
popped = True
|
|
||||||
if popped and not self.startedSync:
|
|
||||||
log.info('All channels synced on %s.', self.network)
|
|
||||||
|
|
||||||
def doError(self, msg):
|
def doError(self, msg):
|
||||||
"""Handles ERROR messages."""
|
"""Handles ERROR messages."""
|
||||||
|
Loading…
Reference in New Issue
Block a user