diff --git a/modules/console.cc b/modules/console.cc index 17355522e..c328d50f2 100644 --- a/modules/console.cc +++ b/modules/console.cc @@ -410,16 +410,7 @@ console_cmd__conf__list(opt &out, const string_view &line) // bool -console_cmd__mod__path(opt &out, const string_view &line) -{ - for(const auto &path : ircd::mods::paths) - out << path << std::endl; - - return true; -} - -bool -console_cmd__mod__list(opt &out, const string_view &line) +console_cmd__mod(opt &out, const string_view &line) { auto avflist(mods::available()); const auto b(std::make_move_iterator(begin(avflist))); @@ -431,7 +422,7 @@ console_cmd__mod__list(opt &out, const string_view &line) { const auto loadstr { - mods::loaded(mod)? "\033[1;42m \033[0m" : " " + mods::loaded(mod)? "\033[1;32;42m+\033[0m" : " " }; out << "[" << loadstr << "] " << mod << std::endl; @@ -440,6 +431,15 @@ console_cmd__mod__list(opt &out, const string_view &line) return true; } +bool +console_cmd__mod__path(opt &out, const string_view &line) +{ + for(const auto &path : ircd::mods::paths) + out << path << std::endl; + + return true; +} + bool console_cmd__mod__syms(opt &out, const string_view &line) {