@dice x for x < 0 generated an error
This commit is contained in:
@ -36,6 +36,7 @@ class Mess(callbacks.PluginRegexp):
|
||||
if not self.ok(msg.args[0]): return
|
||||
if not count: count = 1
|
||||
if count > 5: count = 5
|
||||
if count < 1: count = 1
|
||||
t = u' '.join([x.__call__([u"\u2680",u"\u2681",u"\u2682",u"\u2683",u"\u2684",u"\u2685"]) for x in [random.choice]*count])
|
||||
irc.reply(t)
|
||||
dice = wrap(dice, [additional('int')])
|
||||
|
Reference in New Issue
Block a user