diff options
author | Luke Bratch <luke@bratch.co.uk> | 2019-05-16 21:50:35 +0100 |
---|---|---|
committer | Luke Bratch <luke@bratch.co.uk> | 2019-05-16 21:50:35 +0100 |
commit | cfe9c969680a7a09ee60cf048f71b81d82bef1df (patch) | |
tree | b035bf87184f3168722acf97e0a043bf2d00f2f6 /config.c | |
parent | 61a369b85e51e0d54e1651e4ff8c11fe4815a0c0 (diff) |
Make logging and replay logging optional.
Diffstat (limited to 'config.c')
-rw-r--r-- | config.c | 10 |
1 files changed, 9 insertions, 1 deletions
@@ -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) { |