mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-23 19:19:32 +01:00
Added some extra logging.
This commit is contained in:
parent
866e4ebd62
commit
bb850f2d6a
@ -217,12 +217,17 @@ class Services(privmsgs.CapabilityCheckingPrivmsg):
|
||||
chanserv = self.registryValue('ChanServ')
|
||||
if chanserv and self.registryValue('ChanServ.op', channel):
|
||||
if irc.nick not in irc.state.channels[channel].ops:
|
||||
self.log.info('Requesting op from %s in %s', chanserv, channel)
|
||||
irc.sendMsg(ircmsgs.privmsg(chanserv, 'op %s' % channel))
|
||||
if chanserv and self.registryValue('ChanServ.halfop', channel):
|
||||
if irc.nick not in irc.state.channels[channel].halfops:
|
||||
self.log.info('Requesting halfop from %s in %s',
|
||||
chanserv, channel)
|
||||
irc.sendMsg(ircmsgs.privmsg(chanserv, 'halfop %s' % channel))
|
||||
if chanserv and self.registryValue('ChanServ.voice', channel):
|
||||
if irc.nick not in irc.state.channels[channel].voices:
|
||||
self.log.info('Requesting voice from %s in %s',
|
||||
chanserv, channel)
|
||||
irc.sendMsg(ircmsgs.privmsg(chanserv, 'voice %s' % channel))
|
||||
|
||||
def do366(self, irc, msg): # End of /NAMES list; finished joining a channel
|
||||
|
Loading…
Reference in New Issue
Block a user