From 0df7abb03e2a75744a575bc9a7b349fa98d6f485 Mon Sep 17 00:00:00 2001 From: jesopo Date: Fri, 27 Oct 2017 13:15:33 +0100 Subject: Handle empty CAP, additional IRCLog feature, better tls, better channel_save logic, add sed-sender-only setting Signed-off-by: jesopo --- modules/commands.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'modules/commands.py') 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 -- cgit v1.3.1-10-gc9f91