# HG changeset patch # User Waqas Hussain # Date 1266553250 -18000 # Node ID 46741fc09091b64f4f1df91efd303d8f69fee101 # Parent 51cd803e86be5efcb71ad7575c69bec9c95650f6 mod_ipcheck: Change error from 'not-authorized' to 'forbidden', as specified in the XEP. diff -r 51cd803e86be -r 46741fc09091 mod_ipcheck/mod_ipcheck.lua --- a/mod_ipcheck/mod_ipcheck.lua Fri Feb 19 09:08:22 2010 +0500 +++ b/mod_ipcheck/mod_ipcheck.lua Fri Feb 19 09:20:50 2010 +0500 @@ -10,7 +10,7 @@ local origin, stanza = event.origin, event.stanza; if not stanza.attr.to and stanza.attr.type == "get" then if stanza.attr.to then - origin.send(st.error_reply(stanza, "auth", "not-authorized", "You can only ask about your own IP address")); + origin.send(st.error_reply(stanza, "auth", "forbidden", "You can only ask about your own IP address")); elseif origin.ip then origin.send(st.reply(stanza):tag("ip", {xmlns='urn:xmpp:sic:0'}):text(origin.ip)); else