Kim Alvefur
8b12f4ace1
MUC: Advertise XEP-0410 support
...
Unsure if the feature was in the XEP at the time of 7c1cdf5f9f83
7 years ago
Matthew Wild
da3f688d79
MUC: Add error message to error bounces when not joined to room
7 years ago
Kim Alvefur
85a028c727
MUC: Allow changing data attached to an only owner ( fixes #1273 )
...
This previously prevented a single owner from setting their own nickname
via admin query.
The form method uses `true` as actor so it bypasses this check.
7 years ago
Matthew Wild
f281528c39
MUC: Adjust priorities of muc-get-default-role handlers ( fixes #1272 )
7 years ago
Kim Alvefur
38498588b4
MUC: Fix traceback on muc#admin query with missing <item> child ( #1242 )
...
Caused by a missing return statement introduced in 494938dec5d8
7 years ago
Kim Alvefur
60aa42033a
MUC: Allow anyone read access to all affiliation lists in non-anonymous rooms ( fixes #1230 )
7 years ago
Kim Alvefur
a13259451a
MUC: Clarify condition with parenthesis
7 years ago
Matthew Wild
54ecdb5cd0
MUC: Announce affiliation changes for JIDs that are not in the room
7 years ago
Matthew Wild
9c2ebc29f6
MUC: Remove debug log
7 years ago
Matthew Wild
2029dbf496
MUC: Add function to retrieve affiliation data for a given JID
7 years ago
Matthew Wild
58d6d5c41d
MUC: Include affiliation data when iterating over affiliations with a room
7 years ago
Matthew Wild
9825eee8c1
MUC: Use the bare JID when performing a lookup for COMPAT with clients that don't set it ( fixes #1224 )
...
The full JID is never meant to be the target of affiliation changes.
7 years ago
Kim Alvefur
07502b5698
MUC: Respond to ping per XEP-0410: MUC Self-Ping server optimization ( closes #1220 )
7 years ago
Matthew Wild
c59016f3d4
MUC: Don't kick user of a reserved nick if it's theirs (thanks pep.)
7 years ago
Kim Alvefur
1b392befb7
Backed out changeset b8c3dbf76a2e ( fixes #1162 )
...
This is not required by the XEP and has privacy issues.
8 years ago
Matthew Wild
41e736bbb5
MUC: Revert unstable MUC commits since 0.10.1
...
These have caused too many issue reports to be included in
the stable branch at this time.
Affected issues: #345 , #397
Reverted commits:
dcd53a565c01
6d4b0895f76d
1b10802a770e
564e897f0790
a7221ada9368
aaff40ec7001
05a3275b6873
c2b99fa134b3
8da11142fabf
8 years ago
Kim Alvefur
6a1f580316
MUC: Handle setting default history messages when history length is unset (thanks tmolitor)
8 years ago
Jonas Wielicki
409cae1fc7
MUC: ensure that x/item/@jid is always a bare JID
8 years ago
Jonas Wielicki
95ffd552f0
MUC: correctly emit <status/> tags
8 years ago
Jonas Wielicki
3443da43a2
MUC: reject non-bare JIDs in set_affiliation requests with not-acceptable
8 years ago
Jonas Wielicki
bdc12e4516
MUC: fix set_role invocation
8 years ago
Matthew Wild
ef17c4f12c
MUC: Restore status codes on presence sent to occupant when their affiliation changes (thanks jonasw)
8 years ago
Matthew Wild
c283ec08b0
MUC: Include 'nick' attribute in affiliation lists (thanks jc)
7 years ago
Matthew Wild
d7abfeeae5
MUC: Fix to correctly return 'node' in disco#info responses (thanks jc)
7 years ago
Matthew Wild
5d5fbb462c
MUC: Initialize room with empty affiliation_data if none stored
7 years ago
Kim Alvefur
868b9ea3b9
MUC: Allow vCard4 requests trough
7 years ago
Matthew Wild
f6f80c0bed
MUC: Allow admins to include a registered nick when setting affiliation
...
This is defined by XEP-0045 section 9.3 "Granting Membership"
7 years ago
Matthew Wild
6a8358e647
MUC: Allow the number of messages sent by default to be configured ( fixes #397 )
8 years ago
Matthew Wild
310bf706f1
MUC: Import revised, more comprehensive patch for 8da11142fabf ( #345 )
8 years ago
Matthew Wild
5e1226c7f9
MUC: Add some comments for clarity
7 years ago
Matthew Wild
cbddf7e40e
MUC: Add support for separate events for disco#info queries with a 'node'
...
Reserved nickname discovery uses this
7 years ago
Matthew Wild
0c65168705
MUC: Add support for storing additional data with MUC affiliations
...
XEP-0045 registration provides examples of registering a nickname
and various other details. This also allows modules to store arbitrary
private data about an affiliated entity.
7 years ago
Kim Alvefur
4d37f9c8a9
MUC: Direct PubSub queries to occupants to their real bare JID
...
This allows accessing PEP nodes of participants without knowing their
real JIDs.
8 years ago
Kim Alvefur
d993a7515e
MUC: Rename variable to make it clearer that it is the room JID and not the MUC host
8 years ago
Jonas Wielicki
1e1a96fa4c
MUC: Ensure that <delay/> elements which match our from are stripped ( fixes #1055 )
8 years ago
Jonas Wielicki
2e7e1a301c
MUC: fix the @from on <delay/> in history replay ( fixes #1054 )
8 years ago
Kim Alvefur
f535c57dd1
MUC: Always send subject message, even if it is empty ( fixes #1053 )
8 years ago
Lennart Sauerbeck
1727434f11
muc: Allow clients to change multiple affiliations or roles at once ( #345 )
...
According to XEP-0045 sections 9.2, 9.5 and 9.8 affiliation lists and role
lists should allow mass-modification. Prosody however would just use the
first entry of the list and ignore the rest. This is fixed by introducing
a `for` loop to `set` stanzas of the respective `muc#admin` namespace.
In order for this loop to work, the error handling was changed a little.
Prosody no longer returns after the first error. Instead, an error reply
is sent for each malformed or otherwise wrong entry, but the loop keeps
going over the other entries. This may lead to multiple error messages
being sent for one client request. A notable exception from this is when
the XML Schema for `muc#admin` requests is violated. In that case the loop
is aborted with an error message to the client.
The change is a bit bigger than that in order to have the loop only for
`set` stanzas without changing the behaviour of the `get` stanzas. This is
now more in line with trunk, where there are separate methods for each
stanza type.
References: #345
9 years ago
Jonas Wielicki
7530c1ae49
MUC: send muc#stanza_id feature as per XEP-0045 v1.31 ( fixes #1097 )
8 years ago
Jonas Wielicki
7f55f83d48
MUC: send muc#stanza_id feature as per XEP-0045 v1.31 ( fixes #1097 )
8 years ago
Kim Alvefur
cc8653d31c
MUC: Use variable that actually exists (thanks Martin)
9 years ago
Kim Alvefur
b433940c1e
MUC: Reject whitespace-only nicknames ( fixes #337 )
9 years ago
Kim Alvefur
ae4828d861
MUC: Add some comments attempting to explain what presence and <x> tag goes where
9 years ago
Kim Alvefur
c0ac4526f6
MUC: Include status code 110 on affiliation changes (see #765 )
9 years ago
Kim Alvefur
19f9d45e8c
MUC: Include status code 110 on role change notifications ( fixes #765 ))
9 years ago
Matthew Wild
a60bc20468
MUC: Remove 307 status from error-kicks ( fixes #939 )
8 years ago
Matthew Wild
4c736a4317
mod_muc: Fix incorrect variable usage [luacheck]
8 years ago
Matthew Wild
e76887da66
MUC: Suppress error text when participants are kicked due to error in semi-anon rooms ( fixes #563 )
...
This prevents information leaks (such as the occupant's server domain) which may
be included in error messages.
8 years ago
Kim Alvefur
e4b27b4e7a
MUC: Split long lines [luacheck strict]
8 years ago
Matthew Wild
e59116c19a
MUC: Fix another logic inversion ()
8 years ago