From 40a3263ad981ee16b645e3e66632d5a962e0e8e7 Mon Sep 17 00:00:00 2001 From: Jason Volk Date: Tue, 24 Apr 2018 17:43:45 -0700 Subject: [PATCH] modules/console: Add a feds resend cmd to reaccept direct to sender. --- modules/console.cc | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/modules/console.cc b/modules/console.cc index a172f2fd9..89c31ee1a 100644 --- a/modules/console.cc +++ b/modules/console.cc @@ -3312,6 +3312,30 @@ console_cmd__feds__event(opt &out, const string_view &line) return true; } +bool +console_cmd__feds__resend(opt &out, const string_view &line) +{ + const params param{line, " ", + { + "event_id", + }}; + + const m::event::id event_id + { + param.at(0) + }; + + const m::event::fetch event + { + event_id + }; + + const m::vm::opts opts; + m::vm::accepted a{event, &opts, &opts.report}; + m::vm::accept(a); + return true; +} + // // fed //