aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'plugins')
-rw-r--r--plugins/mod_smacks.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/mod_smacks.lua b/plugins/mod_smacks.lua
index 4657fc53..ad1b8dd6 100644
--- a/plugins/mod_smacks.lua
+++ b/plugins/mod_smacks.lua
@@ -325,7 +325,8 @@ function do_enable(session, stanza)
local resume_token;
local resume = stanza.attr.resume;
- if resume == "true" or resume == "1" then
+ if (resume == "true" or resume == "1") and session.username then
+ -- resumption on s2s is not currently supported
resume_token = new_id();
end