diff options
| author | 2020-02-09 12:12:52 +0000 | |
|---|---|---|
| committer | 2020-02-09 12:12:52 +0000 | |
| commit | 9d94c555394cbf5828fe0ff834c0024570cc230b (patch) | |
| tree | 95d5d401a628707583297ed35bb1e9171e484de2 | |
| parent | switch message_filter.py to use utils.parse.sed (diff) | |
| signature | ||
up factoid max depth to 8
| -rw-r--r-- | modules/factoids.py | 3 |
1 files changed, 2 insertions, 1 deletions
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): |
