patch: 'Finalize' the roster-get patch

This commit is contained in:
PapaTutuWawa 2021-04-25 16:46:12 +02:00
parent f91e597c57
commit 2c89d00c09

View File

@ -1,11 +1,11 @@
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
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 }) then return; 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"