# HG changeset patch # User Waqas Hussain # Date 1243860819 -18000 # Node ID 85353014ff340ffb8553dbcc95f505518a37ad6d # Parent 28f9041d8c5571f7f811fdfb4b93c591b83c4280 stanza_router: Reply with an error on groupchat messages to bare JID diff -r 28f9041d8c55 -r 85353014ff34 core/stanza_router.lua --- a/core/stanza_router.lua Mon Jun 01 17:52:02 2009 +0500 +++ b/core/stanza_router.lua Mon Jun 01 17:53:39 2009 +0500 @@ -244,7 +244,7 @@ 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