ChannelLogger & core: Use IRCv3.2 extension invite-notify if available.

This commit is contained in:
Valentin Lorentz 2015-08-22 18:24:32 +02:00
parent 64772d42cc
commit 33e8966e4b
2 changed files with 8 additions and 1 deletions

View File

@ -226,6 +226,13 @@ class ChannelLogger(callbacks.Plugin):
if newNick in c.users:
self.doLog(irc, channel,
'*** %s is now known as %s\n', oldNick, newNick)
def doInvite(self, irc, msg):
(target, channel) = msg.args
self.doLog(irc, channel,
'*** %s <%s> invited %s to %s\n',
msg.nick, msg.prefix, target, channel)
def doJoin(self, irc, msg):
for channel in msg.args[0].split(','):
if(self.registryValue('showJoinParts', channel)):

View File

@ -955,7 +955,7 @@ class Irc(IrcCommandDispatcher, log.Firewalled):
REQUEST_CAPABILITIES = set(['account-notify', 'extended-join',
'multi-prefix', 'metadata-notify', 'account-tag',
'userhost-in-names'])
'userhost-in-names', 'invite-notify'])
def _queueConnectMessages(self):
if self.zombie: