Matthew Wild
3cdaf29bf8
mod_presence: Fix traceback if origin gets disconnected during processing
...
Fixes #1887
11 months ago
Kim Alvefur
98922d54b1
plugins: Prefix module imports with prosody namespace
3 years ago
Kim Alvefur
71d6bde69c
mod_presence: Send unavailable presence in current thread run
...
`session:dispatch_stanza(pres)` enqueues processing of the stanza in the
sessions async thread, but becasue the entire stream close handling is
now in that thread it would process the presence after the stream and
session was completely closed, leading to weird errors "sent to a
resting session".
We call core_process_stanza() since this is what :dispatch_stanza calls
in the end.
6 years ago
Kim Alvefur
c0b0c81802
mod_presence: Advertise support for Subscription Pre-Approval
...
RFC 6121 §3.4 says:
> If a server supports subscription pre-approvals, then it MUST
> advertise the following stream feature during stream negotiation.
The feature itself (#686 ) was added in f0e9e5bda415
6 years ago
Kim Alvefur
77daebcbc2
mod_presence: Ignore an unused variable [luacheck]
...
Not sure if it should be unused, hence the TODO
6 years ago
Matthew Wild
173990157f
rostermanager, mod_presence: Support for subscription preapproval ( fixes #686 )
6 years ago
Kim Alvefur
b2d3ebb76d
mod_presence: Revert empty 'to' attribute of presence before presence/initial event ( fixes #1296 )
7 years ago
Kim Alvefur
d8b1435c70
mod_presence: Use get_child_text on priority child element ( fixes #552 )
9 years ago
Kim Alvefur
abdd9866e5
mod_presence: No need to overwrite index 1 since it's set on the line below
9 years ago
Kim Alvefur
3ec060fc0c
Fix spelling throughout the codebase [codespell]
8 years ago
Kim Alvefur
bb927767c2
mod_presence: Ignore unused argument but make note of its use elsewhere [luacheck]
8 years ago
Kim Alvefur
0fff40cdd9
mod_presence: Remove unused local [luacheck]
8 years ago
Kim Alvefur
1dbe1533ec
mod_presence: Send probe once subscribed ( fixes #794 )
9 years ago
Anton Shestakov
0ce8de81ab
mod_presence: remove unused one-letter loop variable [luacheck]
10 years ago
Kim Alvefur
2b1cedaf7a
mod_presence: Re-probe for contacts presence after outgoing 'subscribed' ( fixes #673 )
10 years ago
Kim Alvefur
6ff1b30f47
mod_presence: Fix variable name
10 years ago
Kim Alvefur
0c4b70fe8f
mod_presence: Construct a 'from' JID when roster items are removed outside of a session
10 years ago
Kim Alvefur
1e3a0dc5df
mod_presence: Send unavailable presence when roster items are removed ( fixes #331 )
10 years ago
Kim Alvefur
9f6ac546e1
mod_presence, mod_roster: Move responsibility for sending presence on roster removal to mod_presence
10 years ago
Kim Alvefur
1fc7b4fca0
mod_presence: Fix partial rename
10 years ago
Kim Alvefur
ab4f0cf7c4
mod_presence: Move function for selecting "top resources" into a new util.presence
10 years ago
Kim Alvefur
421cbe1c1a
mod_presence: Use type-specific config API for boolean 'ignore_presence_priority' option
10 years ago
Kim Alvefur
28c58565ac
rostermanager, mod_roster, mod_presence: Move pending roster items to roster metadata field
11 years ago
Kim Alvefur
8003a40b0a
mod_lastactivity, mod_legacyauth, mod_presence, mod_saslauth, mod_tls: Use the newer stanza:get_child APIs and optimize away some table lookups
12 years ago
Kim Alvefur
15b3071beb
mod_presence: Fire a presence/initial event on initial presence
12 years ago
Kim Alvefur
2233e80e2b
mod_presence: Move presence/initial event to correct place so it actually fires
12 years ago
Florian Zeitz
1d833bb807
Remove all trailing whitespace
13 years ago
Matthew Wild
37735f0c3e
mod_presence: Remove some unused variables
13 years ago
Kim Alvefur
27dc3a5b9a
mod_announce, mod_auth_anonymous, mod_c2s, mod_c2s, mod_component, mod_iq, mod_message, mod_presence, mod_tls: Access prosody.{hosts,bare_sessions,full_sessions} instead of the old globals
13 years ago
Kim Alvefur
c2d66ccab1
mod_presence: Put a timestamp on presence we store for probes
13 years ago
Kim Alvefur
6da5020684
mod_presence: Fix indentation
13 years ago
Kim Alvefur
e3d678dd67
mod_presence: Handle older boolean subscription request data (thanks Martin)
7 years ago
Kim Alvefur
c083a55ca5
mod_presence: Remove unnecessary stanza clone call
7 years ago
Matthew Wild
3836d03c37
rostermanager, mod_presence: Store stanza for incoming subscription requests ( fixes #689 ) (thanks Zash, Ge0rG)
7 years ago
Waqas Hussain
333dd0e428
mod_presence, rostermanager: Bring outbound subscription cancellation in line with RFC6121.
14 years ago
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.
14 years ago
Matthew Wild
e89b006f03
Hopefully inert commit to clean up logging across a number of modules, removing all cases of concatenation when building log messages
14 years ago
Matthew Wild
3bdb9e7da9
mod_presence: Handle nil disconnection error
14 years ago
Robert Hoelz
32c092ae0e
mod_presence, mod_offline: Merge message/offline/delete with message/offline/broadcast.
15 years ago
Robert Hoelz
de4b6ceb33
core.offlinemanager, mod_message, mod_presence: Removed core.offlinemanager in favor of mod_offline.
15 years ago
Matthew Wild
cda0d3e598
mod_presence: Bounce errors for invalid presence types (thanks nolan/Astro)
15 years ago
Matthew Wild
037b82e6f0
mod_presence: Bounce errors for invalid presence types (thanks nolan/Astro)
15 years ago
Robert Hoelz
f60a52f713
mod_presence, mod_offline: Merge message/offline/delete with message/offline/broadcast.
15 years ago
Robert Hoelz
7bfadb35ed
core.offlinemanager, mod_message, mod_presence: Removed core.offlinemanager in favor of mod_offline.
15 years ago
Waqas Hussain
b7e51a203d
Monster whitespace commit (beware the whitespace monster).
15 years ago
Robert Hoelz
c74e3999fb
Don't send offline messages to resource with negative priorities
15 years ago
Waqas Hussain
fdb9749df9
mod_presence: Fixed a traceback on outgoing subscriptions from offline users.
16 years ago
Waqas Hussain
c7af4d8bf5
mod_presence: Fixed a traceback.
16 years ago
Waqas Hussain
c04a3c71c7
mod_presence: Enable firing of pre-events for all outbound stanzas, and switching completely to core_post_stanza.
16 years ago
Waqas Hussain
5f4b882a77
mod_presence: Enable firing of pre-events for probes.
16 years ago