summaryrefslogtreecommitdiff
path: root/louloulibs/xmpp/xmpp_component.hpp
diff options
context:
space:
mode:
authorlouiz’ <louiz@louiz.org>2016-08-22 00:44:17 +0200
committerlouiz’ <louiz@louiz.org>2016-08-22 00:44:17 +0200
commitd1626c929f1d313c2f0f85b7d8b756a8d488d1dc (patch)
treec3f4e4c18fbd69cf119d09e51f9c43b9da932b87 /louloulibs/xmpp/xmpp_component.hpp
parent593b3268273cac2fa58257ee8e51ce1a6de30872 (diff)
downloadbiboumi-d1626c929f1d313c2f0f85b7d8b756a8d488d1dc.tar.gz
biboumi-d1626c929f1d313c2f0f85b7d8b756a8d488d1dc.tar.bz2
biboumi-d1626c929f1d313c2f0f85b7d8b756a8d488d1dc.tar.xz
biboumi-d1626c929f1d313c2f0f85b7d8b756a8d488d1dc.zip
When joining a channel, send the most recent history found in the database
Diffstat (limited to 'louloulibs/xmpp/xmpp_component.hpp')
-rw-r--r--louloulibs/xmpp/xmpp_component.hpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/louloulibs/xmpp/xmpp_component.hpp b/louloulibs/xmpp/xmpp_component.hpp
index 5fc6d2e..3a3b10b 100644
--- a/louloulibs/xmpp/xmpp_component.hpp
+++ b/louloulibs/xmpp/xmpp_component.hpp
@@ -135,6 +135,11 @@ public:
*/
void send_muc_message(const std::string& muc_name, const std::string& nick, Xmpp::body&& body, const std::string& jid_to);
/**
+ * 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);
+ /**
* Send an unavailable presence for this nick
*/
void send_muc_leave(const std::string& muc_name, std::string&& nick, Xmpp::body&& message, const std::string& jid_to, const bool self);