From 9d94c555394cbf5828fe0ff834c0024570cc230b Mon Sep 17 00:00:00 2001 From: jesopo Date: Sun, 9 Feb 2020 12:12:52 +0000 Subject: up factoid max depth to 8 --- modules/factoids.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'modules') diff --git a/modules/factoids.py b/modules/factoids.py index 9b2e7cbc..96ceea55 100644 --- a/modules/factoids.py +++ b/modules/factoids.py @@ -4,6 +4,7 @@ import re from src import ModuleManager, utils REGEX_FACTOID = re.compile("{!([^}]+)}", re.I) +FACTOID_DEPTH_MAX = 8 class Module(ModuleManager.BaseModule): def _get_factoid(self, targets, factoid): @@ -28,7 +29,7 @@ class Module(ModuleManager.BaseModule): target.del_setting("factoid-%s" % factoid) def _format_factoid(self, s, targets, depth=0): - if depth == 5: + if depth == FACTOID_DEPTH_MAX: return for match in REGEX_FACTOID.finditer(s): -- cgit v1.3.1-10-gc9f91