Commit Graph

111 Commits

Author SHA1 Message Date
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
nohar ae65ababf1 Fixed empty line bug. 2006-11-12 13:22:32 +00:00
nohar 98dcc2e4d4 bl_msg_only 2006-10-21 12:06:31 +00:00
kyoshiro 1e6f0593fb clean README and TODO files
loglevels cleanup
debug prints cleanup
log info when connecting to a server
default log level to INFO
2005-11-17 17:55:12 +00:00
guillot 9c7eba2f6a fixed compilation warnings 2005-08-01 11:24:10 +00:00
nohar 2c4b77fab0 Backlog and logging fixes 2005-08-01 09:15:25 +00:00
guillot 783405e504 rewrite of log_beautify, did strange things... 2005-07-12 22:24:04 +00:00
nohar 3b9af8d5bd new auth mechanism 2005-07-09 12:55:01 +00:00
nohar d1f0055b68 fix replay of backlog line starting with '(' 2005-06-23 08:01:54 +00:00
nohar 6135a13810 fatal("internal log_client_none_connected") fix; /me backlog with freenode fixed 2005-06-04 10:39:04 +00:00
nohar 811d7cb048 blreset_on_talk, plus a fix in log_reset 2005-05-30 18:01:00 +00:00
nohar cb2f3a5e1e /bip blreset implemented 2005-05-29 23:00:30 +00:00
nohar 0de53a2499 fix queries backlog 2005-05-28 23:08:54 +00:00
nohar ed8f084dae Log/backread cleanup, plus small fixes 2005-05-21 13:44:09 +00:00
nohar 3a46247bd4 better log file format, log options, with backlog with memory based backlog 2005-05-19 20:55:11 +00:00
nohar a1b84c67b1 renamed bip.syslog to bip.log, changed backread verbosification, still seeking for the very rare backlog formatting bug 2005-05-17 09:27:09 +00:00
nohar e9884c5b03 backlog enhancement + verbosification fix 2005-05-14 08:08:37 +00:00
nohar 9a005cbb80 sexy backlog (untested) 2005-05-13 10:28:15 +00:00
nohar 0a9a61954f backlog leak fix, backlog verbosification for debug, sign fix 2005-05-13 08:43:50 +00:00
nohar a48019b5fd oidentd suppport 2005-05-12 08:29:27 +00:00
nohar f5c54c662a cosmetic backlog bugfix 2005-05-08 21:09:11 +00:00
nohar 81ffe1b550 fix for early RST on new connection to proxy 2005-05-01 22:29:31 +00:00
nohar 665d2ec5af Initial import 2005-04-28 08:26:44 +00:00