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:
parent
cb9b97411b
commit
8713465df1
@ -58,10 +58,7 @@ process_local_iq(From, _To, #iq{type = 'get'} = IQ) ->
|
|||||||
get_ip(From, IQ);
|
get_ip(From, IQ);
|
||||||
|
|
||||||
process_local_iq(_From, _To, #iq{type = 'set'} = IQ) ->
|
process_local_iq(_From, _To, #iq{type = 'set'} = IQ) ->
|
||||||
exmpp_iq:error(IQ, 'not-allowed');
|
exmpp_iq:error(IQ, 'not-allowed').
|
||||||
|
|
||||||
process_local_iq(_From, _To, #iq{} = IQ) ->
|
|
||||||
exmpp_iq:error(IQ, 'unexpected-request').
|
|
||||||
|
|
||||||
|
|
||||||
process_sm_iq(
|
process_sm_iq(
|
||||||
@ -74,10 +71,7 @@ process_sm_iq(_From, _To, #iq{type = 'get'} = IQ) ->
|
|||||||
exmpp_iq:error(IQ, 'forbidden');
|
exmpp_iq:error(IQ, 'forbidden');
|
||||||
|
|
||||||
process_sm_iq(_From, _To, #iq{type = 'set'} = IQ) ->
|
process_sm_iq(_From, _To, #iq{type = 'set'} = IQ) ->
|
||||||
exmpp_iq:error(IQ, 'not-allowed');
|
exmpp_iq:error(IQ, 'not-allowed').
|
||||||
|
|
||||||
process_sm_iq(_From, _To, #iq{} = IQ) ->
|
|
||||||
exmpp_iq:error(IQ, 'unexpected-request').
|
|
||||||
|
|
||||||
get_ip(From, IQ) ->
|
get_ip(From, IQ) ->
|
||||||
case ejabberd_sm:get_user_ip(From) of
|
case ejabberd_sm:get_user_ip(From) of
|
||||||
|
Loading…
Reference in New Issue
Block a user