Changeset

135:d3c28c5fdbae

mod_ipcheck: Change error from 'item-not-found' to 'service-unavailable' for missing IP.
author Waqas Hussain <waqas20@gmail.com>
date Sat, 06 Mar 2010 06:20:38 +0500
parents 134:744deabdee81
children 136:0525c66e7d13
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	Sat Mar 06 06:19:38 2010 +0500
+++ b/mod_ipcheck/mod_ipcheck.lua	Sat Mar 06 06:20:38 2010 +0500
@@ -15,7 +15,7 @@
 			origin.send(st.reply(stanza):tag("ip", {xmlns='urn:xmpp:sic:0'}):text(origin.ip));
 		else
 			-- IP addresses should normally be available, but in case they are not
-			origin.send(st.error_reply(stanza, "cancel", "item-not-found", "IP address for this session is not available"));
+			origin.send(st.error_reply(stanza, "cancel", "service-unavailable", "IP address for this session is not available"));
 		end
 		return true;
 	end