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] != '#':
|
if chan[0] != '#':
|
||||||
SendTo(nick, "Raining can only be done in a channel")
|
SendTo(nick, "Raining can only be done in a channel")
|
||||||
return
|
return
|
||||||
|
if not amount or not hours:
|
||||||
|
SendTo(chan, "usage: !rainactive <amount> <hours> [<minfrac>]")
|
||||||
|
return
|
||||||
try:
|
try:
|
||||||
amount=float(amount)
|
amount=float(amount)
|
||||||
if amount <= 0:
|
if amount <= 0:
|
||||||
|
@ -285,7 +288,7 @@ RegisterCommand({
|
||||||
RegisterCommand({
|
RegisterCommand({
|
||||||
'module': __name__,
|
'module': __name__,
|
||||||
'name': 'rainactive',
|
'name': 'rainactive',
|
||||||
'parms': '<amount> [<hours>]',
|
'parms': '<amount> <hours> [<minfrac>]',
|
||||||
'function': RainActive,
|
'function': RainActive,
|
||||||
'registered': True,
|
'registered': True,
|
||||||
'help': "rain some coins on whoever was active recently"
|
'help': "rain some coins on whoever was active recently"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue