mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-01-23 02:24:12 +01:00
Updated.
This commit is contained in:
parent
7855f61f58
commit
451e083aec
@ -207,7 +207,7 @@ class Services(privmsgs.CapabilityCheckingPrivmsg):
|
|||||||
|
|
||||||
def doNick(self, irc, msg):
|
def doNick(self, irc, msg):
|
||||||
nick = self.registryValue('nick')
|
nick = self.registryValue('nick')
|
||||||
if msg.args[0] == irc.nick:
|
if msg.args[0] == irc.nick and irc.nick == nick:
|
||||||
self._doIdentify(irc)
|
self._doIdentify(irc)
|
||||||
elif ircutils.strEqual(msg.nick, nick):
|
elif ircutils.strEqual(msg.nick, nick):
|
||||||
irc.sendMsg(ircmsgs.nick(nick))
|
irc.sendMsg(ircmsgs.nick(nick))
|
||||||
@ -241,6 +241,10 @@ class Services(privmsgs.CapabilityCheckingPrivmsg):
|
|||||||
self.sentGhost = False
|
self.sentGhost = False
|
||||||
self.identified = False
|
self.identified = False
|
||||||
irc.queueMsg(ircmsgs.nick(nick))
|
irc.queueMsg(ircmsgs.nick(nick))
|
||||||
|
elif 'currently' in s and 'isn\'t' in s or 'is not' in s:
|
||||||
|
# The nick isn't online, let's change our nick to it.
|
||||||
|
self.sentGhost = False
|
||||||
|
irc.queueMsg(ircmsgs.nick(nick))
|
||||||
elif ('registered' in s or 'protected' in s) and \
|
elif ('registered' in s or 'protected' in s) and \
|
||||||
('not' not in s and 'isn\'t' not in s):
|
('not' not in s and 'isn\'t' not in s):
|
||||||
self.log.info('Received "Registered Nick" from NickServ.')
|
self.log.info('Received "Registered Nick" from NickServ.')
|
||||||
|
Loading…
Reference in New Issue
Block a user