mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-24 11:42:52 +01:00
Services: Fix traceback on NickServ notice.
This commit is contained in:
parent
6a4a7b00cf
commit
05b32b467f
@ -221,7 +221,7 @@ class Services(callbacks.Plugin):
|
|||||||
elif ircutils.strEqual(msg.nick, nick):
|
elif ircutils.strEqual(msg.nick, nick):
|
||||||
irc.sendMsg(ircmsgs.nick(nick))
|
irc.sendMsg(ircmsgs.nick(nick))
|
||||||
|
|
||||||
def _ghosted(self, s):
|
def _ghosted(self, irc, s):
|
||||||
nick = self._getNick(irc.network)
|
nick = self._getNick(irc.network)
|
||||||
lowered = s.lower()
|
lowered = s.lower()
|
||||||
return bool('killed' in lowered and (nick in s or 'ghost' in lowered))
|
return bool('killed' in lowered and (nick in s or 'ghost' in lowered))
|
||||||
@ -281,7 +281,7 @@ class Services(callbacks.Plugin):
|
|||||||
self.log.warning(log)
|
self.log.warning(log)
|
||||||
self.sentGhost = time.time()
|
self.sentGhost = time.time()
|
||||||
self._setNickServPassword(nick, '')
|
self._setNickServPassword(nick, '')
|
||||||
elif self._ghosted(s):
|
elif self._ghosted(irc, s):
|
||||||
self.log.info('Received "GHOST succeeded" from NickServ %s.', on)
|
self.log.info('Received "GHOST succeeded" from NickServ %s.', on)
|
||||||
self.sentGhost = None
|
self.sentGhost = None
|
||||||
self.identified = False
|
self.identified = False
|
||||||
|
Loading…
Reference in New Issue
Block a user