From 1b4693601d1b9b06bafb600d704b50807e6f7b48 Mon Sep 17 00:00:00 2001 From: Jason Volk Date: Sat, 14 Sep 2019 15:46:24 -0700 Subject: [PATCH] modules/console: Add type/sender/state_key to table if available. --- modules/console.cc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/modules/console.cc b/modules/console.cc index 69185dd6d..3a3f40c24 100644 --- a/modules/console.cc +++ b/modules/console.cc @@ -13796,6 +13796,9 @@ console_cmd__vm(opt &out, const string_view &line) << std::right << std::setw(8) << "ROOM VER" << " " << std::left << std::setw(40) << "ROOM ID" << " " << std::left << std::setw(60) << "EVENT ID" << " " + << std::left << std::setw(20) << "SENDER" << " " + << std::left << std::setw(20) << "TYPE" << " " + << std::left << std::setw(20) << "STATE_KEY" << " " << std::endl; for(const auto *const &eval : m::vm::eval::list) @@ -13825,6 +13828,9 @@ console_cmd__vm(opt &out, const string_view &line) << std::right << std::setw(8) << eval->room_version << " " << std::left << std::setw(40) << trunc(eval->room_id, 40) << " " << std::left << std::setw(60) << trunc(eval->event_id, 60) << " " + << std::left << std::setw(20) << trunc(eval->event_? json::get<"sender"_>(*eval->event_) : json::string{}, 20) << " " + << std::left << std::setw(20) << trunc(eval->event_? json::get<"type"_>(*eval->event_) : json::string{}, 20) << " " + << std::left << std::setw(20) << trunc(eval->event_? json::get<"state_key"_>(*eval->event_) : json::string{}, 20) << " " << std::endl ; }