Pierre-Louis Bonicoli
f2fd1824ca
Format the whole code using clang-format
2022-03-10 14:21:01 +01:00
Loïc Gomez
26d347dec6
sanitize: fix const char * being used as non-const
2022-03-10 14:20:52 +01:00
Loïc Gomez
edf78eadb1
sanitize: pragmas for our code
2022-03-10 14:20:46 +01:00
Loïc Gomez
ce4cf8b6a0
sanitize: add bip_clock_gettime util function
2022-03-10 14:20:26 +01:00
Loïc Gomez
34b3c4b0c3
Move /BIP to bip_strcat{,f}_fit memccpy wrapper
...
instead of snprintf.
2022-03-10 14:19:28 +01:00
Pierre-Louis Bonicoli
462c1036fc
Fix spelling errors found by Lintian
2021-10-17 12:19:39 +02:00
Pierre-Louis Bonicoli
84fa6c7eb0
Fix typo in assertion message
2011-05-23 04:36:58 +02:00
Arnaud Cornet
eef2fd180d
[CLIENTHACK] Remove xchat's + and - on each msg
...
This patch drops CAPAB setting in 005 message from server to client.
Doing this xchat does not start the mode that prepends a + or a - at the
beginning of PRIVMSGS.
2009-02-02 19:47:53 +01:00
Arnaud Cornet
03210a796e
[CLEANUP] Add lots of asserts in utils
...
list hash and array types are now even stricter on their usage.
2009-01-22 12:06:26 +01:00
Arnaud Cornet
c0db3c408d
Merge fixups
2008-12-28 14:47:44 +01:00
Arnaud Cornet
24110a58dc
Fix leak + cleanup list_append.
...
Thanks to TheMIROn for spotting the leak.
2008-12-28 14:45:44 +01:00
Arnaud Cornet
3c810eef53
Refactor log system. prepare for /backlog 1 hour
2008-12-26 18:43:35 +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
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
Loc Gomez
efe0c43b9c
Documentation fixes
...
- update bip.vim and bip.conf sample files
- remove nonsense LOG_STD log level
2008-02-04 18:36:35 +01:00
Loc Gomez
671a455219
Fix UTF-8 in all files
2008-01-09 23:45:40 +01:00
Arnaud Cornet
c5d1f537e4
Null deref fixes when fetching info.
2008-01-05 23:25:24 +01:00
Arnaud Cornet
664ebb68a7
Destroy unused link after sighup
2007-10-21 19:35:22 +02:00
Arnaud Cornet
0abd8a386d
Config load fixes.
...
- Leaks
- Better logging
- Handle historical configs
2007-10-21 12:31:07 +02:00
Loc 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
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
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
nohar
f4f0cda849
cleanup for release
2005-10-09 11:47:20 +00:00
nohar
04dc4526cc
Conf cleanup, PING colon in reply
2005-05-26 15:36:15 +00:00
kyoshiro
103a9f0369
fix oidentd spoof
...
remove old unsued spoof functions
2005-05-13 13:58:24 +00:00
nohar
665d2ec5af
Initial import
2005-04-28 08:26:44 +00:00