aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar jesopo2019-05-21 13:02:40 +0100
committerGravatar jesopo2019-05-21 13:02:40 +0100
commit7ddc539ea6acfe5d32c21785cad4a0dbd18ce98d (patch)
treeaa7a0b8657b11e3f264a72e05e62bc436e3b0047
parentKeep commands/outs.py tags-agnostic (diff)
signature
don't overwrite `tags` var
-rw-r--r--modules/commands/__init__.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/modules/commands/__init__.py b/modules/commands/__init__.py
index 19bf59c2..6e7258fd 100644
--- a/modules/commands/__init__.py
+++ b/modules/commands/__init__.py
@@ -132,13 +132,13 @@ class Module(ModuleManager.BaseModule):
if not module_name and hasattr(hook.function, "__self__"):
module_name = hook.function.__self__._name
- tags = {}
+ send_tags = {}
msgid = MSGID_TAG.get_value(tags)
if msgid:
- tags["+draft/reply"] = msgid
+ send_tags["+draft/reply"] = msgid
- stdout = outs.StdOut(server, module_name, target, tags, statusmsg)
- stderr = outs.StdErr(server, module_name, target, tags, statusmsg)
+ stdout = outs.StdOut(server, module_name, target, send_tags, statusmsg)
+ stderr = outs.StdErr(server, module_name, target, send_tags, statusmsg)
command_method = self._command_method(target, server)
if hook.kwargs.get("remove_empty", True):