diff options
| author | Linus Jahn <lnj@kaidan.im> | 2021-05-29 19:04:10 +0200 |
|---|---|---|
| committer | Linus Jahn <lnj@kaidan.im> | 2021-05-29 19:04:10 +0200 |
| commit | 953d8588b94fec779bdf667c024150c9690470c4 (patch) | |
| tree | 15fa5929df777d971899ecf30d7fecf23d361565 /src/client/QXmppMucManager.cpp | |
| parent | 00e2b4f857b099f08ed2c8bf4da234c67e6ec694 (diff) | |
| download | qxmpp-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.cpp | 7 |
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; |
