mod_ipcheck: Change error from 'item-not-found' to 'service-unavailable' for missing IP.
--- 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