mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-02-21 08:01:00 +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)
|
on)
|
||||||
elif 'inviting' in s:
|
elif 'inviting' in s:
|
||||||
self.log.debug('Got "Inviting to channel" from ChanServ %s.', on)
|
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:
|
else:
|
||||||
self.log.warning('Got unexpected notice from ChanServ %s: %r.',
|
self.log.warning('Got unexpected notice from ChanServ %s: %r.',
|
||||||
on, msg)
|
on, msg)
|
||||||
|
@ -910,6 +910,7 @@ class Irc(IrcCommandDispatcher):
|
|||||||
self.lastTake = 0
|
self.lastTake = 0
|
||||||
self.server = 'unset'
|
self.server = 'unset'
|
||||||
self.afterConnect = False
|
self.afterConnect = False
|
||||||
|
self.startedAt = time.time()
|
||||||
self.lastping = time.time()
|
self.lastping = time.time()
|
||||||
self.outstandingPing = False
|
self.outstandingPing = False
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user