diff options
author | Waqas Hussain <waqas20@gmail.com> | 2009-06-02 20:15:18 +0500 |
---|---|---|
committer | Waqas Hussain <waqas20@gmail.com> | 2009-06-02 20:15:18 +0500 |
commit | 00f021695cb9253a6a33f00a06e3036041a47a92 (patch) | |
tree | a32e15206bd01ba334749ae2ac351f6a87df5a0e | |
parent | 028a4979d10da6a1916c4618d48dd7ec4edc9d8b (diff) | |
download | prosody-00f021695cb9253a6a33f00a06e3036041a47a92.tar.gz prosody-00f021695cb9253a6a33f00a06e3036041a47a92.zip |
mod_presence: Fix a global access
-rw-r--r-- | plugins/mod_presence.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/mod_presence.lua b/plugins/mod_presence.lua index eb2ccb05..62300062 100644 --- a/plugins/mod_presence.lua +++ b/plugins/mod_presence.lua @@ -305,8 +305,8 @@ module:hook("presence/bare", function(data) local origin, stanza = data.origin, data.stanza;
local to = stanza.attr.to;
+ local t = stanza.attr.type;
if to then
- local t = stanza.attr.type;
if t ~= nil and t ~= "unavailable" and t ~= "error" then -- check for subscriptions and probes sent to bare JID
handle_inbound_presence_subscriptions_and_probes(origin, stanza, jid_bare(stanza.attr.from), jid_bare(stanza.attr.to), core_route_stanza);
return true;
|