Jilles Tjoelker
13ea0f1cd1
rehash bans: show mask in k/x line over-ruled notice
...
This was already shown in the over-ruled notices on k/x line add.
2009-03-08 14:31:50 +01:00
Jilles Tjoelker
6bba251749
rehash bans: still check k/x lines for users exempt from dlines
2009-03-08 13:30:30 +01:00
Jilles Tjoelker
638156bac9
Use ratbox's match_esc(), this allows \s for space.
2009-03-08 02:14:26 +01:00
Jilles Tjoelker
9bf8f69cc6
Fix close detection with ssl+zip, porting more code from ircd-ratbox.
...
This tells the SSL ssld to report connection closure to ircd
using the new fd.
2009-03-07 03:23:17 +01:00
Jilles Tjoelker
0b1e46f5b4
Allow /rehash throttles to clear throttling.
2009-03-07 01:49:09 +01:00
Jilles Tjoelker
dbbe21ed03
Rework remote rehash messages to apply to all server notices during rehash.
...
Previously various notices such as those applying
to modules were not sent to the remote oper.
2009-03-07 01:27:05 +01:00
Jilles Tjoelker
76caaecbba
Remove unused declaration.
2009-03-03 22:26:45 +01:00
Jilles Tjoelker
dea418e9b4
Add channel::only_ascii_channels config option
...
to restrict channel names to printable ascii only.
Like disable_fake_channels this only applies to joins
by local users; unlike disable_fake_channels it applies
to opers as well.
2009-02-22 00:12:21 +01:00
Jilles Tjoelker
2a003301de
Avoid unnecessary const violation.
2009-02-22 00:05:48 +01:00
Jilles Tjoelker
1a4058095d
Fix an off by one error with zipstats processing
...
from ircd-ratbox (androsyn)
2009-02-07 23:26:05 +01:00
Jilles Tjoelker
6b2cf989b6
Disable autoconnect for a server with excessive TS delta.
...
Note that in some cases (different TS delta settings,
heavy lag) it is possible only one of the servers
detects the problem and autoconnect may be left enabled.
The mechanism used for disabling is the same as
/quote set autoconn <server> 0; the A flag in /stats c
disappears and a rehash or /quote set autoconn can put
it back.
2009-02-05 23:43:07 +01:00
Jilles Tjoelker
4ffad8e6cc
Warn about auth blocks after a *@* auth and duplicate auth blocks.
2009-01-31 18:42:03 +01:00
Jilles Tjoelker
af2484840a
Remove comments related to (removed) ability to disable TS6.
2009-01-30 16:50:00 +01:00
Jilles Tjoelker
1ba281712f
For remote rehashes, send error messages to the requesting oper as well.
2009-01-30 00:11:12 +01:00
Jilles Tjoelker
12c4f819fa
Log unknown class in auth errors to ircd.log as well.
2009-01-29 23:53:20 +01:00
Jilles Tjoelker
0f3f5496b8
Remove obsolete comment.
2009-01-25 21:02:04 +01:00
Jilles Tjoelker
8d03179e4f
Only kill unknown prefix UIDs that start with a valid SID
...
(existing and behind the link that sent the prefix).
Also require them to be exactly 9 characters long.
2009-01-22 00:27:27 +01:00
Jilles Tjoelker
f8283571ad
Simplify hunt_server(), send ERR_NOSUCHSERVER from only one place.
2009-01-21 20:15:07 +01:00
Jilles Tjoelker
ac408af6cb
Update comments for parv[0] removal.
2009-01-18 18:22:43 +01:00
Jilles Tjoelker
564b19bf9a
If a privset is removed from ircd.conf, wipe its privs.
...
(Privsets continue to exist as long as they are referenced.)
2009-01-18 01:39:41 +01:00
Jilles Tjoelker
3619e29987
Change /stats O to show privset blocks (oper only).
...
To show operator blocks, only /stats o (lowercase) now works.
2009-01-18 01:35:24 +01:00
Jilles Tjoelker
6e749518bb
burst_TS6(): assume users have a UID
2009-01-16 23:11:11 +01:00
Jilles Tjoelker
cffd37ee37
[ratbox3 svn r26397] Make it more likely that error messages on ssld connections get through.
...
When ssld reports a connection closure because of
"Remote host closed the connection" and the connection
is any server or a registered client, try a
read_packet() on the client.
This should mainly help LIBRB_USE_IOTYPE=poll which
iterates over the ready file descriptors in numerical
order, processing the ssld control connection before the
closing data connection.
2009-01-15 20:08:46 +03:00
androsyn
6f3b64079f
[svn r26332] get rid of the zip ready stuff
2009-01-01 14:50:21 +03:00
Aaron Sethman
62271ba929
re-enable ziplinks + ssl
2008-12-13 23:20:59 +03:00
Jilles Tjoelker
d5e5bfc851
Update some copyright years.
2009-01-01 22:48:50 +01:00
Jilles Tjoelker
3471ceb507
Allow opers to see other users umodes with /mode <nick>.
...
If the other user is local, the snomask is also shown.
2009-01-01 19:24:38 +01:00
Jilles Tjoelker
53ece38bb1
Remove redundant check.
...
Surely, if source_p == target_p, then target_p->from == source_p->from.
2008-12-28 18:36:41 +01:00
Jilles Tjoelker
064c191ad2
Make sure default privset remains available, fixes various crashes
...
with default/invalid privsets and rehashing.
2008-12-27 23:13:48 +01:00
Jilles Tjoelker
7b52cd51d5
Put libratbox version on startup in a nicer place.
2008-12-22 21:50:21 +01:00
Valeriy Yatsko
b0ef251cda
[ratbox3 svn r26284 by androsyn] spew the libratbox version info on -version and at startup
2008-12-22 12:58:33 +03:00
Jilles Tjoelker
760ef9e1ea
Show rejectcache/throttle in /testline output.
...
This adds more RPL_TESTLINE numerics with code '!'.
Different from the other results, the I/K line or
RESV will be shown as well.
2008-12-19 19:24:12 +01:00
Jilles Tjoelker
84bfb8ccb3
Only count throttle entries that cause rejection in /stats t.
2008-12-16 21:10:09 +01:00
Jilles Tjoelker
76d4968137
Show throttle info in /stats t.
...
from ircd-ratbox (androsyn)
2008-12-16 21:02:04 +01:00
Jilles Tjoelker
543b8c392c
Make rehashing privset{} change online oper privileges.
...
This also fixes memory leak due to multiple privsets
with the same name (added after each rehash).
2008-12-14 18:25:15 +01:00
Jilles Tjoelker
0ba0bb4ce0
Unref privset of quitting oper.
2008-12-14 17:31:42 +01:00
androsyn
0dc49ff2f4
cast getpid() to int
2008-12-10 12:46:23 +03:00
Aaron Sethman
5274a6d761
report logfile access issues
...
committer: Valeriy Yatsko <dwr@it-penza.org>
2008-11-16 10:15:28 +03:00
Valeriy Yatsko
4e2fdb1f81
Branch merge.
2008-12-03 02:59:26 +03:00
Valeriy Yatsko
3b0f3294cf
Remove irc_basename, replace it with rb_basename from libratbox.
2008-12-03 02:59:13 +03:00
Jilles Tjoelker
2cf629d9b5
Put back conditionally netwide ssld error snote.
2008-12-03 00:55:58 +01:00
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