mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-28 05:32:51 +01:00
Merge pull request #475 from Digital-Lemon/testing
@network uptime reset & ChanServ notice handling
This commit is contained in:
commit
76025f89bb
@ -264,6 +264,10 @@ class Services(callbacks.Plugin):
|
||||
on)
|
||||
elif 'inviting' in s:
|
||||
self.log.debug('Got "Inviting to channel" from ChanServ %s.', on)
|
||||
elif s.startswith('['):
|
||||
chanTypes = irc.state.supported['CHANTYPES']
|
||||
if re.match(r'^\[[%s]' % re.escape(chanTypes), s):
|
||||
self.log.debug('Got entrymsg from ChanServ %s.', on)
|
||||
else:
|
||||
self.log.warning('Got unexpected notice from ChanServ %s: %r.',
|
||||
on, msg)
|
||||
|
@ -910,6 +910,7 @@ class Irc(IrcCommandDispatcher):
|
||||
self.lastTake = 0
|
||||
self.server = 'unset'
|
||||
self.afterConnect = False
|
||||
self.startedAt = time.time()
|
||||
self.lastping = time.time()
|
||||
self.outstandingPing = False
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user