diff options
author | Jonas Schäfer <j.wielicki@sotecware.net> | 2019-08-20 20:11:10 +0200 |
---|---|---|
committer | Jonas Schäfer <j.wielicki@sotecware.net> | 2019-08-20 21:42:43 +0200 |
commit | a8ce138dd2367f39e3a90857869245a197bb9f8c (patch) | |
tree | fb385897672755bf179abe58c29f7e265750ef30 /src/bridge | |
parent | b68f36056dab9f7cd8f6b9fcda4db445df1b5ada (diff) | |
download | biboumi-a8ce138dd2367f39e3a90857869245a197bb9f8c.tar.gz biboumi-a8ce138dd2367f39e3a90857869245a197bb9f8c.tar.bz2 biboumi-a8ce138dd2367f39e3a90857869245a197bb9f8c.tar.xz biboumi-a8ce138dd2367f39e3a90857869245a197bb9f8c.zip |
XEP-0410: set not-in-the-room error condition to not-acceptable
XEP-0410 demands that. This changes the error condition for all
pings to the room, even those which aren’t self-pings, if the
sender is not joined.
The conditions of XEP-0410 were based on observing existing
implementations.
Diffstat (limited to 'src/bridge')
-rw-r--r-- | src/bridge/bridge.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bridge/bridge.cpp b/src/bridge/bridge.cpp index f065930..4d4e9de 100644 --- a/src/bridge/bridge.cpp +++ b/src/bridge/bridge.cpp @@ -743,7 +743,7 @@ void Bridge::send_irc_participant_ping_request(const Iid& iid, const std::string IrcChannel* chan = irc->get_channel(iid.get_local()); if (!chan->joined || !this->is_resource_in_chan(iid.to_tuple(), from.resource)) { - this->xmpp.send_stanza_error("iq", to_jid, from_jid, iq_id, "cancel", "not-allowed", + this->xmpp.send_stanza_error("iq", to_jid, from_jid, iq_id, "cancel", "not-acceptable", "", true); return; } |