Commit graph

28 commits

Author SHA1 Message Date
Kim Alvefur
e725335ed3 mod_carbons: Allow plugging into decision of whether to carbon-copy
Similar procedure as mod_csi_simple and mod_mam
2022-02-21 11:24:58 +01:00
Kim Alvefur
168197a05f plugins: Update for namespace bump in XEP-0353 v0.4.0 2022-01-11 17:51:26 +01:00
Kim Alvefur
7f60bc8f3e mod_carbons: Advertise following of recommended rules (closes #1486)
We're doing our best!
2021-10-05 17:02:32 +02:00
Kim Alvefur
9ae27ec538 mod_carbons: Reduce line count using new util.stanza attr method 2021-09-12 20:18:04 +02:00
Kim Alvefur
cb1282bfd0 mod_csi_simple,mod_carbons,mod_mam: Update comment about XEP-0353
It went back to Deferred
2021-01-08 17:32:06 +01:00
Kim Alvefur
4443c44e22 mod_carbons: Explicitly carbon XEP-0353: Jingle Message Initiation 2020-05-09 00:55:18 +02:00
Kim Alvefur
527d16b0b3 mod_carbons: Describe return types in a comment
For similarity with mod_mam, mod_csi_simple
2020-05-09 00:50:59 +02:00
Kim Alvefur
92c97b0361 mod_carbons: Clarify handling of error bounces
The :find bit was hard to understand, this should be clearer.
2020-05-06 12:48:09 +02:00
Kim Alvefur
b966c97690 mod_carbons: Check for and strip 'private' tag before stopping
This was explicit previously
2020-04-27 14:46:15 +02:00
Kim Alvefur
7041043802 mod_carbons: Don't copy messages that should not be copied
The return statements were lost in d95e083931d1
2020-04-27 14:43:54 +02:00
Kim Alvefur
608f1d1c58 mod_carbons: Carbon anything that has been archived by the current user
This ensures rules in mod_mam apply to some extent. Messages worth
archiving are probably worth sending to other clients.
2020-04-26 20:24:51 +02:00
Kim Alvefur
9e3ef1c01b mod_carbons: Carbon incoming message delivery failure reports
Ensures that all your clients know about sent messages that failed.
2020-04-26 20:23:50 +02:00
Kim Alvefur
bec170ac73 mod_carbons: Fix syntax error [luacheck] 2020-04-26 21:11:00 +02:00
Kim Alvefur
fe36680fba mod_carbons: Refactor in new style (mod_mam/csi) 2020-04-26 20:17:43 +02:00
Kim Alvefur
9bc378f662 Merge 0.11->trunk 2020-04-26 20:49:31 +02:00
Kim Alvefur
156f32c823 mod_carbons: Fix handling of incoming MUC PMs #1540
27f5db07bec9 fixed this wrong. The code is supposed to check if the
stanza is NOT sent to your bare JID. A MUC PM is always sent to your
full JID. Hopefully nobody sends MUC invites to full JIDs, because those
would be skipped by this as well.
2020-04-26 20:39:39 +02:00
Kim Alvefur
c02ddf92ec mod_carbons: Improve performance by delaying creation of carbon payload
If there are no other sessions which also enabled carbons then the
carbons wrapper is not used and the potentially expensive clone
operation was a waste of cycles.
2019-11-30 19:34:40 +01:00
Kim Alvefur
c42b40b07d mod_carbons: Synthesize a 'to' attribute for carbons of stanzas to "self" (fixes #956) 2017-10-26 22:22:14 +02:00
Kim Alvefur
f9869506ed mod_carbons: Rename some variables for clarity 2016-12-08 17:51:23 +01:00
Kim Alvefur
a89c193bb2 mod_message, mod_carbons: Adjust event hook priorities to negative (core modules should do this to make overriding from other modules easier) 2016-11-17 22:38:46 +01:00
Kim Alvefur
bba90ea30a mod_carbons: Fix logic presendence 2016-10-17 23:23:36 +02:00
Kim Alvefur
c86a00dec4 mod_carbons: Fix inverted logic (Thanks Ge0rg)} 2016-09-23 16:26:09 +02:00
Kim Alvefur
03d5fec392 mod_carbons: Compare with correct variable 2016-09-23 14:06:25 +02:00
Kim Alvefur
77cb2879ff mod_carbons: Make the conditions for ignoring MUC PMs more specific (fixes #744) 2016-09-23 14:03:37 +02:00
Kim Alvefur
7cfa1513cc plugins: Explicitly return to halt event propagation (session.send sometimes does not return true) 2015-09-21 23:06:22 +02:00
Kim Alvefur
e92f6bc9c1 mod_carbons: Get full_ and bare_sessions from the prosody global [luacheck] 2015-08-27 12:17:12 +02:00
Kim Alvefur
44a083cf43 mod_carbons: Carbon chat messages or normal messages that have a body 2015-08-26 17:35:41 +02:00
Kim Alvefur
89650879bb mod_carbons: Import XEP-0280 implementation from prosody-modules (sans compat with older versions of the protocol) 2015-01-16 14:02:14 +01:00