Move StdOut/StdErr specific consts to outs.py (commands)

This commit is contained in:
jesopo 2019-02-09 17:50:40 +00:00
parent 6b042d9460
commit 1ff2a00c48
2 changed files with 4 additions and 5 deletions

View file

@ -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+)")

View file

@ -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