comparison tests/src/plugins/joke/main.cpp @ 847:a23b7b574ed2

irccd: rename [format] section to [templates], closes #1671
author David Demelier <markand@malikania.fr>
date Wed, 10 Jul 2019 20:10:00 +0200
parents 06cc2f95f479
children 5e25439fe98d
comparison
equal deleted inserted replaced
846:dcef68d82fd3 847:a23b7b574ed2
32 class joke_test : public js_plugin_fixture { 32 class joke_test : public js_plugin_fixture {
33 public: 33 public:
34 joke_test() 34 joke_test()
35 : js_plugin_fixture(PLUGIN_PATH) 35 : js_plugin_fixture(PLUGIN_PATH)
36 { 36 {
37 plugin_->set_formats({ 37 plugin_->set_templates({
38 { "error", "error=#{server}:#{channel}:#{origin}:#{nickname}" } 38 { "error", "error=#{server}:#{channel}:#{origin}:#{nickname}" }
39 }); 39 });
40 } 40 }
41 41
42 void load(plugin::map config = {}) 42 void load(plugin::map config = {})