Commit Graph

72 Commits

Author SHA1 Message Date
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
Arnaud Cornet 96a91cd92e Fix leak during backlog. 2009-01-05 22:54:10 +01:00
Arnaud Cornet 3c810eef53 Refactor log system. prepare for /backlog 1 hour 2008-12-26 18:43:35 +01:00
Arnaud Cornet 8693044511 fix notice logging file storage 2008-12-26 08:56:03 +01:00
Arnaud Cornet fa78df6482 Fixup file name allocation 2008-12-20 20:26:38 +01:00
Arnaud Cornet e8bb841e5f refactor nick management code
- drop struct nick.
- follow nick changes in a basic way.
  right now it does not work if one changes nick and somebody else takes
  the old unused nick.
2008-12-20 17:59:16 +01:00
Arnaud Cornet 4d231e8ddc Inline most array methods 2008-12-20 14:28:18 +01:00
Arnaud Cornet d3ef106c4f New array type, cleanupts and rename logfilegroup log_store 2008-12-20 14:20:50 +01:00
Arnaud Cornet 4b723ca479 more cleanups, start of a log refactoring
That changes log format and might breack everything.
2008-12-18 14:27:16 +01:00
Arnaud Cornet fd644b312b bip_strdup fatals on out of memory 2008-12-15 20:02:56 +01:00
Arnaud Cornet c150151066 BIG cleanup. check for memory allocation failure, add extra checks all arround. 2008-12-15 19:19:27 +01:00
Arnaud Cornet e18d335578 calloc/realloc checks. 2008-12-11 11:00:05 +01:00
Arnaud Cornet 3ab2755767 Catch malloc returning NULL. 2008-12-10 23:26:37 +01:00
Loïc Gomez 671a455219 Fix UTF-8 in all files 2008-01-09 23:45:40 +01:00
Arnaud Cornet 3eab14cfb9 Have the arrow bold to highlight your own words in remote clients. 2008-01-01 13:33:21 +01:00
Arnaud Cornet e1fb3e42ff Fix backloging error when one character message. 2007-12-08 16:12:05 +01:00
Arnaud Cornet d92525b7a3 Add ctcp reply.
Fix badly initied chan_info
2007-11-26 19:57:12 +01:00
Arnaud Cornet 5faa6581b7 make log_has_backlog aware of track_backlog. 2007-11-25 15:39:38 +01:00
Arnaud Cornet b3b6df53bb Add track_backlog member in lfg, so we have a cleaner way to exempt a channel from backloggin. 2007-11-25 15:29:32 +01:00
Arnaud Cornet 51f5a91664 Cleanups. 2007-11-18 11:08:41 +01:00
Arnaud Cornet 664ebb68a7 Destroy unused link after sighup 2007-10-21 19:35:22 +02:00
Loïc Gomez 2090349f9c add backlog option to channels. 2007-09-27 01:08:10 +02:00
Loïc Gomez 5aec7804af src/log: fix backlogging again, memlog was distrubing the process
src/connection: change some log levels, errors are errors, not debug info...
2007-09-26 21:22:44 +02:00
Loïc Gomez 6ab2bb5146 * src/sample: Update manpage, sample config and sample bip.vim + typo
* src/bip: warn the user about rlimits upon start and whenever they're
reached
* src/bip: add -v flag (show version)
* src/bip: add admin option to user block, and restrict some commands to
admins. Log whenever a /bip command is used
* src/bip: enhance /BIP LIST and HELP commands, add INFO command
* src: fix defaults user/nick/realnames not loaded into connections,
resulting in segfault (WRITE_LINE1 to NULL) and oidentd.conf file not
containing usernames
* src: add default.h and version.h
* src: fflush() system log every log_sync_interval
* src/bip: fix "Resetted." printed whenever a client talks with
backlog_reset_ontalk true
* src/bip: fix backlog user options not set to defaults in add_user
* src/bip: fix oidentd.conf config written lately. Still some issues
* src/util: add human readable time hrtime(), bool2text() and ssl
checlmode2text() functions
* src: lower RECONN_TIMER + add RECONN_TIMER_MAX option
* src/bip: code some validate_config
2007-09-26 14:45:30 +02:00
Arnaud Cornet e9e9549228 Reinit logs for a given connection on well chosen times. 2007-09-08 23:51:45 +02:00
Arnaud Cornet d7e870fe67 Lot of cleanups wrt init and killing links
Cleanup sample config (make cert).
Implement some free functions (log_free and link_kill).
Move utility macros in src/util.h
Reorganiize initialisation functions.
2007-09-04 00:24:50 +02:00
Arnaud Cornet 909fe5e1c1 Lots of structural changes.
Move backlog options to user statment.
Drop ircise, to go towards real SIGHUP support.
2007-09-02 14:59:19 +02:00
kyoshiro ad9c4d7021 create mandatory directories 2007-05-23 20:55:09 +00:00
nohar faaeb703fd Loglevel cleanups. 2007-02-08 22:53:48 +00:00
nohar 9e3d62764f backlog_no_timestamp option implemented 2007-01-12 18:49:14 +00:00
nohar 70ae216122 Fix error message. 2006-11-22 22:06:06 +00:00
nohar f6d710bdee Fix backlogging display bug. How come nobody ever saw this one ?
Drop conf.h from svn since it is autogenerated.
2006-11-16 14:34:28 +00:00