Fix nil concat when non-existant user is probed (another)

Fri, 24 Oct 2008 15:18:53 +0100

author
Matthew Wild <mwild1@gmail.com>
date
Fri, 24 Oct 2008 15:18:53 +0100
changeset 159
d71454f97faf
parent 158
7ea96f944681
child 160
018c7f5ef0ea

Fix nil concat when non-existant user is probed (another)

core/stanza_router.lua file | annotate | diff | comparison | revisions
--- 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

mercurial