mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-01-24 11:04:05 +01:00
Merge pull request #1123 from nyuszika7h/nickcapture-release
NickCapture: Attempt NickServ release on 437 numeric
This commit is contained in:
commit
405247b05d
@ -117,6 +117,14 @@ class NickCapture(callbacks.Plugin):
|
|||||||
self.monitoring.remove(irc)
|
self.monitoring.remove(irc)
|
||||||
irc.unmonitor(nick)
|
irc.unmonitor(nick)
|
||||||
break
|
break
|
||||||
|
|
||||||
|
def do437(self, irc, msg):
|
||||||
|
"""Nick/channel is temporarily unavailable"""
|
||||||
|
if ircutils.isChannel(msg.args[1]):
|
||||||
|
return
|
||||||
|
self.log.info('Nick %s is unavailable; attempting NickServ release '
|
||||||
|
'on %s.' % (msg.args[1], irc.network))
|
||||||
|
irc.sendMsg(ircmsgs.privmsg('NickServ', 'release %s' % msg.args[1]))
|
||||||
NickCapture = internationalizeDocstring(NickCapture)
|
NickCapture = internationalizeDocstring(NickCapture)
|
||||||
|
|
||||||
Class = NickCapture
|
Class = NickCapture
|
||||||
|
Loading…
Reference in New Issue
Block a user