Commit graph

84 commits

Author SHA1 Message Date
Kim Alvefur
43351d2b54 Spelling: Fix various spelling mistakes (thanks timeless)
Words, sometimes I wonder how they even work

Maybe I missed something.
2022-03-07 00:13:56 +01:00
Matthew Wild
173990157f rostermanager, mod_presence: Support for subscription preapproval (fixes #686) 2019-12-19 10:03:16 +00:00
Kim Alvefur
149e748141 core.rostermanager: Cache rosters of offline users for faster access (fixes #1233) 2018-12-16 02:56:11 +01:00
Matthew Wild
3836d03c37 rostermanager, mod_presence: Store stanza for incoming subscription requests (fixes #689) (thanks Zash, Ge0rG) 2018-12-01 22:13:24 +00:00
Matthew Wild
13f865a607 rostermanager: Use util.id to generate ids for roster pushed 2018-09-13 16:08:38 +01:00
Kim Alvefur
77fbea8cdc core: Use prosody.hosts instead of _G.hosts for consistency 2018-03-29 16:58:06 +02:00
Kim Alvefur
43b814a83b vairious: Add annotation when an empty environment is set [luacheck] 2018-02-28 20:06:26 +01:00
Kim Alvefur
76d18a8464 rostermanager: Explicitly remove old-style 'pending' table from rosters (or it stays forever due to map stores) 2017-12-29 20:49:19 +01:00
Kim Alvefur
efcd11b541 rostermanager: Log warning if removal self-contact failed 2017-10-29 00:07:45 +02:00
Kim Alvefur
04bdf078d3 rostermanager: Use internal method for storing removal of self-contact 2017-10-29 00:07:18 +02:00
Kim Alvefur
314beadb4b rostermanager: Demote warning to debug message 2017-10-29 00:06:26 +02:00
Kim Alvefur
bf3bb71ed6 rostermanager: Capitalize log message 2017-10-29 00:05:26 +02:00
Emmanuel Gil Peyrot
67e92afe78 rostermanager: Remove self-contact entry (fixes #933) 2017-09-19 19:17:23 +02:00
Emmanuel Gil Peyrot
519ef501d2 rostermanager: Simplify logging. 2017-09-19 19:17:07 +02:00
Kim Alvefur
c5fc8dc1c1 rostermanager: Use correct variable (missed one place while renaming variable in b98006bfd97a) 2017-05-18 01:59:55 +02:00
Kim Alvefur
e45c5961ac core: Allow select core modules to mutate some globals (needs luacheck 1.19) 2017-03-04 20:09:28 +01:00
Kim Alvefur
bbaaaa99a4 Merge 0.9->0.10 2016-12-09 17:07:57 +01:00
Kim Alvefur
a9b7d2f8e1 core.rostermanager: Add method for checking if the user is subscribed to a contact 2016-12-09 15:15:10 +01:00
Kim Alvefur
89df062a5e rostermanager: Remove FIXME, per XMPP Core 8.1.1.1, we do not need to set the 'to' attribute 2016-03-12 18:13:24 +01:00
Matthew Wild
4c3e8cf880 rostermanager: Require storagemanager at the top, fixes traceback on Lua 5.2 2016-02-19 12:15:02 +00:00
Kim Alvefur
a687ceb76b rostermanager: Use map stores when only one contact is changed 2016-02-09 17:09:01 +01:00
Kim Alvefur
3977731fad rostermanager: Use storagemanager 2016-02-09 17:01:04 +01:00
Kim Alvefur
1503fd92e6 rostermanager: Rename variable to avoid name clash [luacheck] 2016-01-09 15:18:46 +01:00
Kim Alvefur
7e20875a3b rostermanager: Add forward declarations 2015-04-08 00:44:30 +02:00
Kim Alvefur
27265c20e2 core.*: Remove use of module() function 2015-02-21 10:42:19 +01:00
Matthew Wild
59c9585f12 rostermanager: Variable rename for clarity and to avoid name clash [luacheck] 2015-05-06 19:17:59 +01:00
Kim Alvefur
336f7667f8 rostermanager: Fix roster upgrade code (thanks mva) 2015-04-05 16:19:02 +02:00
Florian Zeitz
17e942c4dc rostermanager: Add missing import of type() 2015-04-03 21:42:30 +02:00
Matthew Wild
c71e65917c rostermanager: Remove unused parameter 2015-04-03 19:13:35 +01: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
Matthew Wild
7ebf4fa4c2 rostermanager: Access bare_sessions through prosody.bare_sessions 2015-01-20 11:31:30 +00:00
Florian Zeitz
1d833bb807 Remove all trailing whitespace 2013-08-09 17:48:21 +02:00
Matthew Wild
71ab938d53 rostermanager, mod_groups: Change roster-load event to pass an event table for consistency 2013-07-15 11:43:23 +01:00
Marco Cirillo
123fef628e rostermanager: do not save rosters for unexistant users. 2013-04-05 04:52:11 +00:00
Kim Alvefur
608eb6194a rostermanager: Remove unused imports 2013-03-13 07:03:34 +01:00
Waqas Hussain
333dd0e428 mod_presence, rostermanager: Bring outbound subscription cancellation in line with RFC6121. 2012-08-01 01:36:16 +05:00
Matthew Wild
81bef2c93b Merge with Florob 2012-07-28 01:14:31 +01:00
Matthew Wild
e89b006f03 Hopefully inert commit to clean up logging across a number of modules, removing all cases of concatenation when building log messages 2012-07-23 17:32:33 +01:00
Florian Zeitz
d49b9bc2ab Eliminate direct setfenv usage 2012-06-08 05:04:38 +02:00
Waqas Hussain
49d8e76614 rostermanager: Optimisation to avoid unnecessarily loading rosters for offline contacts on probes, etc. 2010-06-01 20:09:31 +01:00
Waqas Hussain
e1b4298fde rostermanager: Return an error string when subscription test fails due to an error. 2010-05-24 00:35:08 +05:00
Waqas Hussain
054a2d38c1 rostermanager: Mark rosters which fail to load as broken, and never save them. 2010-05-24 00:29:45 +05:00
Matthew Wild
41d45e0c64 rostermanager: Don't fire roster-load event if there was an error loading the roster 2010-05-22 12:20:22 +01:00
Waqas Hussain
2bf0d50232 rostermanager: When loading the roster, also return a datamanager error if available. 2010-05-22 05:50:47 +05: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
ddc6e94e63 rostermanager: Don't bump the roster version if it is == true (ie. we are not versioning the roster) 2010-03-22 14:28:25 +00:00
Waqas Hussain
e9f1949a99 rostermanager: Fixed a global access. 2009-10-22 04:47:40 +05:00
Waqas Hussain
c3555f641a rostermanager: Refactored roster loading to remove duplicate code. 2009-10-22 03:46:54 +05:00
Waqas Hussain
eab91c4f75 rostermanager: Log a warning when a self-contact is detected. 2009-10-22 03:38:00 +05:00