aboutsummaryrefslogtreecommitdiff
path: root/modules/commands/outs.py
diff options
context:
space:
mode:
authorGravatar jesopo2019-05-21 12:56:05 +0100
committerGravatar jesopo2019-05-21 12:56:05 +0100
commit11e5cc50c439248f021451ad59ab565b8c01a192 (patch)
tree1759c6b8f077728591687b41466a79ab786ee21d /modules/commands/outs.py
parentAdd masterpassword private-only command (diff)
Keep commands/outs.py tags-agnostic
Diffstat (limited to 'modules/commands/outs.py')
-rw-r--r--modules/commands/outs.py13
1 files changed, 5 insertions, 8 deletions
diff --git a/modules/commands/outs.py b/modules/commands/outs.py
index 0f931247..acd67a7f 100644
--- a/modules/commands/outs.py
+++ b/modules/commands/outs.py
@@ -5,14 +5,14 @@ STR_MORE = " (more...)"
STR_CONTINUED = "(...continued) "
class Out(object):
- def __init__(self, server, module_name, target, msgid, statusmsg):
+ def __init__(self, server, module_name, target, tags, statusmsg):
self.server = server
self.module_name = module_name
self._hide_prefix = False
self.target = target
self._text = ""
self.written = False
- self._msgid = msgid
+ self._tags = tags
self._statusmsg = statusmsg
def write(self, text):
@@ -22,10 +22,6 @@ class Out(object):
def send(self, method):
if self.has_text():
- tags = {}
- if self._msgid:
- tags["+draft/reply"] = self._msgid
-
prefix = ""
if not self._hide_prefix:
prefix = utils.consts.RESET + "[%s] " % self.prefix()
@@ -34,9 +30,10 @@ class Out(object):
full_text = "%s%s" % (prefix, self._text)
if method == "PRIVMSG":
line = self.server.send_message(target_str, full_text,
- tags=tags)
+ tags=self._tags)
elif method == "NOTICE":
- line = self.server.send_notice(target_str, full_text, tags=tags)
+ line = self.server.send_notice(target_str, full_text,
+ tags=self._tags)
else:
raise ValueError("Unknown command method '%s'" % method)