Removed a check for something that would make us never send an ISON.

This commit is contained in:
Jeremy Fincher 2004-12-06 03:31:26 +00:00
parent 00b7a097cb
commit 7c8f8b4fca

View File

@ -82,9 +82,10 @@ class NickCapture(callbacks.Privmsg):
if irc.afterConnect: if irc.afterConnect:
nick = self._getNick() nick = self._getNick()
if nick and not ircutils.strEqual(nick, irc.nick): if nick and not ircutils.strEqual(nick, irc.nick):
if nick not in irc.state.nicksToHostmasks: # We used to check this, but nicksToHostmasks is never cleared
# We don't know if it's online, let's ISON it. # except on reconnects, which can cause trouble.
self._ison(irc, nick) # if nick not in irc.state.nicksToHostmasks:
self._ison(irc, nick)
callbacks.Privmsg.__call__(self, irc, msg) callbacks.Privmsg.__call__(self, irc, msg)
def _ison(self, irc, nick): def _ison(self, irc, nick):