diff tests/src/libirccd/command-plugin-info/main.cpp @ 731:9d13aabfd63a

Irccd: plugin now have internal id
author David Demelier <markand@malikania.fr>
date Thu, 19 Jul 2018 07:22:36 +0200
parents ae88795feb99
children 190b16cfa848
line wrap: on
line diff
--- a/tests/src/libirccd/command-plugin-info/main.cpp	Wed Jul 18 13:49:56 2018 +0200
+++ b/tests/src/libirccd/command-plugin-info/main.cpp	Thu Jul 19 07:22:36 2018 +0200
@@ -30,6 +30,11 @@
 
 class sample_plugin : public plugin {
 public:
+    sample_plugin()
+        : plugin("test")
+    {
+    }
+
     auto get_name() const noexcept -> std::string_view override
     {
         return "test";
@@ -63,7 +68,7 @@
     auto plg = std::make_unique<sample_plugin>();
     auto response = nlohmann::json();
 
-    daemon_->plugins().add("test", std::move(plg));
+    daemon_->plugins().add(std::move(plg));
 
     const auto result = request({
         { "command",    "plugin-info"       },