3
0
mirror of https://github.com/jlu5/PyLink.git synced 2024-11-01 09:19:23 +01:00

games: call help() with the right arguments

This commit is contained in:
James Lu 2016-05-14 16:19:29 -07:00
parent 28f992d3cb
commit 5d4765b30d

View File

@ -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)."