1
0
mirror of http://aero2k.de/t/repos/urlbot-native.git synced 2017-09-06 15:25:38 +02:00

bugfixes, can omit username in PMs now

This commit is contained in:
Thorsten
2016-01-01 20:54:19 +01:00
parent 5fe0db35c0
commit 4c90012111
2 changed files with 8 additions and 4 deletions

View File

@@ -136,7 +136,7 @@ def command_unicode(argv, **args):
@pluginfunction('dice', 'rolls a dice, optional N times', ptypes_COMMAND, ratelimit_class=RATE_INTERACTIVE)
def command_dice(argv, **args):
try:
count = 1 if argv else int(argv[0])
count = 1 if not argv else int(argv[0])
except ValueError as e:
return {
'msg': '%s: dice: error when parsing int(%s): %s' % (