summaryrefslogtreecommitdiff
path: root/config.c
diff options
context:
space:
mode:
authorLuke Bratch <luke@bratch.co.uk>2019-06-11 22:54:50 +0100
committerLuke Bratch <luke@bratch.co.uk>2019-06-11 22:54:50 +0100
commit511e258e901e5248e1706609ba1099507fd750ae (patch)
tree4c7ee92fbe3634e7c78579657a023948a1a6bbae /config.c
parent9db9fb396aaf601bd00f2b62face2693307a0e16 (diff)
Implement configurable auto replay modes. So far there is "none", "time" (auto replay the last X seconds), and "lastspoke" (auto replay everything since you last spoke).
Diffstat (limited to 'config.c')
-rw-r--r--config.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/config.c b/config.c
index dd99f2a..94831d1 100644
--- a/config.c
+++ b/config.c
@@ -202,7 +202,13 @@ int createconfigfile(char *filename) {
"# Put channel keywords/passwords after channel names following a space.\n"
"#channels = \"#blabouncer keyword,#test\"\n"
"\n"
- "# How many seconds of replay log should be sent to connecting clients\n"
+ "# Auto replay mode upon a bouncer client connecting\n"
+ "# \"none\" = Don't auto replay\n"
+ "# \"time\" = Always send the last \"replayseconds\" worth of logs\n"
+ "# \"lastspoke\" = All messages since your current nick last spoke\n"
+ "replaymode = \"time\"\n"
+ "\n"
+ "# How many seconds of replay log should be sent to connecting clients if replaymode = \"time\"\n"
"replayseconds = \"600\"\n"
"\n"
"# Connect password clients must provided to connect\n"