25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-11-30 16:36:29 +01:00

No need to handle IQ requests other than Get and Set

This commit is contained in:
Badlop 2010-04-22 20:15:45 +02:00
parent cb9b97411b
commit 8713465df1

View File

@ -58,10 +58,7 @@ process_local_iq(From, _To, #iq{type = 'get'} = IQ) ->
get_ip(From, IQ);
process_local_iq(_From, _To, #iq{type = 'set'} = IQ) ->
exmpp_iq:error(IQ, 'not-allowed');
process_local_iq(_From, _To, #iq{} = IQ) ->
exmpp_iq:error(IQ, 'unexpected-request').
exmpp_iq:error(IQ, 'not-allowed').
process_sm_iq(
@ -74,10 +71,7 @@ process_sm_iq(_From, _To, #iq{type = 'get'} = IQ) ->
exmpp_iq:error(IQ, 'forbidden');
process_sm_iq(_From, _To, #iq{type = 'set'} = IQ) ->
exmpp_iq:error(IQ, 'not-allowed');
process_sm_iq(_From, _To, #iq{} = IQ) ->
exmpp_iq:error(IQ, 'unexpected-request').
exmpp_iq:error(IQ, 'not-allowed').
get_ip(From, IQ) ->
case ejabberd_sm:get_user_ip(From) of