summaryrefslogtreecommitdiff
path: root/config.c
diff options
context:
space:
mode:
authorLuke Bratch <luke@bratch.co.uk>2019-05-16 21:50:35 +0100
committerLuke Bratch <luke@bratch.co.uk>2019-05-16 21:50:35 +0100
commitcfe9c969680a7a09ee60cf048f71b81d82bef1df (patch)
treeb035bf87184f3168722acf97e0a043bf2d00f2f6 /config.c
parent61a369b85e51e0d54e1651e4ff8c11fe4815a0c0 (diff)
Make logging and replay logging optional.
Diffstat (limited to 'config.c')
-rw-r--r--config.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/config.c b/config.c
index a5d9c2f..60bac19 100644
--- a/config.c
+++ b/config.c
@@ -201,7 +201,15 @@ int createconfigfile(char *filename) {
"\n"
"# Base directory (defaults to $HOME/.blabouncer/)\n"
"# Things such as the logs directory will be placed below this\n"
- "#basedir = \"/home/foo/.blabouncer/\"\n";
+ "#basedir = \"/home/foo/.blabouncer/\"\n"
+ "\n"
+ "# Enable logging (\"1\" for yes or \"0\" for no)\n"
+ "# Logs go to basedir/logs/ with one file per channel/nick\n"
+ "logging = \"1\"\n"
+ "\n"
+ "# Enable replay logging (\"1\" for yes or \"0\" for no)\n"
+ "# Replay log goes to basedir/replay.log\n"
+ "replaylogging = \"1\"\n";
// Write complete string to file
if ((fprintf(fp, string)) < 0) {