aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--core/stanza_router.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/stanza_router.lua b/core/stanza_router.lua
index 03221fb9..8b98939b 100644
--- a/core/stanza_router.lua
+++ b/core/stanza_router.lua
@@ -244,7 +244,7 @@ function core_route_stanza(origin, stanza)
session.send(stanza);
end
end
- elseif resource and stanza.attr.type == 'groupchat' then
+ elseif stanza.attr.type == 'groupchat' then
-- Groupchat message sent to offline resource
origin.send(st.error_reply(stanza, "cancel", "service-unavailable"));
else