mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-07 19:49:23 +01:00
Made a do376 so it authenticates (hopefully) before joining a channel.
This commit is contained in:
parent
315d8710dc
commit
da6f429fe5
@ -79,6 +79,19 @@ class Services(privmsgs.CapabilityCheckingPrivmsg):
|
|||||||
self._ghosted = re.compile('%s.*killed' % self.nick)
|
self._ghosted = re.compile('%s.*killed' % self.nick)
|
||||||
irc.reply(msg, conf.replySuccess)
|
irc.reply(msg, conf.replySuccess)
|
||||||
|
|
||||||
|
def do376(self, irc, msg):
|
||||||
|
debug.msg('Services.do376 called.', 'high')
|
||||||
|
if self.nickserv:
|
||||||
|
debug.msg('self.nickserv was true.', 'high')
|
||||||
|
identify = 'IDENTIFY %s' % self.password
|
||||||
|
# It's important that this next statement is irc.sendMsg, not
|
||||||
|
# irc.queueMsg. We want this message to get through before any
|
||||||
|
# JOIN messages also being sent on 376.
|
||||||
|
debug.msg(`irc.fastqueue`, 'high')
|
||||||
|
irc.sendMsg(ircmsgs.privmsg(self.nickserv, identify))
|
||||||
|
debug.msg(`irc.fastqueue`, 'high')
|
||||||
|
do377 = do376
|
||||||
|
|
||||||
_owned = re.compile('nick.*(?<!not)(?:registered|protected|owned)')
|
_owned = re.compile('nick.*(?<!not)(?:registered|protected|owned)')
|
||||||
def doNotice(self, irc, msg):
|
def doNotice(self, irc, msg):
|
||||||
if self.nickserv:
|
if self.nickserv:
|
||||||
|
Loading…
Reference in New Issue
Block a user