mirror of
https://git.wownero.com/wownero/tippero.git
synced 2024-08-15 00:33:14 +00:00
Fix rainactive synopsis, and error on usage when missing amount/hours
This commit is contained in:
parent
8462467c40
commit
09b1ee2f07
1 changed files with 4 additions and 1 deletions
|
@ -161,6 +161,9 @@ def RainActive(nick,chan,cmd):
|
|||
if chan[0] != '#':
|
||||
SendTo(nick, "Raining can only be done in a channel")
|
||||
return
|
||||
if not amount or not hours:
|
||||
SendTo(chan, "usage: !rainactive <amount> <hours> [<minfrac>]")
|
||||
return
|
||||
try:
|
||||
amount=float(amount)
|
||||
if amount <= 0:
|
||||
|
@ -285,7 +288,7 @@ RegisterCommand({
|
|||
RegisterCommand({
|
||||
'module': __name__,
|
||||
'name': 'rainactive',
|
||||
'parms': '<amount> [<hours>]',
|
||||
'parms': '<amount> <hours> [<minfrac>]',
|
||||
'function': RainActive,
|
||||
'registered': True,
|
||||
'help': "rain some coins on whoever was active recently"
|
||||
|
|
Loading…
Reference in a new issue