diff options
| author | 2020-01-17 15:36:34 +0000 | |
|---|---|---|
| committer | 2020-01-17 15:36:34 +0000 | |
| commit | ae7c6d85726d084f5fecb54aef03528ae13bd3bf (patch) | |
| tree | fca6f42e85f788dcb1ab526432cc7a4e78ceeba3 /src | |
| parent | refactor format_activity to use {FORMATTING} for maybe-colored things (diff) | |
| signature | ||
export function for formatting activity lines
Diffstat (limited to 'src')
| -rw-r--r-- | src/core_modules/format_activity.py | 3 |
1 files changed, 3 insertions, 0 deletions
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) |
