diff tests/src/plugins/hangman/main.cpp @ 722:3e816cebed2c

Irccd: make plugin pure abstract, closes #796 @3h
author David Demelier <markand@malikania.fr>
date Mon, 16 Jul 2018 21:19:47 +0200
parents 152d20dc0e74
children e8c4ba5ed1c6
line wrap: on
line diff
--- a/tests/src/plugins/hangman/main.cpp	Mon Jul 16 13:29:48 2018 +0200
+++ b/tests/src/plugins/hangman/main.cpp	Mon Jul 16 21:19:47 2018 +0200
@@ -32,7 +32,7 @@
 class hangman_test : public plugin_test {
 public:
     hangman_test()
-        : plugin_test(PLUGIN_NAME, PLUGIN_PATH)
+        : plugin_test(PLUGIN_PATH)
     {
         plugin_->set_formats({
             { "asked", "asked=#{plugin}:#{command}:#{server}:#{channel}:#{origin}:#{nickname}:#{letter}" },
@@ -47,13 +47,13 @@
         });
     }
 
-    void load(plugin_config config = {})
+    void load(plugin::map config = {})
     {
         // Add file if not there.
         if (config.count("file") == 0)
             config.emplace("file", CMAKE_CURRENT_SOURCE_DIR "/words.conf");
 
-        plugin_->set_config(config);
+        plugin_->set_options(config);
         plugin_->handle_load(irccd_);
     }
 };