aboutsummaryrefslogtreecommitdiff
path: root/src/client/QXmppMucManager.cpp
diff options
context:
space:
mode:
authorLinus Jahn <lnj@kaidan.im>2021-05-29 19:04:10 +0200
committerLinus Jahn <lnj@kaidan.im>2021-05-29 19:04:10 +0200
commit953d8588b94fec779bdf667c024150c9690470c4 (patch)
tree15fa5929df777d971899ecf30d7fecf23d361565 /src/client/QXmppMucManager.cpp
parent00e2b4f857b099f08ed2c8bf4da234c67e6ec694 (diff)
downloadqxmpp-953d8588b94fec779bdf667c024150c9690470c4.tar.gz
MucRoom::sendMessage: Improve explanation of the helper function
Explain that and how it's possible to send custom messages.
Diffstat (limited to 'src/client/QXmppMucManager.cpp')
-rw-r--r--src/client/QXmppMucManager.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/client/QXmppMucManager.cpp b/src/client/QXmppMucManager.cpp
index a19cc139..db884792 100644
--- a/src/client/QXmppMucManager.cpp
+++ b/src/client/QXmppMucManager.cpp
@@ -330,10 +330,15 @@ bool QXmppMucRoom::sendInvitation(const QString &jid, const QString &reason)
return d->client->sendPacket(message);
}
+///
/// Sends a message to the room.
///
+/// This is just a helper function, you can as well also send a message to the
+/// channel manually by setting the message type to 'groupchat' and addressing
+/// the JID of the MUC room.
+///
/// \return true if the request was sent, false otherwise
-
+///
bool QXmppMucRoom::sendMessage(const QString &text)
{
QXmppMessage msg;