aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorHolger Weiss <holger@zedat.fu-berlin.de>2014-11-25 12:05:09 +0100
committerHolger Weiss <holger@zedat.fu-berlin.de>2014-11-25 12:05:09 +0100
commit6900a41e7da593e7cb8d4d86c037a929bee98ec5 (patch)
treeaf337b2d0cb0b0c86f3798160bb79a9aebf4dc35 /src
parentMerge pull request #223 from kaLaJengkinG/patch-1 (diff)
Fix mod_client_state's configuration parsing
Don't log an "invalid value" message when "queue_presence" or "drop_chat_states" is set to "false".
Diffstat (limited to 'src')
-rw-r--r--src/mod_client_state.erl8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/mod_client_state.erl b/src/mod_client_state.erl
index b43683bb7..69e76c24e 100644
--- a/src/mod_client_state.erl
+++ b/src/mod_client_state.erl
@@ -37,9 +37,13 @@
start(Host, Opts) ->
QueuePresence = gen_mod:get_opt(queue_presence, Opts,
- fun(true) -> true end, false),
+ fun(true) -> true;
+ (false) -> false
+ end, false),
DropChatStates = gen_mod:get_opt(drop_chat_states, Opts,
- fun(true) -> true end, false),
+ fun(true) -> true;
+ (false) -> false
+ end, false),
if QueuePresence; DropChatStates ->
ejabberd_hooks:add(c2s_post_auth_features, Host, ?MODULE,
add_stream_feature, 50),