mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-23 11: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')
|
||||
if nick and nickserv and password and \
|
||||
not ircutils.strEqual(nick, irc.nick):
|
||||
if irc.afterConnect and self.sentGhost is None or \
|
||||
(self.sentGhost + ghostDelay) < time.time():
|
||||
if irc.afterConnect and (self.sentGhost is None or
|
||||
(self.sentGhost + ghostDelay) < time.time()):
|
||||
if nick in irc.state.nicksToHostmasks:
|
||||
self._doGhost(irc)
|
||||
else:
|
||||
|
Loading…
Reference in New Issue
Block a user