mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-27 05:09:23 +01:00
Services/plugin.py: Add some parens to ensure self.sentGhost is only used if it's not None.
This commit is contained in:
parent
99630bc3f5
commit
4ee1437c40
@ -148,8 +148,8 @@ class Services(callbacks.Plugin):
|
|||||||
ghostDelay = self.registryValue('ghostDelay')
|
ghostDelay = self.registryValue('ghostDelay')
|
||||||
if nick and nickserv and password and \
|
if nick and nickserv and password and \
|
||||||
not ircutils.strEqual(nick, irc.nick):
|
not ircutils.strEqual(nick, irc.nick):
|
||||||
if irc.afterConnect and self.sentGhost is None or \
|
if irc.afterConnect and (self.sentGhost is None or
|
||||||
(self.sentGhost + ghostDelay) < time.time():
|
(self.sentGhost + ghostDelay) < time.time()):
|
||||||
if nick in irc.state.nicksToHostmasks:
|
if nick in irc.state.nicksToHostmasks:
|
||||||
self._doGhost(irc)
|
self._doGhost(irc)
|
||||||
else:
|
else:
|
||||||
|
Loading…
Reference in New Issue
Block a user