diff --git a/0000-add-roster-get-event.patch b/0000-add-roster-get-event.patch deleted file mode 100644 index 05db999..0000000 --- a/0000-add-roster-get-event.patch +++ /dev/null @@ -1,11 +0,0 @@ -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" diff --git a/roster-get-event.patch b/roster-get-event.patch new file mode 100644 index 0000000..26b0c47 --- /dev/null +++ b/roster-get-event.patch @@ -0,0 +1,19 @@ +# HG changeset patch +# User Alexander "PapaTutuWawa" +# Date 1620730362 -7200 +# Tue May 11 12:52:42 2021 +0200 +# Node ID 8ea24ca499db1865b754e5c5dffcdc84a9ce7737 +# Parent 30feeb4d9d0b51f968c16b205137c114e62047b9 +mod_roster: Add event for roster get queries + +diff -r 30feeb4d9d0b -r 8ea24ca499db plugins/mod_roster.lua +--- a/plugins/mod_roster.lua Fri May 07 16:47:58 2021 +0200 ++++ b/plugins/mod_roster.lua Tue May 11 12:52:42 2021 +0200 +@@ -57,6 +57,7 @@ + end + roster.tags[1].attr.ver = server_ver; + end ++ module:fire_event("roster-get", { session = session, stanza = stanza, reply = roster }); + session.send(roster); + session.interested = true; -- resource is interested in roster updates + else -- stanza.attr.type == "set"