aboutsummaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorGravatar jesopo2019-02-09 17:50:40 +0000
committerGravatar jesopo2019-02-09 17:50:40 +0000
commit1ff2a00c485edf047d28381185fa355dcb0ffb78 (patch)
treea09e6f6b893de6e8dd5ab47bb669221bc94d802a /modules
parentSplit command StdOut/StdErr in to their own file (commands) (diff)
signature
Move StdOut/StdErr specific consts to outs.py (commands)
Diffstat (limited to 'modules')
-rw-r--r--modules/commands/__init__.py5
-rw-r--r--modules/commands/outs.py4
2 files changed, 4 insertions, 5 deletions
diff --git a/modules/commands/__init__.py b/modules/commands/__init__.py
index b604925d..14e26686 100644
--- a/modules/commands/__init__.py
+++ b/modules/commands/__init__.py
@@ -2,14 +2,9 @@ import re
from src import EventManager, ModuleManager, utils
from . import outs
-STR_MORE = "%s (more...)" % utils.consts.RESET
-STR_CONTINUED = "(...continued) "
-
COMMAND_METHOD = "command-method"
COMMAND_METHODS = ["PRIVMSG", "NOTICE"]
-OUT_CUTOFF = 400
-
REGEX_CUTOFF = re.compile(r"^.{1,%d}(?:\s|$)" % OUT_CUTOFF)
REGEX_ARG_NUMBER = re.compile(r"\$(\d+)")
diff --git a/modules/commands/outs.py b/modules/commands/outs.py
index 6d9efe38..935721ac 100644
--- a/modules/commands/outs.py
+++ b/modules/commands/outs.py
@@ -1,5 +1,9 @@
from src import utils
+OUT_CUTOFF = 400
+STR_MORE = "%s (more...)" % utils.consts.RESET
+STR_CONTINUED = "(...continued) "
+
class Out(object):
def __init__(self, server, module_name, target, msgid, statusmsg):
self.server = server