Kim Alvefur
f0c6467af8
mod_roster: Fix shell commands when a component is involved ( fixes #1908 )
...
Prevent attempt to load rosters on Components since they do not have
users or rosters.
2025-03-31 21:19:14 +02:00
Matthew Wild
0d15dab13f
mod_roster: Add basic roster management shell commands
2025-01-07 12:26:03 +00:00
Jonas Schäfer
9f53fd30a9
mod_roster: do not store number in attribute
...
Attributes are strings. That definitely is a number. So we
tostring() it. This is important when the API becomes stricter,
for whatever reason that might happen.
Practically, this moves the overhead of converting to a string
to a place where it is visible.
2024-11-16 09:12:11 +01:00
Kim Alvefur
98922d54b1
plugins: Prefix module imports with prosody namespace
2023-03-24 13:15:28 +01:00
Kim Alvefur
84447b8d9d
mod_roster: Improve readability of bare-JID check
...
Silences luacheck too
All we care about is that it is a bare JID, not a full JID with a
resource, since those are forbidden in rosters.
2021-12-22 18:07:44 +01:00
Jonas Schäfer
663028421f
mod_roster: pass correct username to roster-item-removed
...
The other invocations use it that way, and the only listener in trunk
which uses it (in mod_presence) expects it that way.
Passing the username of the JID from the removed entry causes incorrect
unavailable presence stanzas to be sent, allegedly kicking people off
MUCs.
Fixes #1121 .
2021-12-22 13:06:32 +01:00
Kim Alvefur
4fa2e21b49
mod_roster: Use new :text_tag()
2018-03-21 23:20:59 +01:00
Kim Alvefur
5535272ff7
mod_roster: Iterate over roster group items in more modern manner
2018-03-21 23:15:30 +01:00
Kim Alvefur
0f0d87f07b
mod_roster: Rename variable to silence shadowing warning [luacheck]
2016-12-13 21:25:11 +01:00
Kim Alvefur
1db5cd0ec4
mod_roster: Remove unused variable [luacheck]
2016-12-13 21:24:12 +01:00
Kim Alvefur
59c86a104c
mod_roster: Remove unused import [luacheck]
2016-12-13 21:23:48 +01:00
Kim Alvefur
afcc889869
mod_roster: Fire event for pending items for good measure
2016-04-04 21:48:42 +02:00
Kim Alvefur
cc487c8b9d
mod_roster: Handle roster item removal with event on user deletion
2016-04-04 17:18:27 +02:00
Kim Alvefur
9f6ac546e1
mod_presence, mod_roster: Move responsibility for sending presence on roster removal to mod_presence
2016-04-04 17:15:10 +02:00
Kim Alvefur
28c58565ac
rostermanager, mod_roster, mod_presence: Move pending roster items to roster metadata field
2015-04-03 06:38:22 +02:00
Florian Zeitz
1d833bb807
Remove all trailing whitespace
2013-08-09 17:48:21 +02:00
Kim Alvefur
1faf33dfd5
mod_roster: Remove unused variable
2013-03-23 01:35:52 +01:00
Kim Alvefur
d245a50c13
mod_roster: When an user is deleted, unsubscribe from their contacts
2012-08-25 01:31:05 +02:00
Kim Alvefur
9114e88ee0
mod_admin_adhoc, mod_admin_telnet, mod_bosh, mod_c2s, mod_component, mod_pep, mod_presence, mod_roster, mod_s2s: Import core_post_stanza from the global prosody table.
2012-07-26 04:33:17 +02:00
Waqas Hussain
0e3f3ca83d
mod_roster: Remove <optional/> from roster version stream feature, as per latest specs.
2011-05-07 21:16:25 +05:00
Waqas Hussain
b7e51a203d
Monster whitespace commit (beware the whitespace monster).
2010-10-16 23:00:42 +05:00
Waqas Hussain
a5ca380a43
mod_roster: Cleaned up some unused variables and global accesses.
2010-10-16 05:31:40 +05:00
Waqas Hussain
db7f6efac4
mod_roster: Updated to use the new events API.
2010-10-16 05:26:46 +05:00
Matthew Wild
180f79f833
mod_roster: Use value returned by pairs() during roster iteration to avoid dozens of wasteful table lookups
2010-07-05 02:20:37 +01:00
Matthew Wild
46c0b8c7f9
Merge 0.6->0.7
2010-03-22 17:24:55 +00:00
Matthew Wild
2bc0606453
Update copyright headers for 2010
2010-03-22 17:06:15 +00:00
Matthew Wild
edc283b455
mod_roster: Tidier code for the roster versioning logic
2010-03-22 01:54:22 +00:00
Waqas Hussain
025cbd545c
mod_roster: Hook stream-features event using new events API.
2010-02-12 04:22:30 +05:00
Waqas Hussain
a3c705d9ee
mod_roster: Ask remote server to remove pending subscription requests when removing roster items.
2009-11-26 12:57:24 +05:00
Tobias Markmann
f8e114fc45
Removing tabs at the end of a line.
2009-08-12 20:03:58 +02:00
Matthew Wild
118883d655
Remove version number from copyright headers
2009-07-10 03:11:45 +01:00
Waqas Hussain
bdddf1bfd6
mod_roster: Removed references to presencemanager and core_route_stanza
2009-06-14 17:59:22 +05:00
Waqas Hussain
bc5b4119c8
mod_roster: Using core_post_stanza in place of core.presencemanager.handle_presence
2009-06-14 17:58:16 +05:00
Matthew Wild
e76bc541aa
mod_roster: Add some comments for the error cases to improve readability
2009-05-26 01:27:07 +01:00
Matthew Wild
7ed27bd649
mod_roster: Don't send a query element in roster response if roster is unchanged
2009-05-26 01:07:21 +01:00
Waqas Hussain
6221ed58af
mod_roster: Advertize roster versioning support
2009-05-08 01:04:51 +05:00
Waqas Hussain
d7defcb1ef
Fixed: mod_roster: Prep JIDs being added to roster (part of issue #57 )
2009-03-30 02:38:51 +05:00
Matthew Wild
000fa4bb34
core.rostermanager/mod_roster: Support for roster versioning
2009-03-23 00:31:29 +00:00
Matthew Wild
c80f91dc02
0.3->0.4
2009-03-20 20:16:25 +00:00
Matthew Wild
c5ee166aa9
Update copyright notices for 2009
2009-01-30 17:59:26 +00:00
Matthew Wild
f2d020191f
0.2->0.3
2009-01-30 17:40:25 +00:00
Matthew Wild
bf3b96204d
GPL->MIT!
2009-01-30 17:22:56 +00:00
Matthew Wild
d3ad4a5123
0.1 -> 0.2
2008-12-10 15:44:03 +00:00
Waqas Hussain
df217cc0f1
Changed mod_roster to use the newer presence manager API
2008-12-08 21:08:22 +05:00
Waqas Hussain
2d2414f199
Change modules to use the new add_feature module API method.
...
This also fixes the bug causing disco features being added to every disco reply for every host.
2008-12-04 20:16:30 +05:00
Matthew Wild
0c5cc83112
Insert copyright/license headers
2008-12-03 14:39:07 +00:00
Matthew Wild
a153b3c267
Bumper commit for the new modulemanager API \o/ Updates all the modules, though some more changes may be in store.
2008-11-27 03:12:12 +00:00
Waqas Hussain
f68d335729
Modules now sending disco replies
2008-11-26 08:27:09 +05:00
Waqas Hussain
4293aefe65
Send unsubscribe and unsubscribed on roster item delete, and broadcast available resources' presence in reply to pre-approved subscription request
2008-11-17 13:51:47 +05:00
Matthew Wild
6522555bbb
Fix mod_roster to use session.send for sending stanzas
2008-11-15 23:09:08 +00:00