Aka: Fix commit ddbadcafff (again).

This commit is contained in:
Valentin Lorentz 2013-11-27 17:57:30 +01:00
parent feebaca292
commit e99ad36667

View File

@ -334,6 +334,7 @@ class Aka(callbacks.Plugin):
ret = True
return (ret, new_tokens)
(ret, tokens) = everythingReplace(tokens)
maxNesting = conf.supybot.commands.nested.maximum()
if maxNesting and irc.nested+1 > maxNesting:
irc.error(_('You\'ve attempted more nesting than is '
'currently allowed on this bot.'), Raise=True)