mix_pam: Add the get-roster patch

This commit is contained in:
PapaTutuWawa 2020-11-02 17:10:35 +01:00
parent 0352f94c42
commit b22fd12c43

View File

@ -0,0 +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
@@ -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"