1
0
forked from bip/bip

Use backlog_ prefix for all backlog config directives.

This commit is contained in:
nohar 2007-02-17 10:54:21 +00:00
parent d957d132e3
commit 0d79c41d4c
4 changed files with 15 additions and 6 deletions

View File

@ -1,3 +1,8 @@
2007-02-17 Arnaud Cornet <arnaud.cornet@gmail.com>
* src/lex.l: Uniformize backlog options with backlog_ prefix.
* bip.conf.1: Update bip.conf doc.
2007-01-01 Arnaud Cornet <arnaud.cornet@gmail.com> 2007-01-01 Arnaud Cornet <arnaud.cornet@gmail.com>
* src/connection.c: Fix fd leak. * src/connection.c: Fix fd leak.

View File

@ -62,7 +62,7 @@ also find an example configuration file along with BIP.
.SH GLOBAL OPTIONS .SH GLOBAL OPTIONS
.TP .TP
\fBalways_backlog\fP (default: \fBfalse\fP) \fBbacklog_always\fP (default: \fBfalse\fP)
If true, clients will always receive \fBbacklog_lines\fP log lines, even if If true, clients will always receive \fBbacklog_lines\fP log lines, even if
they were already sent before. This option should of course not be enabled if they were already sent before. This option should of course not be enabled if
\fBbacklog_lines\fP is 0 ! \fBbacklog_lines\fP is 0 !
@ -85,14 +85,14 @@ Coyote's.
If true, backlogged line won't include the timestamp. If true, backlogged line won't include the timestamp.
.TP .TP
\fBblreset_on_talk\fP (default: \fBfalse\fP) \fBbacklog_reset_on_talk\fP (default: \fBfalse\fP)
When true, backlog will not be reset upon client disconnection but upon client When true, backlog will not be reset upon client disconnection but upon client
talk (channel/private message or action). It means that next time you log to talk (channel/private message or action). It means that next time you log to
your bip session the backlogging will start at the time right after your last your bip session the backlogging will start at the time right after your last
words on irc. words on irc.
.TP .TP
\fBbl_msg_only\fP (default: \fBfalse\fP) \fBbacklog_msg_only\fP (default: \fBfalse\fP)
When true, bip will backlog only channel/private messages/notices. No topic When true, bip will backlog only channel/private messages/notices. No topic
change, nick change, user quit/part/join will be backlogged upon connection. change, nick change, user quit/part/join will be backlogged upon connection.

View File

@ -39,7 +39,7 @@ log_level = 3;
# you were not connected to the proxy upon connection. # you were not connected to the proxy upon connection.
#backlog = true; # enable backlog #backlog = true; # enable backlog
backlog_lines = 10; # number of lines in backlog, 0 means no limit backlog_lines = 10; # number of lines in backlog, 0 means no limit
always_backlog = true; # backlog even lines already backlogged backlog_always = true; # backlog even lines already backlogged
#backlog_no_timestamp = false; # Disables time stamps if you find them ugly. #backlog_no_timestamp = false; # Disables time stamps if you find them ugly.
# If blreset_on_talk talking on an irc network has the same effect of issuing # If blreset_on_talk talking on an irc network has the same effect of issuing
@ -50,7 +50,7 @@ always_backlog = true; # backlog even lines already backlogged
# If bl_msg_only is true, only channel and private messages will be backlogged # If bl_msg_only is true, only channel and private messages will be backlogged
# upon the reconnection of a client. Default is false, thus joins, parts, quits, # upon the reconnection of a client. Default is false, thus joins, parts, quits,
# nick changes, topic changes, ... are backlogged # nick changes, topic changes, ... are backlogged
#bl_msg_only = false; #backlog_msg_only = false;
# Network definition, a name and server info # Network definition, a name and server info
network { network {

View File

@ -83,9 +83,13 @@ list_t *parse_conf(FILE *file)
"backlog_lines" { return LEX_BACKLOG_LINES; } "backlog_lines" { return LEX_BACKLOG_LINES; }
"backlog_no_timestamp" { return LEX_BACKLOG_NO_TIMESTAMP; } "backlog_no_timestamp" { return LEX_BACKLOG_NO_TIMESTAMP; }
"backlog" { return LEX_BACKLOG; } "backlog" { return LEX_BACKLOG; }
"backlog_always" { return LEX_ALWAYS_BACKLOG; }
"backlog_msg_only" { return LEX_BL_MSG_ONLY; }
"backlog_reset_on_talk" { return LEX_BLRESET_ON_TALK; }
"blreset_on_talk" { return LEX_BLRESET_ON_TALK; }
"bl_msg_only" { return LEX_BL_MSG_ONLY; } "bl_msg_only" { return LEX_BL_MSG_ONLY; }
"log" { return LEX_LOG; }
"always_backlog" { return LEX_ALWAYS_BACKLOG; } "always_backlog" { return LEX_ALWAYS_BACKLOG; }
"log" { return LEX_LOG; }
"log_sync_interval" { return LEX_LOG_SYNC_INTERVAL; } "log_sync_interval" { return LEX_LOG_SYNC_INTERVAL; }
"follow_nick" { return LEX_FOLLOW_NICK; } "follow_nick" { return LEX_FOLLOW_NICK; }
"ignore_first_nick" { return LEX_IGN_FIRST_NICK; } "ignore_first_nick" { return LEX_IGN_FIRST_NICK; }