From 4f455715266271fc228f34fbd2d06bfbb500752c Mon Sep 17 00:00:00 2001 From: Jason Volk Date: Wed, 17 Apr 2019 06:51:40 -0700 Subject: [PATCH] modules/console: Add raw option for fed head cmd. --- modules/console.cc | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/modules/console.cc b/modules/console.cc index 592116ef7..6ac579536 100644 --- a/modules/console.cc +++ b/modules/console.cc @@ -10717,7 +10717,7 @@ console_cmd__fed__head(opt &out, const string_view &line) { const params param{line, " ", { - "room_id", "remote", "user_id" + "room_id", "remote", "user_id", "op" }}; const auto &room_id @@ -10751,6 +10751,12 @@ console_cmd__fed__head(opt &out, const string_view &line) request.in.content }; + if(param["op"] == "raw") + { + out << proto << std::endl; + return true; + } + const json::object event { proto["event"]