diff --git a/mod_log_chat/conf/mod_log_chat.yml b/mod_log_chat/conf/mod_log_chat.yml index 0932ac0..323beba 100644 --- a/mod_log_chat/conf/mod_log_chat.yml +++ b/mod_log_chat/conf/mod_log_chat.yml @@ -3,7 +3,7 @@ # log all vhosts chats in /var/log/ejabberd/chat directory in html #modules: # mod_log_chat: -# path: "/var/log/ejabberd/chat" +# path: /var/log/ejabberd/chat # format: html @@ -13,8 +13,8 @@ # mod_log_chat: # host_config: # - "vh1.myjabberserver.net": -# - path: "/var/log/ejabberd/vh1.myjabberserver.net" +# - path: /var/log/ejabberd/vh1.myjabberserver.net # - format: html # - "vh2.myjabberserver.net": -# - path: "/var/log/ejabberd/vh2.myjabberserver.net" +# - path: /var/log/ejabberd/vh2.myjabberserver.net # - format: text diff --git a/mod_log_chat/src/mod_log_chat.erl b/mod_log_chat/src/mod_log_chat.erl index 46e8f61..e555ede 100644 --- a/mod_log_chat/src/mod_log_chat.erl +++ b/mod_log_chat/src/mod_log_chat.erl @@ -280,7 +280,7 @@ depends(_Host, _Opts) -> []. mod_opt_type(host_config) -> econf:list(econf:any()); -mod_opt_type(path) -> fun iolist_to_binary/1; +mod_opt_type(path) -> econf:directory(write); mod_opt_type(format) -> fun (A) when is_atom(A) -> A end.