Fix nil concat when non-existant user is probed
authorMatthew Wild <mwild1@gmail.com>
Fri, 24 Oct 2008 14:16:18 +0000 (15:16 +0100)
committerMatthew Wild <mwild1@gmail.com>
Fri, 24 Oct 2008 14:16:18 +0000 (15:16 +0100)
core/stanza_router.lua

index 2dcd612f1bb473cd92f0e5cd4c1ddbb01ebe625c..b4ec677fdfabd0a7c14addc70b06cc5f6bf2a9d6 100644 (file)
@@ -252,7 +252,7 @@ function core_route_stanza(origin, stanza)
                                -- 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