prosody-modules/roster-get-event.patch

20 lines
771 B
Diff
Raw Normal View History

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