Valeriy Yatsko
c7c9aa764d
Branch merge.
2008-12-03 02:50:01 +03:00
Valeriy Yatsko
94b4fbf93a
Copied libratbox and related stuff from shadowircd upstream.
2008-12-03 02:49:39 +03:00
Jilles Tjoelker
1386c9a7c0
Specify RTLD_LOCAL explicitly.
...
As in atheme-services, I guess some versions of
MacOS X need this.
2008-12-03 00:39:07 +01:00
Jilles Tjoelker
c8d8588915
Split cidr_bitlen into cidr_ipv4_bitlen and cidr_ipv6_bitlen.
...
Taken from ircd-ratbox 3 via shadowircd.
2008-11-30 13:31:59 +01:00
Jilles Tjoelker
36f0316a72
Remove unnecessary initialization that violates const.
2008-11-27 22:50:01 +01:00
Jilles Tjoelker
e7c8892297
Put back accidentally removed word.
2008-11-26 21:38:49 +01:00
Jilles Tjoelker
51e1ce904e
Make the notices reporting auth{} privs a bit more serious-looking,
...
as in ratbox3.
2008-11-19 22:45:13 +01:00
Aaron Sethman
17d00839b3
make is_cti/is_sti collect times connected in unsigned long long instead of time_t as well..on 32bit boxes that is going to wrap pretty quickly
...
committer: Valeriy Yatsko <dwr@it-penza.org>
2008-11-16 10:04:09 +03:00
Jilles Tjoelker
9a9f3cf8a5
Only require DNSBL replies to be in 127.0.0.0/8 instead of /24.
2008-11-15 16:17:16 +01:00
Jilles Tjoelker
570ca08a4f
Allow the resolver to process longer hostnames,
...
for the benefit of some DNSBLs like the "TorDNSEL service".
2008-11-15 16:13:39 +01:00
Jilles Tjoelker
44913ac65f
Add WHOX to 005 so we can see if much breaks.
2008-11-09 00:27:15 +01:00
Jilles Tjoelker
555801db60
Add ircu-like /who format options.
...
Use /quote help who for details.
The format code "o" (oplevel) is not documented,
but implemented showing dummy information (999 for
chanop, n/a otherwise).
2008-11-09 00:12:56 +01:00
Jilles Tjoelker
05d8a68c88
Show spambot notices for joins, not for parts.
...
Parts still decrement the counter for showing notices.
This shows more channels in the notices.
2008-11-08 17:22:41 +01:00
Jilles Tjoelker
f8d9b22917
Add the IP address to userlog, as in ratbox3.
2008-10-31 10:57:51 +01:00
Jilles Tjoelker
4f2b6c0b38
Allow clearing general::kline_reason via a rehash.
2008-09-17 00:21:00 +02:00
Jilles Tjoelker
850b23f3a9
Remove old oper privilege flags.
2008-09-09 21:51:26 +02:00
Jilles Tjoelker
663bbb2836
Add need_ssl to auth{} and operator{}.
...
Specifying need_ssl on auth{} denies the connection if
it is not SSL/TLS, much like need_ident or need_sasl.
Specifying need_ssl on operator{} refuses opering with
ERR_NOOPERHOST if the connection is not SSL/TLS.
from ircd-ratbox
2008-09-07 01:18:58 +02:00
Jilles Tjoelker
5b0a527927
Use rb_snprintf() in various places.
2008-09-06 01:00:20 +02:00
Valeriy Yatsko
d05e3e3a7b
We don't want to leave the isupport name in the extension memory space on changing it - fixed a bug (tnx Artem@IrcNet(RU))
2008-08-31 03:57:27 +04:00
William Pitcock
508c7c41fe
Make change_isupport() return the old value!!!
2008-08-29 15:36:41 -05:00
William Pitcock
17ad49a96a
Add change_isupport() to change the value of an ISUPPORT token.
2008-08-29 15:27:34 -05:00
William Pitcock
9ac19244c0
Automated merge with ssh://hg.atheme.org//hg/charybdis
2008-08-29 14:48:06 -05:00
Stephen Bennett
645103ac52
If auth_user and server password were given and not used, use auth_user as an account name in the nickserv identify command
2008-08-29 14:45:30 -05:00
Jilles Tjoelker
628eee0041
Remove some dead code.
...
found using llvm static analyzer
2008-08-29 02:53:52 +02:00
Jilles Tjoelker
ef8e4220ec
Fix a memory leak.
...
found using llvm static analyzer
2008-08-29 01:58:10 +02:00
Jilles Tjoelker
0cdd90ce79
Fix comment, getsockname() can fail legitimately.
...
from ircd-ratbox r25967 (jilles)
2008-08-28 01:06:19 +02:00
Jilles Tjoelker
c80be1ec80
Don't try to add a closed connection.
...
ircd-ratbox r25965 (jilles)
2008-08-28 01:05:41 +02:00
Jilles Tjoelker
07c8448a5b
Fix ident for ssl connections.
2008-08-28 00:49:04 +02:00
Jilles Tjoelker
6acb39cb1a
Clear privset on deoper.
2008-08-25 18:24:24 +02:00
Jilles Tjoelker
220c63400a
Fix crash if there is no privset= in an operator{}.
2008-08-18 00:55:12 +02:00
Jilles Tjoelker
c08e7f2dbd
Use C locale for the compilation date.
2008-08-17 22:55:57 +02:00
William Pitcock
34cb09ceea
Make a reference to privset in Client.localClient.
2008-08-17 08:23:40 -05:00
William Pitcock
665e79e999
privilegeset_ref(): return the privilegeset
2008-08-17 08:22:56 -05:00
William Pitcock
5a6d4202d1
Make use of the new default privset!!
2008-08-17 08:08:23 -05:00
William Pitcock
001f5f6731
ircd initialization: add a "default" privset with no privs.
2008-08-17 08:06:28 -05:00
William Pitcock
83c037c058
Automated merge with ssh://hg.atheme.org//hg/charybdis
2008-08-17 07:53:32 -05:00
William Pitcock
3ddb54d905
update oper line
2008-08-17 07:53:29 -05:00
Jilles Tjoelker
d2e6d8d715
Add 328 numeric (ChanServ channel URL) to the header files.
2008-08-17 14:49:01 +02:00
William Pitcock
f6189c43ab
same bug
2008-08-17 07:47:06 -05:00
William Pitcock
39352a39f2
fix another stupid bug, gah
2008-08-17 07:46:18 -05:00
William Pitcock
76eca655f9
Make sure extended privilege sets are added to the registry.
2008-08-17 07:44:46 -05:00
William Pitcock
7ce46e0447
Allow : to be in 'string' values.
2008-08-17 07:41:52 -05:00
William Pitcock
b8be4a3f4c
Initial work on getting privsets working.
2008-08-17 07:40:27 -05:00
William Pitcock
de0e9f373b
Add config magic for privset{} parsing.
2008-08-17 07:10:23 -05:00
William Pitcock
0e52880760
Add privilegeset_extend().
2008-08-17 06:35:49 -05:00
William Pitcock
9291987bba
Add basic PrivilegeSet API.
2008-08-17 06:27:59 -05:00
Valery V Yatsko
2d9a60fe7e
fixed warnings on src/ircd.c compilation
2008-08-17 09:33:05 +04:00
Valery V Yatsko
9b37ad07c3
ircd-ratbox -> charybdis
2008-08-16 22:38:13 +04:00
Valery V Yatsko
2a64312fdc
seed random not even every 300 seconds, but on startup also
2008-08-16 22:30:28 +04:00
Valery V Yatsko
2b454b76dc
egd fixed
2008-08-16 22:29:33 +04:00
Valery V Yatsko
5d2fe5036e
comment to fix egd (not work currently)
2008-08-16 22:24:28 +04:00
Valery V Yatsko
6145bb6027
no more servlink - removed 'servlink_path' from reference.conf and source files
2008-08-16 22:23:56 +04:00
Valery V Yatsko
a0775df0ed
fixed typo in sslproc.c
2008-08-08 20:01:52 +04:00
Valery V Yatsko
b01b826d26
ilog -> inotice in ircd_restart_cb (ircd.c)
2008-08-06 23:57:45 +04:00
Valery V Yatsko
94c100153c
from ircd-ratbox r25799 by androsyn: give a bit more info when libratbox calls logging callbacks
2008-08-06 23:12:02 +04:00
Valery V Yatsko
fba62b0151
Moved extern chmode_flags declaration from channel.h to chmode.h, as
...
it's actually declared in the second one
2008-08-04 21:51:15 +04:00
Valery V Yatsko
bee0998d33
Removed global_tree declaration as unused from reject.c
2008-08-04 21:45:30 +04:00
Jilles Tjoelker
d1275a8fd6
Move to ratbox3 reject and throttle code.
...
Throttle replaces max_unknown_ip, reject is like before
(including the charybdis-specific unkline handling).
Both of these now apply before SSL negotiation.
This commit does not include the global_cidr and new dline code.
m_webirc is a bit nasty with throttling (unlike before
with max_unknown_ip), this may be fixed later (or
the webirc IP needs to be exempt{}ed).
2008-08-01 01:59:08 +02:00
Jilles Tjoelker
70747af524
Fix rejectcache and unknown_count.
...
Unfortunately they are checked after SSL setup.
2008-07-31 22:47:53 +02:00
Jilles Tjoelker
bcd8cc02e1
Fix some part of IPv6 dline checking.
2008-07-31 21:56:05 +02:00
Jilles Tjoelker
8576d6944a
Fix problems with resolver not responding and epoll.
...
Read from resolver socket until it is no longer ready.
2008-07-30 19:53:54 +02:00
Jilles Tjoelker
8789299343
Put back netwide snotes for ssld errors from remote connects.
2008-07-30 14:50:12 +02:00
Jilles Tjoelker
f43b492b70
Make the ircd start again.
2008-07-30 14:48:39 +02:00
Valery Yatsko
f5bdde4b42
sslproc.c synced with ircd-ratbox3 svn
2008-07-30 02:55:08 +04:00
Valery Yatsko
9a7b24a6be
Removed unneeded includes from newconf.h
2008-07-28 23:14:51 +04:00
Valery Yatsko
b1d6fa8cd2
Reordered functions to match ratbox3's order
2008-07-28 23:02:54 +04:00
Valery Yatsko
b5a93db8b8
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
4d938eac7d
Cleanup: removed unused initialVMTop variable from ircd.c and get_maxrss() from restart.c
2008-07-27 16:18:50 +04:00
Valery Yatsko
cd1dea9726
last changes of crypt -> rb_crypt
2008-07-27 14:52:46 +04:00
Valery Yatsko
7608ef4933
A very draft version of extensions, which are adding can_join hooks for custom channel modes
2008-07-27 12:10:48 +04:00
Jilles Tjoelker
e23905e60d
Regenerate depend files.
2008-07-12 01:52:27 +02:00
Jilles Tjoelker
121cd4dcb6
Some fixes to .depend generation.
2008-07-12 01:52:14 +02:00
Jilles Tjoelker
3fde0c14a2
Do not send kills for unknown prefixes which are nicks.
...
This can happen harmlessly in particular if a SAVE
and a nick-prefixed command crossed; then, due to
nick changes and nick chasing, it easily causes
ghosts that need a kill or split to disappear.
Most commands use UID as prefix which does not have
this problem and will destroy real ghosts soon enough.
2008-07-02 00:58:56 +02:00
Jilles Tjoelker
e5cdec73ac
Log ssld errors for servers and handshakes.
...
(serverlog)
2008-06-30 00:28:00 +02:00
Jilles Tjoelker
0d093bfee3
Call serv_connect_callback() directly from serv_connect_ssl_callback().
...
This speeds up outgoing SSL server connections by 1 second.
2008-06-29 23:47:10 +02:00
Jilles Tjoelker
faed554234
Give proper error messages if connect fails for a server using SSL.
2008-06-29 23:47:02 +02:00
Jilles Tjoelker
cd0ba90750
Send ssld error netwide if it was a remote connect and a handshake.
2008-06-29 22:02:32 +02:00
Jilles Tjoelker
0b53baf73b
Keep track of nameservers that timeout and use others preferably.
...
The number of timeouts since the last received
packet is visible in /stats A.
2008-06-29 21:07:24 +02:00
Jilles Tjoelker
0ae330b43f
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
42706093f1
New (and better) values for startup event timings
2008-06-28 14:50:21 +04:00
Valery V Yatsko
6447b1637d
Removed __CYGWIN__ define - server has no ability to work on cygwin right now
2008-06-28 14:46:03 +04:00
Valery V Yatsko
f4fd05e251
Removed SystemTime declaration
2008-06-28 14:38:27 +04:00
Valery V Yatsko
fd4535aa50
Remove srand() from main(), we are using ratbox3 random number generator (ev)
2008-06-28 14:36:25 +04:00
Valery V Yatsko
715b28fefd
Applied svn diff from ratbox3 r21458:21470
2008-06-28 14:13:50 +04:00
Valery V Yatsko
4fd52c8c20
notify_banned_client cleaned up
2008-06-28 12:56:58 +04:00
Valery V Yatsko
bb79db15d7
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
6992eef0b5
*_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
9a67ad23d9
Remove Channel->users_last, used nowhere
2008-06-28 12:25:53 +04:00
Valery V Yatsko
9813daca73
'struct config_channel_entry ConfigChannel' in channel.c too
2008-06-28 12:02:51 +04:00
Valery V Yatsko
1a218aaf75
'rb_dlink_list global_channel_list' declaration moved to channel.c
2008-06-28 12:00:01 +04:00
Valery V Yatsko
5475a9321f
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
c735f93023
Pretty symlink logic for help files
2008-06-28 11:48:30 +04:00
Valery V Yatsko
7dd98666cc
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
6a95f26eaf
unlikely -> rb_unlikely
2008-06-26 10:19:27 +04:00
Valery V Yatsko
969a1ae66a
PASS selector:password for auth{}, based on spb's patch for ircd-seven
2008-06-26 10:18:58 +04:00
Valery V Yatsko
2392eb24cd
Generating cflags bufs dynamically: one for RPL_MYINFO and one for
...
supported.c
2008-06-25 07:51:32 +04:00
Valery V Yatsko
57d299acbd
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
6b3b07a84e
New way of noparam mode search
2008-06-24 22:21:26 +04:00
Valery V Yatsko
058aa02c4a
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
040c4408ed
Fix some tracking for cmode +r.
2008-06-25 19:40:12 +02:00