mix_pam: Add the get-roster patch
This commit is contained in:
parent
0352f94c42
commit
b22fd12c43
11
0000-add-roster-get-event.patch
Normal file
11
0000-add-roster-get-event.patch
Normal 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"
|
Loading…
Reference in New Issue
Block a user