mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-30 06:49:24 +01:00
ChannelLogger & core: Use IRCv3.2 extension invite-notify if available.
This commit is contained in:
parent
64772d42cc
commit
33e8966e4b
@ -226,6 +226,13 @@ class ChannelLogger(callbacks.Plugin):
|
|||||||
if newNick in c.users:
|
if newNick in c.users:
|
||||||
self.doLog(irc, channel,
|
self.doLog(irc, channel,
|
||||||
'*** %s is now known as %s\n', oldNick, newNick)
|
'*** %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):
|
def doJoin(self, irc, msg):
|
||||||
for channel in msg.args[0].split(','):
|
for channel in msg.args[0].split(','):
|
||||||
if(self.registryValue('showJoinParts', channel)):
|
if(self.registryValue('showJoinParts', channel)):
|
||||||
|
@ -955,7 +955,7 @@ class Irc(IrcCommandDispatcher, log.Firewalled):
|
|||||||
|
|
||||||
REQUEST_CAPABILITIES = set(['account-notify', 'extended-join',
|
REQUEST_CAPABILITIES = set(['account-notify', 'extended-join',
|
||||||
'multi-prefix', 'metadata-notify', 'account-tag',
|
'multi-prefix', 'metadata-notify', 'account-tag',
|
||||||
'userhost-in-names'])
|
'userhost-in-names', 'invite-notify'])
|
||||||
|
|
||||||
def _queueConnectMessages(self):
|
def _queueConnectMessages(self):
|
||||||
if self.zombie:
|
if self.zombie:
|
||||||
|
Loading…
Reference in New Issue
Block a user