mirror of https://github.com/Mikaela/Limnoria.git
Made IrcState keep history persistent through resets.
This commit is contained in:
parent
b1e6cc53ac
commit
c38099550e
|
@ -205,10 +205,11 @@ class IrcState(IrcCommandDispatcher):
|
||||||
"""
|
"""
|
||||||
__slots__ = ('history', 'nicksToHostmasks', 'channels')
|
__slots__ = ('history', 'nicksToHostmasks', 'channels')
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
|
self.history = RingBuffer(conf.maxHistory)
|
||||||
self.reset()
|
self.reset()
|
||||||
|
|
||||||
def reset(self):
|
def reset(self):
|
||||||
self.history = RingBuffer(conf.maxHistory)
|
self.history.reset()
|
||||||
self.nicksToHostmasks = ircutils.IrcDict()
|
self.nicksToHostmasks = ircutils.IrcDict()
|
||||||
self.channels = ircutils.IrcDict()
|
self.channels = ircutils.IrcDict()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue