mirror of
https://github.com/jlu5/PyLink.git
synced 2024-11-30 14:49:28 +01:00
games: call help() with the right arguments
This commit is contained in:
parent
28f992d3cb
commit
5d4765b30d
@ -29,7 +29,7 @@ def dice(irc, source, args):
|
||||
num, sides = map(int, args[0].split('d', 1))
|
||||
except ValueError:
|
||||
# Invalid syntax. Show the command help.
|
||||
gameclient.help('dice')
|
||||
gameclient.help(irc, source, ['dice'])
|
||||
return
|
||||
|
||||
assert 1 < sides <= 100, "Invalid side count (must be 2-100)."
|
||||
|
Loading…
Reference in New Issue
Block a user