aboutsummaryrefslogtreecommitdiff
path: root/src/core_modules/format_activity.py
diff options
context:
space:
mode:
authorGravatar jesopo2020-02-19 17:29:10 +0000
committerGravatar jesopo2020-02-19 17:29:10 +0000
commit3453479235bec9ec61b3e9dd95aef66a78fe6296 (patch)
treedbf9b14af85cfadb374e323c8bc04fb59711f44e /src/core_modules/format_activity.py
parentsupport @utils.export on functions, to export those functions (diff)
signature
utilise @utils.export for function exporting in more places
Diffstat (limited to 'src/core_modules/format_activity.py')
-rw-r--r--src/core_modules/format_activity.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/core_modules/format_activity.py b/src/core_modules/format_activity.py
index 12573675..85574ea1 100644
--- a/src/core_modules/format_activity.py
+++ b/src/core_modules/format_activity.py
@@ -2,12 +2,10 @@ 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)
+ @utils.export("format")
def _event(self, type, server, line, context, minimal=None, channel=None,
user=None, formatting={}, **kwargs):
pretty = line