Diff

core/stanza_router.lua @ 159:d71454f97faf

Fix nil concat when non-existant user is probed (another)
author Matthew Wild <mwild1@gmail.com>
date Fri, 24 Oct 2008 15:18:53 +0100
parent 158:7ea96f944681
child 160:018c7f5ef0ea
line wrap: on
line diff
--- a/core/stanza_router.lua	Fri Oct 24 15:16:18 2008 +0100
+++ b/core/stanza_router.lua	Fri Oct 24 15:18:53 2008 +0100
@@ -198,7 +198,7 @@
 									end
 								end
 							else
-								send(origin, st.presence({from=user.."@"..host, to=origin.username.."@"..origin.host, type="unsubscribed"}));
+								send(origin, st.presence({from=user.."@"..host, to=stanza.attr.from, type="unsubscribed"}));
 							end
 						elseif stanza.attr.type == "subscribe" then
 							-- TODO