mirror of
https://github.com/jlu5/PyLink.git
synced 2024-12-02 15:59:26 +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))
|
num, sides = map(int, args[0].split('d', 1))
|
||||||
except ValueError:
|
except ValueError:
|
||||||
# Invalid syntax. Show the command help.
|
# Invalid syntax. Show the command help.
|
||||||
gameclient.help('dice')
|
gameclient.help(irc, source, ['dice'])
|
||||||
return
|
return
|
||||||
|
|
||||||
assert 1 < sides <= 100, "Invalid side count (must be 2-100)."
|
assert 1 < sides <= 100, "Invalid side count (must be 2-100)."
|
||||||
|
Loading…
Reference in New Issue
Block a user