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

12 lines
475 B
Diff
Raw Normal View History

2020-11-02 16:10:35 +00:00
diff -r 8a29e7206917 plugins/mod_roster.lua
--- a/plugins/mod_roster.lua Sun Oct 25 15:23:36 2020 +0100
+++ b/plugins/mod_roster.lua Mon Nov 02 17:09:21 2020 +0100
@@ -57,6 +57,7 @@
end
roster.tags[1].attr.ver = server_ver;
end
+ if module:fire_event("roster-get", { session = session, stanza = stanza }) then return; end
session.send(roster);
session.interested = true; -- resource is interested in roster updates
else -- stanza.attr.type == "set"