1
0
forked from bip/bip
Commit Graph

54 Commits

Author SHA1 Message Date
Loïc Gomez
62fd77dc17
l_clientc should not be allowed to go negative 2022-03-10 14:20:15 +01:00
Loïc Gomez
dd5343b710
use proper types, safe casts (mostly size_t) 2022-03-10 14:20:12 +01:00
Loïc Gomez
94fe272018
handle more config errors, use char not int:1 2022-03-10 14:20:06 +01:00
Loïc Gomez
2a5e7b6f7b
sanitize: add trivial casts to types
and add missing default cases
2022-03-10 14:19:57 +01:00
Loïc Gomez
e694dae31c
functions without parameters: add missing void 2022-03-10 14:19:51 +01:00
Loïc Gomez
dc43d75d1f
Add SASL authentication support (EXTERNAL, PLAIN) 2022-03-10 14:19:19 +01:00
Thomas Vigouroux
2c7b8aa155
Allow customizing the timestamp format 2021-10-08 11:50:17 +02:00
e6547b8a48
Fix a typo (s/LOGING/LOGGING/) 2021-10-07 18:10:25 +02:00
Arnaud Cornet
012b21a68b Remove OIDENTD build options.
Instead support a runtime option.
Note that existing oidentd users will have to add write_oidentd = true
in their config to keep existing behavior.
2018-11-18 15:07:16 -05:00
Pierre-Louis Bonicoli
ab8e5eece1 Add cipher specifications setting
Allow to configure cipher specifications for the listening bip
connection and for each outgoing IRC connection.

Closes #301
2016-11-07 11:25:37 +01:00
Pierre-Louis Bonicoli
73483ff088 Handle PREFIX defined in ISUPPORT
ISUPPORT is a de facto standard extension to IRC.
Available prefixes and usermodes are handled at the connection
level (link_level struct).
2014-12-11 16:50:18 +01:00
Pierre-Louis Bonicoli
e88d7da760 Handle CHANMODES defined in ISUPPORT
ISUPPORT is a de facto standard extension to IRC.
chanmodes are handled at the connection level (link_level struct).
2014-12-11 16:50:17 +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
Arnaud Cornet
29ff342d93 Add option ignore_server_capab 2009-02-08 12:36:49 +01:00
Arnaud Cornet
170d4d1e00 [FEATURE] autojoin_on_kick in connection blocks
true by default
2009-01-21 17:24:54 +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
f536a0546d Cleanup and fixes of the backlog code 2009-01-10 12:35:59 +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
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
e18d335578 calloc/realloc checks. 2008-12-11 11:00:05 +01:00
Arnaud Cornet
8ba984165b Implement quick halfop tracking support. 2008-09-20 14:48:16 +02:00
Arnaud Cornet
f1cc6451f5 Handle SSL-client auth. Fix crash on del_conn when the link never got connected at all. 2008-01-20 18:49:44 +01:00
Loc Gomez
671a455219 Fix UTF-8 in all files 2008-01-09 23:45:40 +01:00
Arnaud Cornet
27b16a86b8 Avoid unncessary calls to getaddrinfo.
Refactor calls to getaddrinfo only on socket establishement, cache in
connection structure.
2007-12-21 12:20:21 +01:00
Arnaud Cornet
8f998c97b6 Be verbose when conf_die is called. Try to inform calling client. 2007-12-14 23:07:18 +01:00
Loc Gomez
b68b0dc71d Merge branch 'master' of http://bip.t1r.net/bip
Conflicts:

	src/bip.c
2007-11-25 16:12:36 +01:00
Arnaud Cornet
664ebb68a7 Destroy unused link after sighup 2007-10-21 19:35:22 +02:00
Loc Gomez
d3a5c40a40 bip_use_notice option + fix
add bip_use_notice option to user-level configuration.
fix typo in bip_notify()
2007-09-28 13:20:32 +02:00
Loc Gomez
12ea45b132 cleanup
change some log levels
remove ssl_check_store from connection
indent fixes
check_rlimits: change explain text
Git-explicit version
2007-09-27 14:12:27 +02:00
Loc Gomez
2090349f9c add backlog option to channels. 2007-09-27 01:08:10 +02:00
Loc Gomez
96693716fb fix SSL 2007-09-26 22:08:59 +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
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
nohar
56fd224916 Lot's of cleanups. 2007-05-26 10:31:44 +00:00
nohar
458abaf452 Fix fd leak. Delay reconnections. 2007-02-10 14:05:37 +00:00
nohar
e6b7672a19 New nick mgmt code 2007-01-26 18:52:21 +00:00
nohar
5c17d27a95 Re-think who_count management.
Should fix hard to trigger bug: fatal("negative who_count").
2007-01-05 21:19:32 +00:00
nohar
afa77d12b5 Implement ban reply redirrection to the requesting client only. 2006-11-12 18:08:49 +00:00
nohar
e3410afe93 Now it even build 2006-09-18 18:05:17 +00:00
nohar
925bee51c8 Untested no_client_away_msg support. 2006-09-18 16:06:23 +00:00
nohar
71108cbe93 New /bip commands 2006-07-02 11:50:20 +00:00
nohar
47d82fdd2a Who patch fix 2006-02-21 07:48:12 +00:00
nohar
4055764e81 Merged lappz patch for better who reply handling 2006-02-05 11:10:33 +00:00
nohar
5574a6d335 a few deleted whitespaces + Trou's patch: allows to trust when not connected / allow self-signed certs when in basic ssl mode / permit connection to serveurs w/o a motd 2005-12-12 19:03:02 +00:00
nohar
f4f0cda849 cleanup for release 2005-10-09 11:47:20 +00:00
nohar
e245735f71 merged YS' elite cert management patch 2005-08-25 08:17:10 +00:00
nohar
75458e014b MAMADOO chat sux 2005-08-04 12:40:09 +00:00
nohar
3b9af8d5bd new auth mechanism 2005-07-09 12:55:01 +00:00