diff options
author | Evgeny Khramtsov <xramtsov@gmail.com> | 2014-11-25 14:21:18 +0300 |
---|---|---|
committer | Evgeny Khramtsov <xramtsov@gmail.com> | 2014-11-25 14:21:18 +0300 |
commit | 4163626844cb888f0f530f78e94fc2f9e64ea464 (patch) | |
tree | 7f0e647a7f6bf481db973147889f5db99d5097a2 /src | |
parent | Merge pull request #364 from weiss/copy-normal-messages (diff) | |
parent | Fix mod_client_state's configuration parsing (diff) |
Merge pull request #365 from weiss/csi-config
Fix mod_client_state's configuration parsing
Diffstat (limited to 'src')
-rw-r--r-- | src/mod_client_state.erl | 8 |
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), |