aboutsummaryrefslogtreecommitdiff
path: root/modules/commands/outs.py
diff options
context:
space:
mode:
Diffstat (limited to 'modules/commands/outs.py')
-rw-r--r--modules/commands/outs.py28
1 files changed, 0 insertions, 28 deletions
diff --git a/modules/commands/outs.py b/modules/commands/outs.py
deleted file mode 100644
index e82ceefd..00000000
--- a/modules/commands/outs.py
+++ /dev/null
@@ -1,28 +0,0 @@
-import re
-from src import IRCLine, utils
-
-class StdOut(object):
- def __init__(self, prefix):
- self.prefix = prefix
- self._lines = []
- self._assured = False
-
- def assure(self):
- self._assured = True
-
- def write(self, text):
- self.write_lines(
- text.replace("\r", "").replace("\n\n", "\n").split("\n"))
- def write_lines(self, lines):
- self._lines += list(filter(None, lines))
-
- def get_all(self):
- return self._lines.copy()
- def pop(self):
- return self._lines.pop(0)
- def insert(self, text):
- self._lines.insert(0, text)
-
- def has_text(self):
- return bool(self._lines)
-