diff options
author | louiz’ <louiz@louiz.org> | 2018-01-30 09:14:26 +0100 |
---|---|---|
committer | louiz’ <louiz@louiz.org> | 2018-01-30 09:14:26 +0100 |
commit | 58fd68916636df2372f8187b375245ef5922833a (patch) | |
tree | 25394c4f5788ffde49a9f6ee1122ad287b89c9f2 /src/xmpp/xmpp_component.cpp | |
parent | cb831788942b49a28bd79fd62dbdc3d00f15b227 (diff) | |
download | biboumi-58fd68916636df2372f8187b375245ef5922833a.tar.gz biboumi-58fd68916636df2372f8187b375245ef5922833a.tar.bz2 biboumi-58fd68916636df2372f8187b375245ef5922833a.tar.xz biboumi-58fd68916636df2372f8187b375245ef5922833a.zip |
Add a ifndef USE_DATABASE guard around send_history_message
Diffstat (limited to 'src/xmpp/xmpp_component.cpp')
-rw-r--r-- | src/xmpp/xmpp_component.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/xmpp/xmpp_component.cpp b/src/xmpp/xmpp_component.cpp index 88baf6e..9be9e34 100644 --- a/src/xmpp/xmpp_component.cpp +++ b/src/xmpp/xmpp_component.cpp @@ -4,7 +4,6 @@ #include <logger/logger.hpp> #include <xmpp/xmpp_component.hpp> -#include <database/database.hpp> #include <config/config.hpp> #include <utils/system.hpp> #include <utils/time.hpp> @@ -399,6 +398,7 @@ void XmppComponent::send_muc_message(const std::string& muc_name, const std::str this->send_stanza(message); } +#ifdef USE_DATABASE void XmppComponent::send_history_message(const std::string& muc_name, const std::string& nick, const std::string& body_txt, const std::string& jid_to, Database::time_point::rep timestamp) { Stanza message("message"); @@ -422,6 +422,7 @@ void XmppComponent::send_history_message(const std::string& muc_name, const std: this->send_stanza(message); } +#endif void XmppComponent::send_muc_leave(const std::string& muc_name, const std::string& nick, Xmpp::body&& message, const std::string& jid_to, const bool self, const bool user_requested) |