Keith Buck
55abcbb20a
Remove trailing whitespace from all .c and .h files.
...
3134 bytes were removed.
2014-03-03 04:25:47 +00:00
Jilles Tjoelker
b45b2daef9
startup: Check return value of open /dev/null. Don't fclose stdin/stdout/stderr.
...
Open /dev/null for standard fds earlier, so a failure can be reported.
Do not fclose stdin/stdout/stderr but just overwrite the fds with
/dev/null.
2014-02-23 21:51:19 +01:00
Keith Buck
7f3382fe98
Remove duplicate default-value code.
...
Default values for default_floodcount and default_ident_timeout are set
in s_conf.c. Remove code that checks for missing values in ircd.c.
Additionally, reset default_ident_timeout to 5 if an invalid value (i.e.
0) is provided.
2013-10-29 09:32:28 +00:00
Quora Dodrill
f951460ae9
src/s_conf: Moved error notification to proper place
...
Previously it was in src/ircd.c, but accroding to jilles, this is a better place for the notification.
This changes a patch made in adef4da10c
and amended in 65d921173c
and f6f049070e
.
2013-08-14 14:28:11 -07:00
Quora Dodrill
f6f049070e
src/ircd: fix -configfile argument
2013-07-10 08:44:27 -07:00
Quora Dodrill
65d921173c
src/ircd: Missed case where ircd.conf is unreadable to the ircd
2013-07-09 20:16:04 -07:00
Quora Dodrill
adef4da10c
src/ircd: Die if the configuration file does not exist
2013-07-09 20:04:45 -07:00
William Pitcock
346fba9252
Migrate capability negotiation code to new dynamic capability management API.
...
This needs a lot of testing, obviously.
2012-02-04 01:47:46 -06:00
William Pitcock
b583faf970
Add support for customizing the usable nick length.
...
This adds a new ISUPPORT token, NICKLEN_USABLE which is strictly an informative value.
NICKLEN is always the maximum runtime NICKLEN supported by the IRCd, as other servers may
have their own usable NICKLEN settings. As NICKLEN_USABLE is strictly informative, and
NICKLEN is always the maximum possible NICKLEN, any clients which depend on NICKLEN for
memory preallocation will be unaffected by runtime changes to NICKLEN_USABLE.
The default NICKLEN is 50; the default serverinfo::nicklen in the config file is set to
30, which is the NICKLEN presently used on StaticBox.
2011-11-29 16:10:21 -06:00
William Pitcock
8bd1c8a19a
branding: denote custom branding in ircd -version
2011-05-08 09:11:50 -05:00
JD Horelick
944b0584ea
Change config option for ident_timeout to default_ident_timeout as jilles
...
recommended.
2010-04-05 16:29:11 -04:00
JD Horelick
0ffb810660
Add a configuration option for ident_timeout.
2010-04-05 15:28:44 -04:00
Jilles Tjoelker
19716b9fd6
New custom channel mode API allowing reloading such modules.
...
Additionally, attempting to use too many modes or two times
the same letter is now detected and prevented.
Modules now request that a channel mode be added/orphaned,
instead of ugly manipulation from which that request had
to be guessed.
Slight changes are needed to modules that provide channel modes.
From the old API, one important function has been made static,
the other important function has been renamed, so loading old
modules should fail safely.
2010-04-01 01:16:16 +02:00
William Pitcock
030cdce7d0
Fix construction of the channel mode vector table.
...
This fixes chm_* modules and should be backported to ircd-seven and charybdis 3.2.
2010-03-07 14:45:42 -06:00
Jilles Tjoelker
1815320d3b
Remove more old kline.conf stuff.
...
Make sure to recompile modules, stuff has been removed
close to the start of ConfigFileEntry.
2010-02-22 19:31:05 +01:00
William Pitcock
80c9ac516e
Load in new bans from bandb on startup.
2010-01-07 18:06:15 -06:00
William Pitcock
6eebc37378
Start bandb on ircd initialization.
2010-01-07 17:22:44 -06:00
Jilles Tjoelker
31c86ea80f
Put libratbox version on startup in a nicer place.
2008-12-22 21:50:21 +01:00
Valeriy Yatsko
d2b6b9f308
[ratbox3 svn r26284 by androsyn] spew the libratbox version info on -version and at startup
2008-12-22 12:58:33 +03:00
William Pitcock
39a68b5376
ircd initialization: add a "default" privset with no privs.
2008-08-17 08:06:28 -05:00
Valery V Yatsko
b1daa815bd
fixed warnings on src/ircd.c compilation
2008-08-17 09:33:05 +04:00
Valery V Yatsko
ec86417cee
ircd-ratbox -> charybdis
2008-08-16 22:38:13 +04:00
Valery V Yatsko
e1db84d87d
seed random not even every 300 seconds, but on startup also
2008-08-16 22:30:28 +04:00
Valery V Yatsko
37cd159e94
egd fixed
2008-08-16 22:29:33 +04:00
Valery V Yatsko
f01a7ff1e9
comment to fix egd (not work currently)
2008-08-16 22:24:28 +04:00
Valery V Yatsko
1a7848d87a
ilog -> inotice in ircd_restart_cb (ircd.c)
2008-08-06 23:57:45 +04:00
Valery V Yatsko
6643434b59
from ircd-ratbox r25799 by androsyn: give a bit more info when libratbox calls logging callbacks
2008-08-06 23:12:02 +04:00
Jilles Tjoelker
befa24c8fe
Make the ircd start again.
2008-07-30 14:48:39 +02:00
Valery Yatsko
adc7be98fc
Removed unneeded includes from newconf.h
2008-07-28 23:14:51 +04:00
Valery Yatsko
6fce54ff82
Reordered functions to match ratbox3's order
2008-07-28 23:02:54 +04:00
Valery Yatsko
cd27d99ce4
Removing '/* patricia */' declarations block as libratbox3 has this now, changed the order of variable declarations a bit
2008-07-27 16:25:00 +04:00
Valery Yatsko
6977926571
Cleanup: removed unused initialVMTop variable from ircd.c and get_maxrss() from restart.c
2008-07-27 16:18:50 +04:00
Valery V Yatsko
3664572833
New (and better) values for startup event timings
2008-06-28 14:50:21 +04:00
Valery V Yatsko
82fed37e11
Removed __CYGWIN__ define - server has no ability to work on cygwin right now
2008-06-28 14:46:03 +04:00
Valery V Yatsko
b2064202fb
Removed SystemTime declaration
2008-06-28 14:38:27 +04:00
Valery V Yatsko
3d3d1a95bb
Remove srand() from main(), we are using ratbox3 random number generator (ev)
2008-06-28 14:36:25 +04:00
Valery V Yatsko
b09cbaa315
1. Removed stupid initUser() function outside of all heaps initializations
...
2. Cleaned up make_client
2008-06-28 12:49:27 +04:00
Valery V Yatsko
5433b83e8f
*_heap declaration related to client.c are now in client.c + current_uid too
2008-06-28 12:44:19 +04:00
Valery V Yatsko
18e4d42137
'struct config_channel_entry ConfigChannel' in channel.c too
2008-06-28 12:02:51 +04:00
Valery V Yatsko
c3d1034381
'rb_dlink_list global_channel_list' declaration moved to channel.c
2008-06-28 12:00:01 +04:00
Valery V Yatsko
b617afdc02
channel_heap,ban_heap,topic_heap,member_heap declared statically in channel.c instead of ircd.{c,h}
2008-06-28 11:54:51 +04:00
Valery V Yatsko
efccc22c27
Applying dyn-cmodes.diff - first step in implementing channel module
...
addition in extensions
2008-06-24 20:45:19 +04:00
Jilles Tjoelker
b380384839
Show hg revision number (serno) in ircd -version.
2008-04-22 23:41:16 +02:00
Valery Yatsko
4562c60489
irc_string.h -> match.h, irc_string.h; includes changed
2008-04-20 09:47:38 +04:00
Valery Yatsko
cbe4e1ba31
legacy irc sprintf gone
2008-04-20 09:12:09 +04:00
Valery Yatsko
f427c8b00d
strlcpy -> rb_strlcpy
2008-04-20 08:40:40 +04:00
Valery Yatsko
d80645d0e2
'reseed_srand' event - libratbox and various ssl stuff need it
2008-04-20 08:26:14 +04:00
Valery Yatsko
f20a07457b
Remove rb_checktimeouts event init from ircd.c - it's inside libratbox now
2008-04-20 08:14:22 +04:00
Valery Yatsko
ea82a3ca27
Splitted open_logfiles(); into open_logfiles(); and close_logfiles();, use the second one on ircd_shutdown
2008-04-20 07:42:30 +04:00
Valery Yatsko
fd5af3d072
Moving some m_die code into ircd_shutdown(reason) function and use it on SIGTERM too
2008-04-20 07:38:56 +04:00