Merge pull request #475 from Digital-Lemon/testing

@network uptime reset & ChanServ notice handling
This commit is contained in:
Valentin Lorentz 2013-06-17 15:20:54 -07:00
commit 76025f89bb
2 changed files with 5 additions and 0 deletions

View File

@ -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)

View File

@ -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