Comparison

core/stanza_router.lua @ 158:7ea96f944681

Fix nil concat when non-existant user is probed
author Matthew Wild <mwild1@gmail.com>
date Fri, 24 Oct 2008 15:16:18 +0100
parent 153:8310bfddaba8
child 159:d71454f97faf
comparison
equal deleted inserted replaced
157:f4e9b6ec34b0 158:7ea96f944681
250 end 250 end
251 else -- user does not exist 251 else -- user does not exist
252 -- TODO we would get here for nodeless JIDs too. Do something fun maybe? Echo service? Let plugins use xmpp:server/resource addresses? 252 -- TODO we would get here for nodeless JIDs too. Do something fun maybe? Echo service? Let plugins use xmpp:server/resource addresses?
253 if stanza.name == "presence" then 253 if stanza.name == "presence" then
254 if stanza.attr.type == "probe" then 254 if stanza.attr.type == "probe" then
255 send(origin, st.presence({from = user.."@"..host, to = origin.username.."@"..origin.host, type = "unsubscribed"})); 255 send(origin, st.presence({from = node.."@"..host, to = origin.username.."@"..origin.host, type = "unsubscribed"}));
256 end 256 end
257 -- else ignore 257 -- else ignore
258 else 258 else
259 send(origin, st.error_reply(stanza, "cancel", "service-unavailable")); 259 send(origin, st.error_reply(stanza, "cancel", "service-unavailable"));
260 end 260 end