Skip to content
Browse files

No need for this, I tried to fix the wrong bug.

Signed-off-by: Dimitri Molenaars <Tyrope@TyRope.nl>
  • Loading branch information...
1 parent 54befd5 commit ea0f9b047e657a3d62121d1f717c8e9f4537f2a5 @tyrope tyrope committed Aug 24, 2012
Showing with 0 additions and 4 deletions.
  1. +0 −4 modules/dice.py
View
4 modules/dice.py
@@ -36,10 +36,6 @@ def dice(jenni, input):
#the value of this segment is 0
value = 0
if re.search("[0-9]*(d|D)[0-9]+", segment): #if there's a dice (regex FTW!)
- if segment[0] == '(':
- segment = segment[1:]
- if segment[-1:] == ')':
- segment = segment[:-1]
value = rollDice(segment.lower()) #then roll the dice.
no_dice = 0 # And let the bot know there's dice in the formula
elif re.search("([0-9]|\+|\-|\*|\/|\(|\)| \+| \-| \*| \/| \(| \))", segment): #are any of the supported math characters in this piece?

0 comments on commit ea0f9b0

Please sign in to comment.
Something went wrong with that request. Please try again.