# HG changeset patch # User Waqas Hussain # Date 1267838378 -18000 # Node ID 744deabdee813f76a967e4cbcb29f581fd734952 # Parent 8945153321a1754a109982095f9ef53ebe162886 mod_ipcheck: Fixed: 'service-unavailable' was sent instead of 'forbidden' on unauthorized access. diff -r 8945153321a1 -r 744deabdee81 mod_ipcheck/mod_ipcheck.lua --- a/mod_ipcheck/mod_ipcheck.lua Thu Feb 25 22:43:54 2010 +0100 +++ b/mod_ipcheck/mod_ipcheck.lua Sat Mar 06 06:19:38 2010 +0500 @@ -8,7 +8,7 @@ module:hook("iq/bare/urn:xmpp:sic:0:ip", function(event) local origin, stanza = event.origin, event.stanza; - if not stanza.attr.to and stanza.attr.type == "get" then + if stanza.attr.type == "get" then if stanza.attr.to then origin.send(st.error_reply(stanza, "auth", "forbidden", "You can only ask about your own IP address")); elseif origin.ip then