summaryrefslogtreecommitdiff
path: root/src/bridge/bridge.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/bridge/bridge.cpp')
-rw-r--r--src/bridge/bridge.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/bridge/bridge.cpp b/src/bridge/bridge.cpp
index 7e6f801..2ad6af8 100644
--- a/src/bridge/bridge.cpp
+++ b/src/bridge/bridge.cpp
@@ -3,7 +3,7 @@
#include <xmpp/xmpp_component.hpp>
#include <network/poller.hpp>
#include <utils/encoding.hpp>
-
+#include <logger/logger.hpp>
#include <utils/split.hpp>
#include <iostream>
@@ -78,13 +78,13 @@ void Bridge::send_channel_message(const Iid& iid, const std::string& body)
const std::string first_line = lines[0];
if (iid.chan.empty() || iid.server.empty())
{
- std::cout << "Cannot send message to channel: [" << iid.chan << "] on server [" << iid.server << "]" << std::endl;
+ log_warning("Cannot send message to channel: [" << iid.chan << "] on server [" << iid.server << "]");
return;
}
IrcClient* irc = this->get_irc_client(iid.server);
if (!irc)
{
- std::cout << "Cannot send message: no client exist for server " << iid.server << std::endl;
+ log_warning("Cannot send message: no client exist for server " << iid.server);
return;
}
if (first_line.substr(0, 6) == "/mode ")