From a061b11f327222d20f4ab85e874805da261f49f8 Mon Sep 17 00:00:00 2001 From: Matthew Wild Date: Sat, 3 Sep 2022 21:20:07 +0100 Subject: mod_smacks: Add type field to results so actions can be later distinguished --- plugins/mod_smacks.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'plugins') diff --git a/plugins/mod_smacks.lua b/plugins/mod_smacks.lua index 6f257ba5..7a07a9da 100644 --- a/plugins/mod_smacks.lua +++ b/plugins/mod_smacks.lua @@ -329,6 +329,7 @@ function do_enable(session, stanza) end return { + type = "enabled"; id = resume_token; resume_max = resume_token and tostring(resume_timeout) or nil; session = session; @@ -337,7 +338,6 @@ function do_enable(session, stanza) track_session(session, resume_token); wrap_session(session, false); - end; }; end @@ -613,6 +613,7 @@ function do_resume(session, stanza) sessionmanager.update_session(original_session, session); return { + type = "resumed"; session = original_session; id = id; -- Return function to complete the resumption and resync unacked stanzas -- cgit v1.2.3