From ae7c6d85726d084f5fecb54aef03528ae13bd3bf Mon Sep 17 00:00:00 2001 From: jesopo Date: Fri, 17 Jan 2020 15:36:34 +0000 Subject: [PATCH] export function for formatting activity lines --- src/core_modules/format_activity.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/core_modules/format_activity.py b/src/core_modules/format_activity.py index 6eb4f070..6f346356 100644 --- a/src/core_modules/format_activity.py +++ b/src/core_modules/format_activity.py @@ -2,6 +2,9 @@ import datetime from src import EventManager, ModuleManager, utils class Module(ModuleManager.BaseModule): + def on_load(self): + self.exports.add("format", self._event) + def _color(self, nickname): return utils.irc.hash_colorize(nickname)