diff --git a/evennia/contrib/dice.py b/evennia/contrib/dice.py index c260b35d91..4f0a5e7c3c 100644 --- a/evennia/contrib/dice.py +++ b/evennia/contrib/dice.py @@ -162,7 +162,7 @@ class CmdDice(default_cmds.MuxCommand): return argstring = "".join(str(arg) for arg in self.args) - parts = RE_PARTS.split(self.args) + parts = [part for part in RE_PARTS.split(self.args) if part] lparts = len(parts) ndice = 0 @@ -171,7 +171,7 @@ class CmdDice(default_cmds.MuxCommand): conditional = None if lparts < 3 or parts[1] != 'd': - self.caller.msg("You must specify the die roll(s) as d. So 2d6 means rolling a 6-sided die 2 times.") + self.caller.msg("You must specify the die roll(s) as d. For example, 2d6 means rolling a 6-sided die 2 times.") return # Limit the number of dice and sides a character can roll to prevent server slow down and crashes