Made IrcState keep history persistent through resets.

This commit is contained in:
Jeremy Fincher 2003-08-26 16:39:23 +00:00
parent b1e6cc53ac
commit c38099550e

View File

@ -205,10 +205,11 @@ class IrcState(IrcCommandDispatcher):
"""
__slots__ = ('history', 'nicksToHostmasks', 'channels')
def __init__(self):
self.history = RingBuffer(conf.maxHistory)
self.reset()
def reset(self):
self.history = RingBuffer(conf.maxHistory)
self.history.reset()
self.nicksToHostmasks = ircutils.IrcDict()
self.channels = ircutils.IrcDict()