patch: Rename patch after sending it in

This commit is contained in:
PapaTutuWawa 2021-05-17 13:10:23 +02:00
parent 482890a9a1
commit aaaf8958eb
2 changed files with 19 additions and 11 deletions

View File

@ -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"

19
roster-get-event.patch Normal file
View File

@ -0,0 +1,19 @@
# HG changeset patch
# User Alexander "PapaTutuWawa" <papatutuwawa@polynom.me>
# 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"