Some users might unidentify without being identified.

This commit is contained in:
Jeremy Fincher 2004-04-08 10:47:32 +00:00
parent 8587c3cd4f
commit 4258435d98

View File

@ -287,8 +287,9 @@ class IrcUser(object):
def unsetAuth(self):
"""Unsets a use's authenticated hostmask."""
users.invalidateCache(hostmask=self.auth[1])
self.auth = None
if self.auth is not None:
users.invalidateCache(hostmask=self.auth[1])
self.auth = None
def preserve(self, fd, indent=''):
def write(s):