summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormogad0n2020-09-17 17:05:44 +0530
committermogad0n2020-09-17 17:05:44 +0530
commit08050e3a5f87cc0a29591926e4e6824276cdfab3 (patch)
treef4f127aef82ad46be2323071a8d664da182d563f
parentbcd99b75322e939b4f47328a5bfde7789243df05 (diff)
downloadtripsit-08050e3a5f87cc0a29591926e4e6824276cdfab3.tar.gz
tripsit-08050e3a5f87cc0a29591926e4e6824276cdfab3.tar.bz2
tripsit-08050e3a5f87cc0a29591926e4e6824276cdfab3.zip
fix broken optional inputs
-rw-r--r--plugin.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/plugin.py b/plugin.py
index 35baf43..1107254 100644
--- a/plugin.py
+++ b/plugin.py
@@ -149,8 +149,9 @@ class Tripsit(callbacks.Plugin):
combo = wrap(combo, [("something"), ("something")])
- def idose(self, irc, msg, args, dose, name, ago, method):
- """<amount> <drug> [<ago>] [<method>]
+ @wrap(idose, [("something"), ("something"), optional("something"), optional("something")])
+ def idose(self, irc, msg, args, dose, name, method, ago):
+ """<amount> <drug> [<method>] [<ago>]
<ago> is in the format HHMM
logs a dose for you, use 'lastdose' command to retrieve