aboutsummaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorGravatar jesopo2020-02-09 12:12:52 +0000
committerGravatar jesopo2020-02-09 12:12:52 +0000
commit9d94c555394cbf5828fe0ff834c0024570cc230b (patch)
tree95d5d401a628707583297ed35bb1e9171e484de2 /modules
parentswitch message_filter.py to use utils.parse.sed (diff)
signature
up factoid max depth to 8
Diffstat (limited to 'modules')
-rw-r--r--modules/factoids.py3
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):