summaryrefslogtreecommitdiff
path: root/src/xmpp/xmpp_component.hpp
diff options
context:
space:
mode:
authorFlorent Le Coz <louiz@louiz.org>2014-06-18 22:42:58 +0200
committerFlorent Le Coz <louiz@louiz.org>2014-06-18 22:42:58 +0200
commit04de62a4e0af4843e84c933e16f249ba1df6874f (patch)
tree764c8234801de762a73aa0acff26efc742976cd2 /src/xmpp/xmpp_component.hpp
parent56eb5df28a1023db2039388fe6c8fc1346da1a3d (diff)
downloadbiboumi-04de62a4e0af4843e84c933e16f249ba1df6874f.tar.gz
biboumi-04de62a4e0af4843e84c933e16f249ba1df6874f.tar.bz2
biboumi-04de62a4e0af4843e84c933e16f249ba1df6874f.tar.xz
biboumi-04de62a4e0af4843e84c933e16f249ba1df6874f.zip
Messages to room participants are forwarded to the IRC user
For example, both JID #chan%server@biboumi/Toto and toto!server@biboumi are equivalent, except that if you send a message to the first one, subsequent messages coming from the user toto will come from that same JID. This is done to be consistent for the XMPP user, and respond from the same JID than the 'to' of the first message. fix #2468
Diffstat (limited to 'src/xmpp/xmpp_component.hpp')
-rw-r--r--src/xmpp/xmpp_component.hpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/xmpp/xmpp_component.hpp b/src/xmpp/xmpp_component.hpp
index f1806de..17462f4 100644
--- a/src/xmpp/xmpp_component.hpp
+++ b/src/xmpp/xmpp_component.hpp
@@ -111,9 +111,13 @@ public:
void close_document();
/**
* Send a message from from@served_hostname, with the given body
+ *
+ * If fulljid is false, the provided 'from' doesn't contain the
+ * server-part of the JID and must be added.
*/
void send_message(const std::string& from, Xmpp::body&& body,
- const std::string& to, const std::string& type);
+ const std::string& to, const std::string& type,
+ const bool fulljid=false);
/**
* Send a join from a new participant
*/