fix broken optional inputs

This commit is contained in:
mogad0n 2020-09-17 17:05:44 +05:30
parent bcd99b7532
commit 08050e3a5f
1 changed files with 3 additions and 2 deletions

View File

@ -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