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.hpp | |
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.hpp')
-rw-r--r-- | src/xmpp/xmpp_component.hpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/xmpp/xmpp_component.hpp b/src/xmpp/xmpp_component.hpp index 3950863..cef26c1 100644 --- a/src/xmpp/xmpp_component.hpp +++ b/src/xmpp/xmpp_component.hpp @@ -1,8 +1,10 @@ #pragma once +#include "biboumi.h" #include <xmpp/adhoc_commands_handler.hpp> #include <network/tcp_client_socket_handler.hpp> +#include <database/database.hpp> #include <xmpp/xmpp_parser.hpp> #include <xmpp/body.hpp> @@ -133,11 +135,13 @@ public: */ void send_muc_message(const std::string& muc_name, const std::string& nick, Xmpp::body&& body, const std::string& jid_to, std::string uuid); +#ifdef USE_DATABASE /** * Send a message, with a <delay/> element, part of a MUC history */ void send_history_message(const std::string& muc_name, const std::string& nick, const std::string& body, const std::string& jid_to, const std::time_t timestamp); +#endif /** * Send an unavailable presence for this nick */ |