From dd85eb1bd964eaf51bfa6a41fc66b3ccf5fb47d6 Mon Sep 17 00:00:00 2001 From: urlbot Date: Wed, 11 Feb 2015 01:33:48 +0100 Subject: [PATCH] update dummy plugin to @foo() magic --- plugins.py | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/plugins.py b/plugins.py index 5f039f6..89c193e 100644 --- a/plugins.py +++ b/plugins.py @@ -611,16 +611,8 @@ def command_wp(argv, lang='de', **args): 'msg': 'json data seem to be broken' } -#def command_dummy(args): -# if 'register' == args: -# return { -# 'name': 'dummy', -# 'desc': 'dummy description', -# 'args': ('argv0', 'reply_user'), -# 'is_enabled': True, -# 'ratelimit_class': RATE_GLOBAL -# } -# +#@pluginfunction('dummy', 'dummy description', ptypes_COMMAND) +#def command_dummy(argv, **args): # if 'dummy' != argv[0]: # return #