aboutsummaryrefslogtreecommitdiff
path: root/modules/badges.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 /modules/badges.py
parentsupport @utils.export on functions, to export those functions (diff)
signature
utilise @utils.export for function exporting in more places
Diffstat (limited to 'modules/badges.py')
-rw-r--r--modules/badges.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/modules/badges.py b/modules/badges.py
index 21531c7c..0fef164b 100644
--- a/modules/badges.py
+++ b/modules/badges.py
@@ -7,8 +7,7 @@ RE_HUMAN_FORMAT = re.compile(r"(\d\d\d\d)-(\d?\d)-(\d?\d)")
HUMAN_FORMAT_HELP = "year-month-day (e.g. 2018-12-29)"
class Module(ModuleManager.BaseModule):
- def on_load(self):
- self.exports.add("command-spec.marginstring", self._marginstring_spec)
+ @utils.export("command-spec.marginstring")
def _marginstring_spec(self, server, channel, user, args):
if len(args) > 1:
new_args = args[:-1]