Changeset

131:46741fc09091

mod_ipcheck: Change error from 'not-authorized' to 'forbidden', as specified in the XEP.
author Waqas Hussain <waqas20@gmail.com>
date Fri, 19 Feb 2010 09:20:50 +0500
parents 130:51cd803e86be
children 132:d4ff1cd414e5
files mod_ipcheck/mod_ipcheck.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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