Don't touch ejabberd.cfg if ejabberd_muclog_format is not set

This commit is contained in:
Ossi Salmi 2012-04-20 11:34:13 +03:00
parent c698eb72ef
commit eb0fb28ea2
2 changed files with 4 additions and 3 deletions

View file

@ -583,7 +583,9 @@ user, host = admin.split("@") -%>
{access_log, muc},
{outdir, "<%= ejabberd_muclog_datadir %>"},
{dirtype, subdirs},
<% if has_variable?("ejabberd_muclog_format") -%>
{file_format, <%= ejabberd_muclog_format %>},
<% end -%>
{cssfile, false},
{top_link, {"/portal/", "Back to Portal"}}
]},