462c1036fc
Fix spelling errors found by Lintian
2021-10-17 12:19:39 +02:00
Thomas Vigouroux
2c7b8aa155
Allow customizing the timestamp format
2021-10-08 11:50:17 +02:00
814d54c676
use strftime instead of snprintf wherever possible
2018-12-12 03:02:21 +01:00
Arnaud Cornet
87192685f5
Fix gcc-8 warning.
...
Change weird use of strncpy where we know we will truncate and use an
extra byte copy instead.
2018-12-09 19:40:36 -05:00
Arnaud Cornet
27f1cf988b
Simplify autotools configuration.
2018-11-18 09:10:16 -05:00
Adam Williamson
2ecd82f011
Fix some 'const const char' declarations
...
That's one two many consts...recent GCC blips on this.
Signed-off-by: Pierre-Louis Bonicoli <pierre-louis.bonicoli@libregerbil.fr>
2017-07-26 02:46:26 +02:00
Pierre-Louis Bonicoli
5594e69bf6
Use a new logfile when day changed
2015-09-11 11:22:32 +02:00
Pierre-Louis Bonicoli
f1bec50a9c
Revert f19e1f6
. Fix #252 .
...
f19e1f6
introduces a regression (#252 ) and bug described in commit
message can not be reproduced.
2012-01-25 04:03:18 +01:00
Arnaud Fontaine
0da434d126
Fix GCC warnings.
2011-10-04 00:30:07 +02:00
Pierre-Louis Bonicoli
f19e1f6209
Fix backlog of queries when option 'log' is False
...
Issue #212
2011-04-12 01:08:41 +02:00
Yoann Guillot
87da44e583
connection: allow to disable / enable log ( #211 )
...
add option 'log' (true/false) in connection section,
this option overrides the global 'log' option.
Thanks to jj !
2011-04-07 02:32:44 +02:00
Pierre-Louis Bonicoli
2e49437ed7
revert 4fdabdd166
...
better quick fix
2011-02-06 21:59:14 +01:00
Pierre-Louis Bonicoli
81b8ed48cf
Fix build errors on armel
...
sys/user.h on armel has a conflicting definition of 'struct user'.
This patch renames bip's structure to avoid the conflict.
Thanks to Philipp Kern and Dann Frazier !
2011-01-15 18:13:26 +01:00
Pierre-Louis Bonicoli
4d4710acb9
Fix "FATAL: list_remove: item not found"
...
Thanks to Jean-Edouard Babin for reporting it.
How to reproduce:
1) connect to bip with an irc client using username (eg 'Pilou')
2) disconnect irc client
3) in client configuration, change the case of username (eg 'pilou')
4) reconnect to bip -> bip log FATAL message and exit
If old nick and new nick are equal ignoring the case of the characters,
don't delete store associated with old nick: only rename it.
2010-12-28 03:22:19 +01:00
Pierre-Louis Bonicoli
ca1b383a74
check return value of hash_get
2010-12-28 03:20:01 +01:00
Pierre-Louis Bonicoli
4fdabdd166
filename is NULL if !store && !conf_log
2010-12-28 03:18:13 +01:00
Mathieu Pillard
5d6b7fedaf
backread_hours is in hours, not days
2010-02-16 10:08:27 +00:00
Arnaud Cornet
7c0b6036f2
Ugly header fixups to fix build
2010-02-15 14:22:00 +00:00
Mathieu Pillard
c0772f54bf
Fix time parsing. Fixes backlog replaying one month to many,
2010-02-15 14:16:08 +00:00
Arnaud Cornet
213643d5bf
size hour array correctly
2009-07-05 19:35:00 +02:00
Arnaud Cornet
1a2b1dd165
Cleanup log outputs
2009-07-05 19:04:51 +02:00
Arnaud Cornet
3698955365
Don't reset store->file_offset when adding a new file
...
This just makes no sense
2009-07-05 18:08:35 +02:00
Arnaud Cornet
a8fb0c40d3
Support hour in log format. Mostly for debugging
2009-07-05 14:00:06 +02:00
Arnaud Cornet
405f8b4afc
[log] Use canonical name to detect need for log rotation
...
Also reset store on part from server to close more file descriptor.
2009-06-28 16:33:29 +02:00
Arnaud Cornet
5ae1c1dec5
[log] close logs files more intensively.
2009-06-25 00:43:44 +02:00
Arnaud Cornet
015969e86b
[log] Fix to /bip backlog x
...
This is fix for:
When using /bip backlog X windows with no tracked backlog (ie after a
blreset) do not show backlog
2009-06-13 17:29:44 +02:00
Arnaud Cornet
8cea2bdb71
Don't fail if ressetting non existing store.
2009-06-07 13:22:20 +02:00
Arnaud Cornet
499a7d75b5
backlog tweak
2009-06-05 00:43:05 +02:00
Arnaud Cornet
b6f30f6a03
Fix one leak. Fix git-release script for new git.
2009-02-28 11:19:57 +01:00
Arnaud Cornet
69640eaf8c
[FIX] Complete previous commit
...
Previous commit was incomplete and did not log some weird messages. They
still might be legit, so we come with them
2009-01-27 11:24:50 +01:00
Arnaud Cornet
5416fc19b2
[FIX] check for weird shape notice messages
...
Prevents a fatal on some rare conditions
2009-01-27 08:25:44 +01:00
Arnaud Cornet
23b6ec4492
Better check for backread returning NULL
2009-01-22 11:24:44 +01:00
Ben Byer
43fe81e114
add null pointer check to backlog_lines
...
In some configuration backlog_lines can return NULL
2009-01-22 10:14:33 +01:00
Arnaud Cornet
afefc9a3d4
[FIX] Try to guess current daylight saving time
...
When backloging we have no clue of a log lines dst, we try to guess it
with current dst, which makes no sense, but at least it provides decent
result when not near dst change.
2009-01-20 19:30:20 +01:00
Arnaud Cornet
500d546706
[FIX] improper log rotation
...
disconnection/reconnection log message bypassed the log rotation checks
So if the message after a new day is a disconnected message, logs files
did not rotate.
2009-01-18 12:26:41 +01:00
Arnaud Cornet
7a7c2432cf
[FIX] make log_has_backlog actually work
...
log_has_backlog used to check for the presnece of tracked logfiles to
determine the presence of logs. This does not work anymore. This patch
uses the last file tracker to determine that.
2009-01-18 11:26:08 +01:00
Arnaud Cornet
9882a0cbdc
[CLEANUP] various cleanups
2009-01-17 15:03:06 +01:00
Arnaud Cornet
fe251f72b5
[FEATURE] /quote bip backlog [n]
...
/quote bip backlog triggers a log replay.
With the optional argument n in hours, you can request a backlog of a
few hours.
2009-01-17 14:16:31 +01:00
Arnaud Cornet
26eb9c28d7
[OPTION] implement backlog_reset_connection
...
backlog_reset_on_talk no works per query/channel.
Setting backlog_reset_connection to true falls back to the former kind
of backlog reset.
2009-01-17 12:50:39 +01:00
Arnaud Cornet
3b704f53c4
drop unused variables
2009-01-15 22:56:42 +01:00
Arnaud Cornet
be0d83d681
Remove code inside #if 0... it's what svcs are for
2009-01-10 14:16:36 +01:00
Arnaud Cornet
8ed0565266
[LOG] Fixup log_beautify to work beautifully :)
2009-01-10 14:08:41 +01:00
Arnaud Cornet
b3d7dbfb02
[COSMETIC] Avoid opening a query with your own nic
...
This exception is cosmetic, but you want it. Most of the time, you get
backlog from your own nick for your mode changes only. Hence opening a
query just to say "end of backlog"...
2009-01-10 13:26:59 +01:00
Arnaud Cornet
f536a0546d
Cleanup and fixes of the backlog code
2009-01-10 12:35:59 +01:00
Arnaud Cornet
32cf2d462f
Backlogging code cleanup: fixes
...
This makes the new backlogging code, actually backlog something.
2009-01-09 13:24:11 +01:00
Arnaud Cornet
f1221703b0
[FEATURE] reset backlog on talk now "window" local
...
The reset_backlog_on_talk now resets current query or channel.
The /bip blreset command not takes an optional argument taking query
name or channel name.
2009-01-09 11:26:12 +01:00
Arnaud Cornet
a6bb697f5d
Merge branch 'master' into bip08
...
Conflicts:
src/log.c
2009-01-09 09:57:17 +01:00
Arnaud Cornet
d2f7840ced
[BUG] Fix fatal on some nick change
...
When a nick changes to one for which we already have a logstore
allocated. We try to overwrite a hash entry that is already existing
leading to a fatal.
This pach cleans things up before rename the logstore.
2009-01-08 11:01:47 +01:00
Arnaud Cornet
eb57d9683d
Drop some unused variable.
2009-01-06 16:28:06 +01:00
Arnaud Cornet
00a10a9f61
Fix another leak.
2009-01-05 22:56:01 +01:00