diff --git a/backends/libcommuni/main.cpp b/backends/libcommuni/main.cpp index 9b717d4ca7ebb2ccea6ee3f165b06905d808d7bc..cab694292061cd3764f04c2d1f5d87777adec8e7 100644 --- a/backends/libcommuni/main.cpp +++ b/backends/libcommuni/main.cpp @@ -78,7 +78,7 @@ int main (int argc, char* argv[]) { Swift::QtEventLoop eventLoop; - if (config.getUnregistered().find("service.irc_server") == config.getUnregistered().end()) { + if (!CONFIG_HAS_KEY(&config, "service.irc_server")) { np = new IRCNetworkPlugin(&config, &eventLoop, host, port); } else {