Fix nil concat when non-existant user is probed

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

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

Fix nil concat when non-existant user is probed

core/stanza_router.lua file | annotate | diff | comparison | revisions
--- a/core/stanza_router.lua	Fri Oct 24 14:59:04 2008 +0100
+++ b/core/stanza_router.lua	Fri Oct 24 15:16:18 2008 +0100
@@ -252,7 +252,7 @@
 				-- TODO we would get here for nodeless JIDs too. Do something fun maybe? Echo service? Let plugins use xmpp:server/resource addresses?
 				if stanza.name == "presence" then
 					if stanza.attr.type == "probe" then
-						send(origin, st.presence({from = user.."@"..host, to = origin.username.."@"..origin.host, type = "unsubscribed"}));
+						send(origin, st.presence({from = node.."@"..host, to = origin.username.."@"..origin.host, type = "unsubscribed"}));
 					end
 					-- else ignore
 				else

mercurial