Merge pull request #365 from weiss/csi-config
Fix mod_client_state's configuration parsing
This commit is contained in:
commit
4163626844
|
@ -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),
|
||||
|
|
Loading…
Reference in New Issue