core/stanza_router.lua

changeset 1273
85353014ff34
parent 1270
0e700e2041ef
child 1292
b18c1ad7fcb6
--- 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

mercurial