mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-27 05:09:23 +01: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')
|
||||
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()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user