Mercurial > irccd
diff irccdctl/plugin_load_cli.cpp @ 662:e9153b85b9bd
Tests: test irccdctl (plugin-* commands) #785
While here, fix many commands that were throwing invalid_message because of
missing 'command' JSON property.
author | David Demelier <markand@malikania.fr> |
---|---|
date | Thu, 29 Mar 2018 09:13:51 +0200 |
parents | 27587ff92a64 |
children |
line wrap: on
line diff
--- a/irccdctl/plugin_load_cli.cpp Wed Mar 28 07:59:03 2018 +0200 +++ b/irccdctl/plugin_load_cli.cpp Thu Mar 29 09:13:51 2018 +0200 @@ -32,7 +32,10 @@ if (args.size() < 1) throw std::invalid_argument("plugin-load requires 1 argument"); - request(ctl, {{ "plugin", args[0] }}); + request(ctl, { + { "command", "plugin-load" }, + { "plugin", args[0] } + }); } } // !ctl