aboutsummaryrefslogtreecommitdiff
path: root/src/mod_privacy.erl
diff options
context:
space:
mode:
Diffstat (limited to 'src/mod_privacy.erl')
-rw-r--r--src/mod_privacy.erl5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/mod_privacy.erl b/src/mod_privacy.erl
index e88c1fb5b..f61ba31d4 100644
--- a/src/mod_privacy.erl
+++ b/src/mod_privacy.erl
@@ -100,7 +100,7 @@ stop(Host) ->
process_iq(IQ) ->
xmpp:make_error(IQ, xmpp:err_not_allowed()).
--spec process_iq_get({error, error()} | iq(),
+-spec process_iq_get({error, error()} | {result, xmpp_element() | undefined},
iq(), userlist()) -> {error, error()} | {result, privacy_query()}.
process_iq_get(_, #iq{from = From, lang = Lang,
sub_els = [#privacy_query{lists = Lists}]},
@@ -215,7 +215,8 @@ decode_value(Type, Value) ->
end.
-spec process_iq_set({error, error()} |
- {result, privacy_query() | undefined, userlist()},
+ {result, xmpp_element() | undefined} |
+ {result, xmpp_element() | undefined, userlist()},
iq()) -> {error, error()} |
{result, undefined, userlist()}.
process_iq_set(_, #iq{from = From, lang = Lang,