Commit graph

620 commits

Author SHA1 Message Date
Jilles Tjoelker
6a30990367 Reset check_splitmode_ev to NULL after removing it,
to exclude the possibility of it being removed twice.
like ircd-ratbox r25641 (jilles)
reverts 788:476d29d84191
2008-06-29 01:37:11 +02: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
b3ebc7ab9e Applied svn diff from ratbox3 r21458:21470 2008-06-28 14:13:50 +04:00
Valery V Yatsko
405ae5ce44 notify_banned_client cleaned up 2008-06-28 12:56:58 +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
b4407833bd Remove Channel->users_last, used nowhere 2008-06-28 12:25:53 +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
4231cedcea Pretty symlink logic for help files 2008-06-28 11:48:30 +04:00
Valery V Yatsko
22b98b1ed1 untabify function added to cache.c:
removes tabs from src, replaces with 8 spaces, and returns the length
of the new string.  if the new string would be greater than destlen,
it is truncated to destlen - 1
2008-06-28 11:22:43 +04:00
Valery V Yatsko
af41336ae5 unlikely -> rb_unlikely 2008-06-26 10:19:27 +04:00
Valery V Yatsko
40c1fd4799 PASS selector:password for auth{}, based on spb's patch for ircd-seven 2008-06-26 10:18:58 +04:00
Valery V Yatsko
c18cb68b91 Generating cflags bufs dynamically: one for RPL_MYINFO and one for
supported.c
2008-06-25 07:51:32 +04:00
Valery V Yatsko
9bec26cc38 Merged find_orphaned_cflags and construct_noparam_modes in one function
as there's no reason to use them separetly
2008-06-25 07:13:58 +04:00
Valery V Yatsko
f588b95674 New way of noparam mode search 2008-06-24 22:21:26 +04:00
Valery V Yatsko
cbed45a2da New orphaned cflags implementation, now using chm_orphaned instead of
storing orphaned flags in a variable
2008-06-24 22:00:41 +04:00
Jilles Tjoelker
d463189921 Fix some tracking for cmode +r. 2008-06-25 19:40:12 +02:00
Jilles Tjoelker
84c9a8c7be Fix limits on simple modes.
Formerly some mode strings like +svvvv were not accepted.
2008-06-25 19:27:30 +02:00
Valery V Yatsko
46d59e1138 A draft version of find_cmode_slot and orphaned concept for channel
flags
2008-06-24 21:26:49 +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
dd1b211fae ident: use rb_read/rb_write instead of direct syscalls 2008-06-21 02:29:21 +02:00
Jilles Tjoelker
d0ebe1bcb2 ident: obtain port numbers earlier and store them
This eliminates two syscalls per ident lookup.
It also removes a piece of code that depends on
the port fields being in the same location for
sockaddr_in and sockaddr_in6.
2008-06-21 01:52:57 +02:00
Jilles Tjoelker
d5d5e89c98 ident: Check getsockname() return value. 2008-06-21 01:27:17 +02:00
Jilles Tjoelker
1a53072881 Clean up s_auth a little. No functional changes. 2008-06-21 00:58:08 +02:00
Jilles Tjoelker
6bb4fb832b Do not timeout unknowns if still waiting for blacklist lookup.
This fixes inability to connect if all DNS queries
time out and any blacklists are defined.
2008-06-20 01:49:53 +02:00
Jilles Tjoelker
f8a8d16e52 Get rid of ", " at the start of some oper privs strings. 2008-06-18 21:58:43 +02:00
Jilles Tjoelker
8e9623ab59 resolver: Remove effectively unused 'resend' flag. 2008-06-15 15:53:04 +02:00
Jilles Tjoelker
dd1bfa0de1 resolver: Remove request_state which is no longer used. 2008-06-15 01:17:42 +02:00
Jilles Tjoelker
c889c12f3a Allow CNAMEs everywhere, named will have recursed into them for us.
This makes PTRs containing names that are a CNAME
for an A (instead of an A) work. While this is
probably bad practice, some people do it and most
other ircds seem to accept it.
2008-06-15 00:57:15 +02:00
Jilles Tjoelker
ba301effe1 Remove construction of some TS5 linebufs. 2008-06-14 02:30:30 +02:00
Jilles Tjoelker
982ef94983 Remove more TS5 remants (sendto_server calls). 2008-06-14 02:06:55 +02:00
Jilles Tjoelker
fd44b8518a Unbreak sending out bans and simple modes with parameters. 2008-06-13 22:21:44 +02:00
Jilles Tjoelker
6ab8c0d318 Get rid of some K&R style function declarations for conf parser. 2008-06-11 00:54:02 +02:00
Jilles Tjoelker
a3143c9b6b Some const stuff for m_set. 2008-06-11 00:28:08 +02:00
William Pitcock
469c9689c1 More TS6 special cases simplified. 2008-06-08 02:16:43 -05:00
William Pitcock
23489ed776 Remove one last bit of TS5 stuff. 2008-06-08 02:14:21 -05:00
William Pitcock
032515f48c Forgot to test the bitmask, oops. 2008-06-08 02:13:26 -05:00
William Pitcock
0866cef3c1 Replace old 2.8-style privileges notice with a new one. 2008-06-08 02:09:15 -05:00
William Pitcock
ca273a1c73 core: no more TS5 2008-06-08 01:29:26 -05:00
William Pitcock
7bb8c655ec Remove burst_modes_TS5() and burst_TS5(). 2008-06-08 01:11:57 -05:00
Jilles Tjoelker
794816af01 Check for the -rpath linker flag.
This makes it build on MacOS X which neither
supports nor needs this flag.
2008-05-17 17:46:37 +02:00
Jilles Tjoelker
b380384839 Show hg revision number (serno) in ircd -version. 2008-04-22 23:41:16 +02:00
Jilles Tjoelker
b7bb965735 Don't try to fflush a file we just closed.
ircd-ratbox r25251 (androsyn)
2008-04-22 00:45:43 +02:00
Jilles Tjoelker
121b641409 Remove obsolete comment.
DNS lookups should be done prior to usage of an item,
not when loading the configuration.
2008-04-20 15:33:23 +02:00
Jilles Tjoelker
fd5c370711 Remove conf_connect_allowed(), neither used nor declared. 2008-04-20 15:32:08 +02:00
Jilles Tjoelker
896755fe0d Move some declarations to header files, this enforces that they match. 2008-04-20 15:30:24 +02:00
Jilles Tjoelker
2e819b6b3e Fix various compiler warnings. 2008-04-20 15:20:10 +02:00
Jilles Tjoelker
9eea5de11d Remove silly cast that caused a compiler warning. 2008-04-20 14:47:34 +02:00
Valery Yatsko
f5cb68d51d Remote d:lines implementation (based on ircd-seven's r230 by spb, Stephen Bennett <spb@attenuate.org>) 2008-04-20 11:26:37 +04:00
William Pitcock
ab4285181c Remainder of irc_string.* is moved to new inline/stringops.h. 2008-04-20 01:03:11 -05:00
Valery Yatsko
4562c60489 irc_string.h -> match.h, irc_string.h; includes changed 2008-04-20 09:47:38 +04:00
Valery Yatsko
decf0486cc strip_tabs() is related to s_conf.c ONLY - moved it there 2008-04-20 09:38:26 +04:00
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
Valery Yatsko
4714a17f54 Trying to fix packet.c 2008-04-02 16:31:17 +04:00
Valery Yatsko
87116eca09 add_reject fix - please check!!! 2008-04-02 16:12:49 +04:00
Valery Yatsko
c111ac1162 fixing ServerStats references 2008-04-02 16:11:27 +04:00
Valery Yatsko
19fee732d7 tstats stuff gone to m_stats.c 2008-04-02 16:04:43 +04:00
Valery Yatsko
29b15e07b3 s_stats.c::tstats fixed 2008-04-02 16:01:49 +04:00
Valery Yatsko
35ce33bc5f ircst legacy declaration gone 2008-04-02 16:00:08 +04:00
Valery Yatsko
7ea870f364 ircvsnprintf -> rb_vsnprintf 2008-04-02 15:58:00 +04:00
Valery Yatsko
2454b79add inotice fixed 2008-04-02 15:56:34 +04:00
Valery Yatsko
f62e27ad8d add_listener w/o ssl 2008-04-02 15:53:46 +04:00
Valery Yatsko
da66e74437 Missed ')' 2008-04-02 15:46:38 +04:00
Valery Yatsko
e5ac49667f client.c fixed, remember to check it with servlink 2008-04-02 15:45:41 +04:00
Valery Yatsko
4964011f8a class.c fixed possibly 2008-04-02 15:33:29 +04:00
Valery Yatsko
b41f87571e client.c fixed 2008-04-02 15:25:49 +04:00
Valery Yatsko
6f24a013bf fixing dline 2008-04-02 15:20:15 +04:00
Valery Yatsko
39bdbd3f7d 'ServerStats->' -> 'ServerStats.' 2008-04-02 15:07:00 +04:00
Valery Yatsko
4998e3d6dc More charybdis -> ratbox3 2008-04-02 15:02:45 +04:00
Valery Yatsko
3c5a494ddd Fixing bugs 2008-04-02 14:43:53 +04:00
Valery Yatsko
7ee5e8a5fe reject functions from ratbox3 2008-04-02 14:41:37 +04:00
Valery Yatsko
c11029da8a Missed include 2008-04-02 14:37:40 +04:00
Valery Yatsko
b5cf99a8c3 s_stats workaround 2008-04-02 14:35:57 +04:00
Valery Yatsko
d8b66e8b52 sslproc.h include 2008-04-02 14:30:44 +04:00
Valery Yatsko
f888761cec ssl_ok in ircd.{h,c} 2008-04-02 14:29:18 +04:00
Valery Yatsko
0ff67b4b83 hash_cli_fd(x) 2008-04-02 14:22:43 +04:00
Valery Yatsko
fc2998b46f clientbyFdTable 2008-04-02 14:22:02 +04:00
Valery Yatsko
835b12ef61 Some hash stuff 2008-04-02 14:20:27 +04:00
Valery Yatsko
ae78a57163 Reverting to 398.. trying again with native charybdis hash 2008-04-02 14:16:31 +04:00
Valery Yatsko
b871b3263d UMODE_DEBUG -> SNO_DEBUG 2008-04-02 14:01:32 +04:00
Valery Yatsko
85958381ad hash.{h,c} from ratbox3, let's work around them! xD 2008-04-02 13:58:52 +04:00
Valery Yatsko
ba4936e2c5 extern declaration in ircd.h instead of ircd.c 2008-04-02 13:53:41 +04:00
Valery Yatsko
59323b9668 Reverting last commit 2008-04-02 13:52:05 +04:00
Valery Yatsko
5d1efcb253 fixing maxconnections -> rb_get_maxconnections() 2008-04-02 13:48:31 +04:00
Valery Yatsko
433a202989 Much more changes to remove compilation warnings 2008-04-02 13:43:11 +04:00
Valery Yatsko
f7e2c5b340 Trying again - this will need ssld integration from me 2008-04-02 13:32:14 +04:00
Valery Yatsko
f438bd836a Reverting last commit to try again 2008-04-02 13:11:59 +04:00
Valery Yatsko
873487eb8f Trying to migrate on ratbox3's listener. 2008-04-02 06:25:08 +04:00
William Pitcock
2847d2186e fix ircd.c compilation 2008-04-01 20:56:54 -05:00
William Pitcock
11dd56fa8e Automated merge with http://angelforce.ru:8000 2008-04-01 20:55:21 -05:00
Valery Yatsko
0edb29fa2e Fixed a ratbox lib call as it is in ircd-ratbox-3 2008-04-02 05:47:12 +04:00
Valery Yatsko
12aea5fecd event* -> rb_event* 2008-04-02 05:43:35 +04:00
William Pitcock
faefd28ac1 Automated merge with http://angelforce.ru:8000 2008-04-01 20:38:23 -05:00
William Pitcock
fa94d8fb93 make s_user.c build. 2008-04-01 20:36:50 -05:00
William Pitcock
c626889a84 make s_stats.c compile 2008-04-01 20:34:58 -05:00
William Pitcock
e410dcf545 make s_newconf.c compile 2008-04-01 20:34:02 -05:00
William Pitcock
6aae811eb3 fix s_log. 2008-04-01 20:31:26 -05:00
Valery Yatsko
adc6cc4278 client.c fixes + away stuff from ratbox3, part 2 2008-04-02 05:24:54 +04:00
William Pitcock
c75fdbfb29 fix restart.c 2008-04-01 20:11:11 -05:00
William Pitcock
b572cd7a75 fix reslib 2008-04-01 20:07:43 -05:00
William Pitcock
afdc068ce0 fix newconf.c 2008-04-01 20:04:03 -05:00
William Pitcock
95b3551e55 fix monitor.c 2008-04-01 20:03:40 -05:00
William Pitcock
301061562a warning clean 2008-04-01 20:03:13 -05:00
William Pitcock
57fa364823 fix ircd_state.c 2008-04-01 20:01:48 -05:00
William Pitcock
90728508bb fix irc_dictionary, and some ircd warnings 2008-04-01 20:01:25 -05:00
William Pitcock
c608a0619b channel.c done!!!! 2008-04-01 19:56:51 -05:00
Valery Yatsko
398b6a7372 ok, trying to work on blockheap's stuff 2008-04-02 04:28:05 +04:00
Valery Yatsko
c2551f470d BlockHeap -> rb_bh 2008-04-02 04:21:17 +04:00
Valery Yatsko
91e2f81c99 Prevent cork usage as charybdis doesn't have its support 2008-04-02 04:19:12 +04:00
Valery Yatsko
2296e5600f Missed include. 2008-04-02 04:16:50 +04:00
Valery Yatsko
0ccdff98ac fixing cache.c compilation - code stolen from ratbox3, with irc dictionary addition 2008-04-02 04:15:58 +04:00
Valery Yatsko
e335494516 CurrentTime -> rb_currenttime(); 2008-04-02 03:53:20 +04:00
Valery Yatsko
47a0375094 DubString -> rb_strdup 2008-04-02 03:26:34 +04:00
Valery Yatsko
eddc2ab6d8 MyMalloc -> rb_malloc 2008-04-02 03:07:29 +04:00
Valery Yatsko
300a543344 away stuff from ratbox3 2008-04-02 03:03:15 +04:00
Valery Yatsko
423f18a073 monitor.{c,h} stuff for libratbox3. 2008-04-02 02:55:34 +04:00
Valery Yatsko
637c4932f6 Argh, wrong replace caused by MS VS 2005 interface. 2008-04-02 02:47:17 +04:00
Valery Yatsko
bd19829278 MyFree -> rb_free 2008-04-02 02:45:16 +04:00
Valery Yatsko
81af5bcb39 libcharybdis includes gone. 2008-04-02 02:39:19 +04:00
Valery Yatsko
f24a7dfbaf Removing libcharybdis references. 2008-04-02 02:18:44 +04:00
Jilles Tjoelker
734d420e14 Some changes for libratbox. 2008-04-02 00:10:51 +02:00
Jilles Tjoelker
3b2ebd04de Make send.c compile, except for ziplinks. 2008-04-01 23:51:34 +02:00
William Pitcock
434028d031 rb_event_add ;) 2008-04-01 16:26:23 -05:00
William Pitcock
fa8328508d Make m_set compile. 2008-04-01 16:25:22 -05:00
Jilles Tjoelker
7018b86a12 More changes for libratbox. 2008-04-01 23:11:11 +02:00
William Pitcock
944e17ac4f patricia stuff 2008-04-01 15:44:55 -05:00
William Pitcock
5cefa1d6c8 macro replacement 2008-04-01 15:43:10 -05:00
William Pitcock
330fc5c10c dlink -> rb_dlink 2008-04-01 15:41:52 -05:00
William Pitcock
b2f0da886e ircs[n]printf -> rb_s[n]printf 2008-04-01 15:38:40 -05:00
William Pitcock
5b96d9a6b9 start making this compile 2008-04-01 15:18:48 -05:00
William Pitcock
d56734d6dd bork bork bork 2008-04-01 15:14:08 -05:00
William Pitcock
75bb1a639c kill patricia.c 2008-04-01 15:11:03 -05:00
William Pitcock
24e9341af3 Initialize libratbox. 2008-04-01 15:10:43 -05:00
William Pitcock
ecc31a989c link against libratbox... 2008-04-01 14:55:00 -05:00
Jilles Tjoelker
7b7e1640de Move PRIVS command from extensions to modules (shows effective oper privs). 2008-03-31 00:39:14 +02:00
Jilles Tjoelker
bd710c8837 Add ERR_DISABLED (517) from ircu. 2008-03-30 19:56:20 +02:00
Jilles Tjoelker
85550587fb Unbreak /quote help stats as an oper (all where oper and user help are different).
Remove symlink optimization, so helpfiles equal for
opers and users are loaded into memory twice, which
is not an issue.
2008-03-29 23:38:22 +01:00
Jilles Tjoelker
8682f1cb32 Fix type mismatch with format string.
Could have broken on some 64-bit machines.
2008-03-29 21:56:15 +01:00
Jilles Tjoelker
48a266e5da Cleanups to 005 code, from ratbox (androsyn). 2008-03-18 23:28:03 +01:00
Jilles Tjoelker
7478545cb2 Hide cmode +r from 005 if there is no service{} block. 2008-03-11 23:56:23 +01:00
Jilles Tjoelker
3b005693bd Clearer error messages for failed joins. 2008-03-11 19:48:58 +01:00
Jilles Tjoelker
43f8445df3 Show some target change statistics in /stats t.
- the number of messages blocked by target change on
  this server since it was started
- the number of IPs currently subject to a a lower
  target limit on this server (these expire over time)
2008-03-02 17:03:56 +01:00
William Pitcock
aed5ce90a5 Remove CHFL_DEOPPED entirely.
Since charybdis 2.3 will require TS6, emulating legacy semantics is
unnecessary.
2008-02-27 14:08:27 -06:00
Jilles Tjoelker
5aa453a47f Default connect::flags topicburst to true.
Use ~topicburst if you must disable it.
2008-02-02 17:15:34 +01:00
Jilles Tjoelker
309e4fd03f Update /stats z for removal of struct User from whowas.
This was done in hybrid 5 or earlier...
2008-01-22 22:07:11 +01:00
Jilles Tjoelker
8d0d947de8 send_linebuf_remote(): Remove broken and useless ghost check that can never happen.
Reasoning why it never does anything:
- the to = to->from line makes sure that MyConnect(to)
- then IsPerson(to) && (to == from->from) implies that to == from
- so MyClient(to)
- which cannot happen because it also wants that !MyClient(from)

Originally, the to = to->from line was below, and it did a
fake direction check, killing a client if servers could be
confused about it. The kill cannot do any good with TS6.

The fake direction check is and was performed by the
callers of send_linebuf_remote().
2008-01-17 01:06:32 +01:00
Jilles Tjoelker
19807b5b97 Fix some split servers not appearing in oper /map.
Needed another scache_split() call, in qs_server().
2008-01-16 19:53:42 +01:00
Jilles Tjoelker
c7874951aa kline_exempt does not exempt from D:lines, so don't tell user it does. 2008-01-06 17:41:59 +01:00
Jilles Tjoelker
5ca543e7c5 Remove FLAGS2_NOLIMIT (IsExemptLimits/SetExemptLimits).
This only has an effect at connection time, and the
ConfItem flag suffices for that.
2008-01-06 00:16:57 +01:00
Jilles Tjoelker
e4b9c8e115 Add two missing colons for sendto_one_notice(). 2008-01-06 00:12:51 +01:00
Jilles Tjoelker
19c13ce523 flag_table -> oper_table (more descriptive name) 2008-01-05 22:51:09 +01:00
Jilles Tjoelker
b4838ccdf5 Show full flag name, not letter, when refusing to set umode +s +n or +a. 2008-01-05 01:37:03 +01:00
Jilles Tjoelker
962747349b Send a rate-limited server notice if a blacklist gives a non-127.0.0.x reply. 2008-01-05 00:38:23 +01:00
Jilles Tjoelker
05ee179e43 Update some copyright years. 2008-01-02 22:34:29 +01:00
Jilles Tjoelker
137d856d65 Only accept 127.0.0.x as a dnsbl listing. 2008-01-02 22:32:09 +01:00
Jilles Tjoelker
85e132a46f Update main copyright year. 2008-01-02 00:09:50 +01:00
Jilles Tjoelker
c8de4f0037 Include time the k/d line was set in the reason when reading ban confs.
This correspond to what happens when a kline or dline is set.
2008-01-02 00:06:08 +01:00
Jilles Tjoelker
cdd5b26189 Remove idle time checking (auto disconnecting users idle too long). 2008-01-01 23:04:34 +01:00
Jilles Tjoelker
c4f13a6499 STATS I and TESTMASK: Show some more auth{} flags.
flood_exempt (|), dnsbl_exempt ($), gline_exempt (_)
All these are only shown to opers.
2008-01-01 21:54:27 +01:00
Jilles Tjoelker
f56fdec2a0 Fix a crash when connecting to a server. 2008-01-01 18:47:10 +01:00
Jilles Tjoelker
a63a1eab74 STATS I: Show spoofed auth{} blocks and ^<> flags to remote opers also. 2008-01-01 18:25:04 +01:00
Jilles Tjoelker
997613d2f3 Fix a crash after a local client exits. 2008-01-01 18:15:56 +01:00
Jilles Tjoelker
d61de0adff Remove various obsolete ConfItem statuses (types) and flags. 2008-01-01 16:06:59 +01:00
Jilles Tjoelker
7a8dcc086d Remove long obsolete comment. 2007-12-28 23:23:15 +01:00
William Pitcock
c5c2f506c1 Replace int fd; in local client object with an fde object. 2007-12-28 15:06:33 -06:00
Jilles Tjoelker
35cf4c7998 Use connect_timeout for handshakes; add snote and log when they time out. 2007-12-28 16:38:39 +01:00
Jilles Tjoelker
e2a980439e Remove code for unregistered clients from check_pings_list()
because it is only called for lists of registered clients.
2007-12-28 16:17:39 +01:00
Jilles Tjoelker
06b697a268 Make remote numerics to channels work.
Note that +D clients do not get these.  This is consistent
with how ircu treats remote numerics and with how we treat
server notices from other servers, but not with how locally
generated notices and numerics are sent also to +D clients.
2007-12-26 22:46:43 +01:00
Jilles Tjoelker
7d1f9131fb Consolidate duplicate channel mode flags tables to one. 2007-12-25 01:00:20 +01:00
Jilles Tjoelker
0b580267af Remove "<server> had been connected for <time>" snote.
For registered servers, it is entirely redundant with the
"<server> was connected for <time>.  <traffic>" snote, and
only sent for some ways of closing; for handshakes, you
already know that it had not been connected for long.
2007-12-24 23:29:01 +01:00
Jilles Tjoelker
f2c1b06bcf Make the other notices to snomask +b network wide.
(with the exception of flooding on an &channel)
2007-12-24 22:43:47 +01:00
Jilles Tjoelker
a6f4368b96 Add mass_notice oper priv, enabled by default for compatibility.
Controls /wallops and masked notices/privmsgs.
2007-12-24 21:47:05 +01:00
Jilles Tjoelker
095328a742 Move various flags from flags2 to flags. 2007-12-24 20:58:55 +01:00
Jilles Tjoelker
86142e83d7 Remove unused CONF_FLAGS_DO_IDENTD and FLAGS_NEEDID. 2007-12-24 20:32:41 +01:00
Jilles Tjoelker
29c55c49f2 Remove unused flag FLAGS_CHKACCESS. 2007-12-24 20:26:39 +01:00
Jilles Tjoelker
c3fed903fd Branch merge. 2007-12-24 18:24:49 +01:00
Jilles Tjoelker
420b2c9a10 Remove dot_in_ip6_addr config option. 2007-12-24 18:24:23 +01:00
William Pitcock
c1e5bc4117 comm_locate_fd(), not comm_lookup_fd(). 2007-12-22 16:30:06 -06:00
William Pitcock
5cd74a3b6c linebuf_flush(): use fde_t's. 2007-12-22 16:28:05 -06:00
William Pitcock
5893220fdc wtf mercurial, tbh. 2007-12-22 16:08:34 -06:00
William Pitcock
64513f3675 Automated merge with ssh://hg.atheme.org//hg/charybdis 2007-12-22 14:05:45 -06:00
William Pitcock
2cac65a378 Add some GNUTLS helper code. 2007-12-22 14:05:03 -06:00
Jilles Tjoelker
95d36ef54b It is ok to send 402 to local clients for any hunt_server operation. 2007-12-22 00:20:54 +01:00
Jilles Tjoelker
1ef5b43053 Require resv oper privilege to set cmode +L or +P. 2007-12-18 00:24:05 +01:00
Jilles Tjoelker
1ebe6ffc92 Add resv oper priv, enabled by default for compatibility. 2007-12-17 02:20:14 +01:00
Jilles Tjoelker
c422d2a067 Silence harmless compiler warning. 2007-12-13 00:20:06 +01:00
Jilles Tjoelker
d7f753cd3a Do not copy string passed to add_top_conf()/add_conf_item().
If the caller can keep a function pointer valid, they can
certainly keep a string valid.
This also fixes an error with HAVE_STRDUP undefined.
2007-12-13 00:14:02 +01:00
Jilles Tjoelker
e8149a2c64 Make /rehash help work again. 2007-12-12 22:26:17 +01:00
Jilles Tjoelker
351078d072 Use 127.0.0.1 as nameserver if none can be found in /etc/resolv.conf.
This agrees with bind's behaviour.
2007-12-11 18:37:14 +01:00
Jilles Tjoelker
35f6f850b6 Remove reject entries on unkline/ungline/unxline.
When a user is rejected, remember the hash value of the
ban mask (for klines/glines, hash value of the user part
XOR hash value of the host part) with the rejected IP;
if the kline/gline/xline is removed, remove rejects with
the same hash value also.  Note that this does not happen
for expiries; this is deliberate.
Rejects for no auth{} or dnsbl put a hash value of 0;
they cannot be removed selectively.
2007-12-08 21:54:51 +01:00
Jilles Tjoelker
1cda7a9cb2 Change meaning of "bits" in FNV hash functions to bitlen instead of 32-bitlen.
Do reduction like recommended by
http://www.isthe.com/chongo/tech/comp/fnv/index.html#xor-fold
2007-12-08 19:44:18 +01:00
Jilles Tjoelker
176489286d Mention vhost in serverlog connect log message. 2007-12-06 22:45:26 +01:00
William Pitcock
43de0f45a1 Make sure the nd_dict is always created. 2007-12-03 19:37:33 -06:00
William Pitcock
9802490cbb help system rework, part 1 2007-12-03 19:35:55 -06:00
William Pitcock
b37021a45e nickdelay -> dictionary. 2007-12-03 10:59:25 -06:00
William Pitcock
3e91d7006f I was nuts when I wrote that comment, lets kill it off. 2007-12-02 15:50:54 -06:00