initialize state stuff in __init__

this shouldn't practically matter but whatever
This commit is contained in:
Brian S. Stephan 2021-05-06 09:28:54 -05:00
parent 0ccb49e7ed
commit 3fe0a8e59e
1 changed files with 7 additions and 4 deletions

View File

@ -14,6 +14,13 @@ class History(Plugin):
what_missed_regex = r'(?i)(what did I miss\?|did I miss anything\?)$'
def __init__(self, bot, connection, event):
"""Initialize some tracking stuff."""
super(History, self).__init__(bot, connection, event)
self.channel_history = {}
self.channel_participants = {}
self.channel_leave_points = {}
def start(self):
"""Set up the handlers."""
logger.debug("%s starting up", __name__)
@ -25,10 +32,6 @@ class History(Plugin):
self.connection.reactor.add_global_regex_handler(['pubmsg', 'privmsg'], self.what_missed_regex,
self.handle_what_missed, 60)
self.channel_history = {}
self.channel_participants = {}
self.channel_leave_points = {}
super(History, self).start()
def stop(self):