patch: 'Finalize' the roster-get patch
This commit is contained in:
parent
f91e597c57
commit
2c89d00c09
@ -1,11 +1,11 @@
|
|||||||
diff -r 8a29e7206917 plugins/mod_roster.lua
|
diff -r df4bd3af4099 plugins/mod_roster.lua
|
||||||
--- a/plugins/mod_roster.lua Sun Oct 25 15:23:36 2020 +0100
|
--- a/plugins/mod_roster.lua Thu Apr 15 15:57:24 2021 +0200
|
||||||
+++ b/plugins/mod_roster.lua Mon Nov 02 17:09:21 2020 +0100
|
+++ b/plugins/mod_roster.lua Sun Apr 25 16:45:40 2021 +0200
|
||||||
@@ -57,6 +57,7 @@
|
@@ -57,6 +57,7 @@
|
||||||
end
|
end
|
||||||
roster.tags[1].attr.ver = server_ver;
|
roster.tags[1].attr.ver = server_ver;
|
||||||
end
|
end
|
||||||
+ if module:fire_event("roster-get", { session = session, stanza = stanza }) then return; end
|
+ if module:fire_event("roster-get", { session = session, stanza = stanza, reply = roster }) then return; end;
|
||||||
session.send(roster);
|
session.send(roster);
|
||||||
session.interested = true; -- resource is interested in roster updates
|
session.interested = true; -- resource is interested in roster updates
|
||||||
else -- stanza.attr.type == "set"
|
else -- stanza.attr.type == "set"
|
||||||
|
Loading…
Reference in New Issue
Block a user