Kim Alvefur
7801141c08
MUC: Add missing reference to room (thanks buildbot) [luacheck]
7 years ago
Kim Alvefur
5a37794485
MUC: Indicate that the room is the origin of various errors where 'from' is an occupant JID
7 years ago
Kim Alvefur
17e77058d6
MUC: Keep role across nickname change ( fixes #1466 )
7 years ago
Kim Alvefur
dfa96d659c
MUC: Strip tags with MUC-related namespaces from private messages ( fixes #1427 )
...
Prevents duplication since it adds another <{muc#user}x> here
7 years ago
Kim Alvefur
39a0966985
MUC: Enforce strict resourceprep on nicknames (bye bye robot face)
7 years ago
Kim Alvefur
12431d51d7
MUC: Advertise XEP-0410 support
...
Unsure if the feature was in the XEP at the time of 7c1cdf5f9f83
7 years ago
Lance Stout
790d4a630e
MUC: Add controls for whose presence is broadcast ( closes #1335 )
...
Committed by Zash
7 years ago
Matthew Wild
cb9e6a8ec7
MUC: Add error message to error bounces when not joined to room
7 years ago
Kim Alvefur
6c5d0e50e7
MUC: Reflow event tables to improve readability
...
Also makes it easier to read diffs of added fields.
7 years ago
Kim Alvefur
46e97ef82f
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.
8 years ago
Matthew Wild
c0504b0e06
MUC: Adjust priorities of muc-get-default-role handlers ( fixes #1272 )
8 years ago
Kim Alvefur
dc1690029d
MUC: Fix traceback on muc#admin query with missing <item> child ( #1242 )
...
Caused by a missing return statement introduced in 494938dec5d8
8 years ago
Kim Alvefur
4dcb48996d
MUC: Allow anyone read access to all affiliation lists in non-anonymous rooms ( fixes #1230 )
8 years ago
Kim Alvefur
ffff93c343
MUC: Clarify condition with parenthesis
8 years ago
Matthew Wild
c19a8ef9ff
MUC: Announce affiliation changes for JIDs that are not in the room
8 years ago
Matthew Wild
5b895a2d9f
MUC: Remove debug log
8 years ago
Matthew Wild
c952045eb6
MUC: Add function to retrieve affiliation data for a given JID
8 years ago
Matthew Wild
2e417768dc
MUC: Include affiliation data when iterating over affiliations with a room
8 years ago
Matthew Wild
7b7f153a80
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.
8 years ago
Kim Alvefur
7f563615fd
MUC: Respond to ping per XEP-0410: MUC Self-Ping server optimization ( closes #1220 )
8 years ago
Matthew Wild
fdb852fbbb
MUC: Don't kick user of a reserved nick if it's theirs (thanks pep.)
8 years ago
Kim Alvefur
d71189a4a6
Backed out changeset b8c3dbf76a2e ( fixes #1162 )
...
This is not required by the XEP and has privacy issues.
8 years ago
Matthew Wild
0fd614dbab
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
0caeb4940e
MUC: Handle setting default history messages when history length is unset (thanks tmolitor)
8 years ago
Jonas Wielicki
b6a654fdfc
MUC: ensure that x/item/@jid is always a bare JID
8 years ago
Jonas Wielicki
5865da2406
MUC: correctly emit <status/> tags
8 years ago
Jonas Wielicki
10dac8879e
MUC: reject non-bare JIDs in set_affiliation requests with not-acceptable
8 years ago
Jonas Wielicki
c1f51c6f13
MUC: fix set_role invocation
8 years ago
Matthew Wild
380e51758c
MUC: Restore status codes on presence sent to occupant when their affiliation changes (thanks jonasw)
8 years ago
Matthew Wild
889612dd5a
MUC: Include 'nick' attribute in affiliation lists (thanks jc)
8 years ago
Matthew Wild
d795c3994a
MUC: Fix to correctly return 'node' in disco#info responses (thanks jc)
8 years ago
Matthew Wild
bb23075a86
MUC: Initialize room with empty affiliation_data if none stored
8 years ago
Kim Alvefur
08e97e608a
MUC: Allow vCard4 requests trough
8 years ago
Matthew Wild
9c080c9631
MUC: Allow admins to include a registered nick when setting affiliation
...
This is defined by XEP-0045 section 9.3 "Granting Membership"
8 years ago
Matthew Wild
9ddd7d489e
MUC: Allow the number of messages sent by default to be configured ( fixes #397 )
8 years ago
Matthew Wild
98148f5e63
MUC: Import revised, more comprehensive patch for 8da11142fabf ( #345 )
8 years ago
Matthew Wild
d7c86f2e6f
MUC: Add some comments for clarity
8 years ago
Matthew Wild
0da19da4a6
MUC: Add support for separate events for disco#info queries with a 'node'
...
Reserved nickname discovery uses this
8 years ago
Matthew Wild
293efa61df
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.
8 years ago
Kim Alvefur
6ba3049a78
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
173196f076
MUC: Rename variable to make it clearer that it is the room JID and not the MUC host
9 years ago
Jonas Wielicki
79465f809f
MUC: Ensure that <delay/> elements which match our from are stripped ( fixes #1055 )
9 years ago
Jonas Wielicki
f0a0a5aad7
MUC: fix the @from on <delay/> in history replay ( fixes #1054 )
9 years ago
Kim Alvefur
ac1e878844
MUC: Always send subject message, even if it is empty ( fixes #1053 )
9 years ago
Lennart Sauerbeck
9fa6dd939e
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
19ceef8658
MUC: send muc#stanza_id feature as per XEP-0045 v1.31 ( fixes #1097 )
8 years ago
Jonas Wielicki
f6cab5c6d2
MUC: send muc#stanza_id feature as per XEP-0045 v1.31 ( fixes #1097 )
8 years ago
Kim Alvefur
239f4bd260
MUC: Use variable that actually exists (thanks Martin)
9 years ago
Kim Alvefur
a3a0b35522
MUC: Reject whitespace-only nicknames ( fixes #337 )
9 years ago
Kim Alvefur
943e6be943
MUC: Add some comments attempting to explain what presence and <x> tag goes where
9 years ago