prosody-modules/0000-add-roster-get-event.patch

12 lines
486 B
Diff

diff -r df4bd3af4099 plugins/mod_roster.lua
--- a/plugins/mod_roster.lua Thu Apr 15 15:57:24 2021 +0200
+++ b/plugins/mod_roster.lua Sun Apr 25 16:45:40 2021 +0200
@@ -57,6 +57,7 @@
end
roster.tags[1].attr.ver = server_ver;
end
+ if module:fire_event("roster-get", { session = session, stanza = stanza, reply = roster }) then return; end;
session.send(roster);
session.interested = true; -- resource is interested in roster updates
else -- stanza.attr.type == "set"