aboutsummaryrefslogtreecommitdiff
path: root/modules/commands.py
diff options
context:
space:
mode:
authorGravatar jesopo2017-10-27 13:15:33 +0100
committerGravatar jesopo2017-10-27 13:15:33 +0100
commit0df7abb03e2a75744a575bc9a7b349fa98d6f485 (patch)
treef6a4a5f952f030108371588347a45f0cea684eed /modules/commands.py
parentAmber Rudd (diff)
signature
Handle empty CAP, additional IRCLog feature, better tls, better channel_save logic, add sed-sender-only setting
Signed-off-by: jesopo <github@lolnerd.net>
Diffstat (limited to 'modules/commands.py')
-rw-r--r--modules/commands.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/modules/commands.py b/modules/commands.py
index 8a811e2e..6985c869 100644
--- a/modules/commands.py
+++ b/modules/commands.py
@@ -1,3 +1,4 @@
+import re
import Utils
STR_MORE = "%s (more...)" % Utils.FONT_RESET
@@ -5,6 +6,8 @@ STR_CONTINUED = "(...continued) "
OUT_CUTOFF = 400
+REGEX_CUTOFF = re.compile("^.{1,%d}(?:\s|$)" % OUT_CUTOFF)
+
class Out(object):
def __init__(self, module_name, target):
self.module_name = module_name