Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/processone/ejabberd.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBadlop <badlop@process-one.net>2010-04-22 22:19:42 +0400
committerBadlop <badlop@process-one.net>2010-04-22 22:19:42 +0400
commit5e7d8868c0e9c69fde32a53f619a9975f2bfccc5 (patch)
tree68e3822c5ee91a5af8e4d60e80c31c9145cc6b39 /src/mod_sic.erl
parent55dbdf5dbaa606569e655485b525dc1e9c739337 (diff)
No need to handle IQ requests other than Get and Set
Diffstat (limited to 'src/mod_sic.erl')
-rw-r--r--src/mod_sic.erl11
1 files changed, 2 insertions, 9 deletions
diff --git a/src/mod_sic.erl b/src/mod_sic.erl
index e487539cd..08f356496 100644
--- a/src/mod_sic.erl
+++ b/src/mod_sic.erl
@@ -57,10 +57,7 @@ process_local_iq(#jid{user = User, server = Server, resource = Resource}, _To,
get_ip({User, Server, Resource}, IQ);
process_local_iq(_From, _To, #iq{type = 'set', sub_el = SubEl} = IQ) ->
- IQ#iq{type = error, sub_el = [SubEl, ?ERR_NOT_ALLOWED]};
-
-process_local_iq(_From, _To, #iq{sub_el = SubEl} = IQ) ->
- IQ#iq{type = error, sub_el = [SubEl, ?ERR_UNEXPECTED_REQUEST]}.
+ IQ#iq{type = error, sub_el = [SubEl, ?ERR_NOT_ALLOWED]}.
process_sm_iq(#jid{user = User, server = Server, resource = Resource},
@@ -72,11 +69,7 @@ process_sm_iq(_From, _To, #iq{type = 'get', sub_el = SubEl} = IQ) ->
IQ#iq{type = error, sub_el = [SubEl, ?ERR_FORBIDDEN]};
process_sm_iq(_From, _To, #iq{type = 'set', sub_el = SubEl} = IQ) ->
- IQ#iq{type = error, sub_el = [SubEl, ?ERR_NOT_ALLOWED]};
-
-process_sm_iq(_From, _To, #iq{sub_el = SubEl} = IQ) ->
- IQ#iq{type = error, sub_el = [SubEl, ?ERR_UNEXPECTED_REQUEST]}.
-
+ IQ#iq{type = error, sub_el = [SubEl, ?ERR_NOT_ALLOWED]}.
get_ip({User, Server, Resource},
#iq{sub_el = {xmlelement, Name, Attrs, _} = SubEl} = IQ) ->