Mercurial > irccd
changeset 116:1e43405991ee
Irccd: missing path in plugin listing
author | David Demelier <markand@malikania.fr> |
---|---|
date | Thu, 28 Apr 2016 20:53:41 +0200 |
parents | 9a8f321371f7 |
children | 9b9b09543d2a |
files | lib/irccd/irccd.cpp |
diffstat | 1 files changed, 6 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/lib/irccd/irccd.cpp Thu Apr 28 20:48:23 2016 +0200 +++ b/lib/irccd/irccd.cpp Thu Apr 28 20:53:41 2016 +0200 @@ -32,6 +32,8 @@ using namespace std::placeholders; using namespace std::string_literals; +using namespace fmt::literals; + namespace irccd { void Irccd::handleServerChannelMode(std::weak_ptr<Server> ptr, std::string origin, std::string channel, std::string mode, std::string arg) @@ -867,8 +869,9 @@ void Irccd::loadPlugin(std::string name, const std::string &source, bool find) { - if (m_plugins.count(name) > 0) + if (m_plugins.count(name) > 0) { throw std::invalid_argument("plugin already loaded"); + } std::vector<string> paths; std::shared_ptr<Plugin> plugin; @@ -882,10 +885,10 @@ } /* Iterate over all paths */ - log::info(fmt::format("plugin {}: trying to load:", name)); + log::info("plugin {}: trying to load:"_format(name)); for (const auto &path : paths) { - log::info(fmt::format(" from ", path)); + log::info() << " from " << path << std::endl; try { plugin = std::make_shared<Plugin>(name, path, m_pluginConf[name]);