diff --git a/modules/Dice.py b/modules/Dice.py index 63e1de2..987b575 100644 --- a/modules/Dice.py +++ b/modules/Dice.py @@ -287,7 +287,7 @@ class Dice(Module): return self.get_result() def do(self, connection, event, nick, userhost, what, admin_unlocked): - match = re.search('!roll\s+(.*)$', what) + match = re.search('^!roll\s+(.*)$', what) if match: dicestr = match.group(1) reply = nick + ": " + self.do_roll(dicestr) @@ -295,7 +295,7 @@ class Dice(Module): return self.irc.reply(event, re.sub(r"(\d+)(.*?\s+)(\(.*?\))", r"\1\214\3", reply)) - match = re.search('!ctech\s+(.*)$', what) + match = re.search('^!ctech\s+(.*)$', what) if match: rollitrs = re.split(';\s*', match.group(1)) reply = ""