From 4ee1437c402129d119c7b7bd4ffd07524a343c69 Mon Sep 17 00:00:00 2001 From: James Vega Date: Tue, 15 Aug 2006 14:49:42 +0000 Subject: [PATCH] Services/plugin.py: Add some parens to ensure self.sentGhost is only used if it's not None. --- plugins/Services/plugin.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/Services/plugin.py b/plugins/Services/plugin.py index 08b23b74a..cca8ef5b7 100644 --- a/plugins/Services/plugin.py +++ b/plugins/Services/plugin.py @@ -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: