Commit graph

363 commits

Author SHA1 Message Date
Valery Yatsko
e3b33fe3e6 clean_string() is related to m_links.c ONLY - moved it there 2008-04-20 09:35:22 +04:00
Valery Yatsko
4a2651e520 strtoken -> rb_strtok_r (with arguments order changes) 2008-04-20 09:20:25 +04:00
Valery Yatsko
cbe4e1ba31 legacy irc sprintf gone 2008-04-20 09:12:09 +04:00
Valery Yatsko
08d75d9702 myctime -> rb_ctime 2008-04-20 09:03:39 +04:00
Valery Yatsko
e6be5558e4 no need for inetntop* now - removed 2008-04-20 08:57:25 +04:00
Valery Yatsko
caa4d9d273 Various inet* -> rb_inet_* 2008-04-20 08:55:41 +04:00
Valery Yatsko
79c70bbb9c Missed file from previous changeset 2008-04-20 08:46:04 +04:00
Valery Yatsko
1f9de103c3 strlcat -> rb_strlcat 2008-04-20 08:44:04 +04:00
Valery Yatsko
f427c8b00d strlcpy -> rb_strlcpy 2008-04-20 08:40:40 +04:00
Valery Yatsko
6af128685d Functions replacement: ircd_baseXX_{en,de}code -> rb_baseXX_{en,de}code 2008-04-20 08:36:28 +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
Valery Yatsko
041d54ff4b Switched on using cache_user_motd(); for motd update on rehash 2008-04-20 07:24:50 +04:00
Jilles Tjoelker
3eabb958a7 Improve SIGCHLD handler
- Reap multiple zombies per signal
- Save and restore errno
ircd-ratbox r25239
2008-04-18 01:01:38 +02:00
Jilles Tjoelker
8bd5767b95 Remove ^M on line endings. 2008-04-13 17:54:23 +02:00
William Pitcock
de4d47a12a New operline based on ranting from ccr. 2008-04-12 18:56:46 -05:00
Jilles Tjoelker
aae358c078 Remove various other gline stuff. 2008-04-11 17:10:40 +02:00
Valery Yatsko
eae062741d 'You are exempt from...' message fixed - glines gone 2008-04-11 19:09:19 +04:00
Valery Yatsko
453ea2fde8 Fixing compilation - CAP_GLN removed 2008-04-11 18:56:53 +04:00
Valery Yatsko
170703fe3a Removing glines 2008-04-11 18:47:03 +04:00
Valery Yatsko
8982edb068 Fixing time_t warnings 2008-04-09 23:34:34 +04:00
Valery Yatsko
b3e9f8ebc2 Importing ratbox3 r25213 changeset 2008-04-09 23:22:51 +04:00
Valery Yatsko
79b0d5a330 .cvsignore files removed, SVN-Access replaced by Mercurial-Access 2008-04-09 22:24:50 +04:00
Valery Yatsko
c84557ac70 chm_* declarations gone to chmode.h - this makes some modules clean 2008-04-08 23:39:35 +04:00
Jilles Tjoelker
01e9b1eb3b Fix some warnings in the resolver code. 2008-04-08 19:55:51 +02:00
Jilles Tjoelker
6db4fb0a9b Make Dictionary keys const everywhere. 2008-04-08 19:52:02 +02:00
Jilles Tjoelker
8262273238 Make the format argument of change_nick_user_host() const. 2008-04-08 18:54:58 +02:00
Valery Yatsko
26716d6d40 Fixed two places, where sendto_realops_flags was mistakenly used, and removed this function entirely 2008-04-08 20:32:58 +04:00
Valery Yatsko
536845c57d Removing UMODE_ALL, replacing all sendto_realops_flags in sslproc.c with snomasks 2008-04-08 20:16:19 +04:00
Valery Yatsko
39944e1ff2 rb_lib_loop delay changed from 250 to 0, it really must be set to nil, 'cause there are some additional checks inside libratbox3 2008-04-08 18:09:32 +04:00
Valery Yatsko
b2c42c4589 Branch merge 2008-04-08 18:01:37 +04:00
Valery Yatsko
4c79bbd350 Working over zipstats bug and moving on the new ServerStats struct (without Kb counting, this style is used by code parts from ratbox3) 2008-04-08 18:00:38 +04:00
Valery Yatsko
b5b84cad5d Oups, declarations related to ircd.c returned from ircd_state.c 2008-04-08 16:01:16 +04:00
Valery Yatsko
1aad97824b Cleaned up ircd.c a bit and added additional check to ircd_die_cb() 2008-04-08 15:50:39 +04:00
Valery Yatsko
72324d1052 ircd_state.{c,h} gone - let us redesign it in future really 2008-04-08 15:41:41 +04:00
Valery Yatsko
31fd33171e ServerRunning is not used too 2008-04-08 15:38:18 +04:00
Valery Yatsko
aa6c90dec7 It seems that we don't use data structs version anywhere since 1.2.0 - removed 2008-04-08 15:36:56 +04:00
Valery Yatsko
f4a759c560 show_capabilities cleanup and now show whether we are TS or TS6 and SSL link 2008-04-07 20:21:09 +04:00
Valery Yatsko
bbe968ca0c Make charybdis not search m_sjoin as its a core module 2008-04-07 20:06:04 +04:00
William Pitcock
af7aaa8444 fix whois :) 2008-04-06 12:04:25 -05:00
William Pitcock
3318e109f9 add umode +Z for SSL, can't be set or unset 2008-04-06 11:55:12 -05:00
William Pitcock
f845191560 make this compile again 2008-04-06 11:33:34 -05:00
Valery Yatsko
c6d7203732 ssl sync with http://hg.angelforce.ru/charybdis-old 2008-04-06 18:52:42 +04:00
Jilles Tjoelker
f1eccc3420 Branch merge. 2008-04-05 22:34:13 +02:00
Jilles Tjoelker
abe5dd209d Put back connecting to servers defined by hostname.
The DNS lookup is done at connect time.
2008-04-05 22:09:32 +02:00
Valery Yatsko
101db4c443 Much clear maxconnections stuff - ported from ratbox3. 2008-04-05 23:56:15 +04:00
Valery Yatsko
2af8c7ff8b Some global structs cleaned up a bit in their initalization and declarations. 2008-04-05 22:02:59 +04:00
Valery Yatsko
9ea3ea1085 Missed some files in r520 commit. 2008-04-05 21:20:48 +04:00
Valery Yatsko
ccda6e3fc5 Replacing legacy IPV6 define with RB_IPV6 (which is included in libratbox's config.h). 2008-04-05 20:57:30 +04:00
Valery Yatsko
47adde3def s_stats.c removed, now we use new style of stats handling. 2008-04-04 19:54:37 +04:00
Jilles Tjoelker
f455ed520d Servlink control data is read again, this makes /stats Z work. 2008-04-04 00:45:38 +02:00
Jilles Tjoelker
8c689f969d Ziplinks appear to work again now. 2008-04-04 00:13:50 +02:00
Jilles Tjoelker
209b3a713d Unbreak /stats B. 2008-04-03 23:38:47 +02:00
Jilles Tjoelker
d18a9c05fb Fix crash when a server or attempt by an oper exits. 2008-04-03 22:47:16 +02:00
Jilles Tjoelker
75c5813806 Unbreak connecting to servers. 2008-04-03 22:46:43 +02:00
Jilles Tjoelker
2844a8b409 Remove ident connect failure notices again.
reverting 7ea53124d350
2008-04-03 22:19:47 +02:00
Jilles Tjoelker
9f316874a3 Clean this up a bit. 2008-04-03 22:11:19 +02:00
Jilles Tjoelker
2b2df0cb10 Fix a case where an EOF could be interpreted a previous errno (often ignorable). 2008-04-03 21:43:54 +02:00
Jilles Tjoelker
e33c4818c3 Connect to correct ident port (forgot an htons). 2008-04-03 20:46:20 +02:00
William Pitcock
c5eebb3efb Make identd check work again. Someone made an oops here. 2008-04-03 10:53:16 -05:00
William Pitcock
93a426cb6e Make this compile again. 2008-04-03 10:31:18 -05:00
William Pitcock
8afa3bf057 Call ilog_error() to log identd check failures. 2008-04-03 10:29:51 -05:00
William Pitcock
fd3f1b5b69 set_time() isn't needed anymore; remove it 2008-04-03 05:35:44 -05:00
William Pitcock
4016731b1c s_log.* -> logger.* (s_foo looks ugly, lets try to get rid of it) 2008-04-02 21:52:01 -05:00
William Pitcock
825ddf1363 report_error() cleanup 2008-04-02 21:47:03 -05:00
William Pitcock
ba1a1399c7 ilog_error() replaces legacy report_error() craq 2008-04-02 21:40:54 -05:00
William Pitcock
caf88e7805 Remove gnutls.c, we don't need it now. 2008-04-02 20:46:05 -05:00
William Pitcock
1d5d54832a setting maxconnections seems to get things going... 2008-04-02 20:45:24 -05:00
William Pitcock
12b7556ef4 use an rpath to avoid LD_LIBRARY_PATH stuff 2008-04-02 20:26:48 -05:00
William Pitcock
33564d03b5 use rb_set_time() to update ratbox time 2008-04-02 20:26:00 -05:00
Jilles Tjoelker
150f35f7c2 Need to initialize linebuf separately. 2008-04-03 01:40:32 +02:00
Jilles Tjoelker
fe18f4bc7b Restore and update send_oper_motd().
The main ircd binary now compiles and links.
2008-04-03 01:16:49 +02:00
Jilles Tjoelker
6c528b8e68 Make some more files compile. 2008-04-03 01:10:04 +02:00
Jilles Tjoelker
b2c190a64d Make s_conf.c compile. 2008-04-02 21:39:58 +02:00
Jilles Tjoelker
c6f49c9a63 Make s_auth.c compile. 2008-04-02 21:14:34 +02:00
Jilles Tjoelker
1087485cf2 Remove ^M. 2008-04-02 20:50:20 +02:00
William Pitcock
0240b41954 reject.c ported 2008-04-02 13:01:18 -05:00
William Pitcock
0f6d6f3ddf res.c is ported to libratbox :) 2008-04-02 12:57:14 -05:00
Valery Yatsko
d91ce397ba packet.c fixed 2008-04-02 21:23:29 +04:00
Valery Yatsko
e967e868c4 Stuff connected with ctrlFd disabled 2008-04-02 21:16:13 +04:00
Valery Yatsko
673f58abaf servlink fd commented out in close_connection() - we are moving on ssld 2008-04-02 21:12:08 +04:00
Valery Yatsko
5a606a8f8c flood_recalc moved on ratbox3 event engine 2008-04-02 21:10:29 +04:00
Valery Yatsko
60eb0cdc9c linebuf -> rb_linebuf 2008-04-02 21:04:44 +04:00
Valery Yatsko
bec1e0a51e Oups, change for last commit 2008-04-02 20:55:38 +04:00
Valery Yatsko
3610cbbbda find_dline fixed 2008-04-02 20:54:27 +04:00
Valery Yatsko
8454fac35c Last argument fix 2008-04-02 20:51:17 +04:00
Valery Yatsko
59dc6c8634 listener.c fixes - part 1 2008-04-02 20:49:46 +04:00
Valery Yatsko
99c4835f99 add_connection fixed to accept F instead of fd 2008-04-02 20:45:37 +04:00
Valery Yatsko
8e09c4a231 Missed declarations 2008-04-02 20:40:38 +04:00
Valery Yatsko
0d89d5cd46 Porting accept callback functions 2008-04-02 20:39:36 +04:00
Valery Yatsko
f691939a17 Workarond with listener.c stuff on moving from listener->fd usage on listener->F. 2008-04-02 20:06:11 +04:00
Valery Yatsko
e7046ee54d irc_sockaddr_storage -> rb_sockaddr_storage, changing fd in Listener struct to F 'cause libratbox3 need it. 2008-04-02 19:57:37 +04:00
Valery Yatsko
b08ce46eb1 class.c fixed 2008-04-02 19:49:42 +04:00
Valery Yatsko
54ac8b60a1 Reverting some changed related not to moving on libratbox3 but using ratbox3 source! 2008-04-02 19:37:50 +04:00
Valery Yatsko
07d5c0494a get_printable_kline(..) fix 2008-04-02 16:55:01 +04:00
Valery Yatsko
9072ba07bd fixing reject.c compilation + some changes I forgot in previous changeset 2008-04-02 16:53:21 +04:00
Valery Yatsko
acd639c5de includes fix 2008-04-02 16:37:42 +04:00
Valery Yatsko
e4d8860e06 READBUF_SIZE 2008-04-02 16:35:48 +04:00