rename event._recursing to event.recursing

This commit is contained in:
2017-03-10 18:29:31 -06:00
parent 55c1cf01a2
commit dbc4e6fe6f
3 changed files with 8 additions and 8 deletions

View File

@@ -54,8 +54,8 @@ class Dice(Plugin):
choices_list = choices.split(' ')
choice = random.choice(choices_list)
logger.debug(event._recursing)
if event._recursing:
logger.debug(event.recursing)
if event.recursing:
reply = "{0:s}".format(choice)
else:
reply = "{0:s}: {1:s}".format(nick, choice)
@@ -67,8 +67,8 @@ class Dice(Plugin):
nick = NickMask(event.source).nick
dicestr = match.group(1)
logger.debug(event._recursing)
if event._recursing:
logger.debug(event.recursing)
if event.recursing:
reply = "{0:s}".format(self.roller.do_roll(dicestr))
else:
reply = "{0:s}: {1:s}".format(nick, self.roller.do_roll(dicestr))