mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-07-10 15:37:26 +02:00
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…
x
Reference in New Issue
Block a user