From b22fd12c436aa98553826c6ee2eb517687721594 Mon Sep 17 00:00:00 2001 From: Alexander PapaTutuWawa Date: Mon, 2 Nov 2020 17:10:35 +0100 Subject: [PATCH] mix_pam: Add the get-roster patch --- 0000-add-roster-get-event.patch | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 0000-add-roster-get-event.patch diff --git a/0000-add-roster-get-event.patch b/0000-add-roster-get-event.patch new file mode 100644 index 0000000..76564b6 --- /dev/null +++ b/0000-add-roster-get-event.patch @@ -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"