Travis McArthur
8035168d5f
Move TKL checking back into run loop
2014-08-24 09:43:40 -07:00
Adam
5a90859cee
Don't allow changing sid from rehash.
...
Not sure how this was supposed to originally work, if the sid is changed
the uid generator is not re-initied, and even if it was it would allow
id collisions if it ever uplinked to another ircd with the old id it
had.
I see no reason for this.
2014-07-30 11:31:19 -04:00
Adam
7887c1bd60
Fix build with no ssl
2014-07-29 17:48:20 -04:00
Bram Matthys
f2db4e4598
Always (attempt to) write config warnings and errors to the log file. This
...
fixes issues like the IRCd mysteriously not being able to boot up without
any error message, both on *NIX and Windows.
2014-07-20 17:25:22 +02:00
Bram Matthys
11d7b49130
Deny booting/rehashing if using SSL in listen or link blocks.
2014-07-20 17:08:54 +02:00
Travis McArthur
b91f683800
Modularize noinvite (+V) and noknock (+K) in one commit since they share functionality
2014-06-06 22:02:40 -07:00
Heero
e75cb1709d
[4246] Add set::link::bind-ip option to set default bind ip for link blocks
2014-06-03 23:39:30 -07:00
Bram Matthys
14c74561c7
Added set::spamfilter::stop-on-first-match [yes|no]:
...
By default this is set to 'yes' which means that once a spamfilter matches
UnrealIRCd will take action immediately and any additional (other)
spamfilters will not be processed.
When this is set to 'no' then after the first spamfilter match other
spamfilters will still be checked. All of these matches will be logged and a
message will go to IRCOps (snomask +S) for each one. The affected user,
however, will only see one spamfilter action (eg: block or kill) which will
be the spamfilter with the 'gravest action' (gzline is highest, block and
warn are lowest).
2014-01-20 22:10:27 +01:00
Nathan Phillip Brink
51dbf20dc2
Allow set::channel-command-prefix to be an empty string.
2013-12-05 05:19:45 +00:00
Bram Matthys
101d2dd6a3
Big 3.4.x commit containing bug fixes and enhancements. Modularizing
...
user & channel modes. Fixing Windows build. Etc..
2014-05-11 20:56:02 +02:00
William Pitcock
17f2ac31c5
- warning fixes
2013-05-24 23:13:32 +00:00
William Pitcock
afdf5d780a
- Replace ircsprintf() with bounds-checking ircsnprintf(), patch from FalconKirtaran. ( #4208 )
2013-05-21 06:26:52 +00:00
William Pitcock
432afdef0f
- initialize uid subsystem when ircd config is loaded
2013-05-20 21:33:18 +00:00
William Pitcock
40aeea3f0f
- Remove token references from add_Command, msg.h
2013-05-19 21:36:11 +00:00
William Pitcock
853ab1955f
- config_warn() when server link block has deprecated/removed zip option ( #4189 )
2013-05-19 10:46:16 +00:00
William Pitcock
c41ca43145
- Remove ziplinks support, patch from FalconKirtaran. ( #4189 )
2013-05-16 06:36:13 +00:00
William Pitcock
e2b7389455
- Patch from FalconKirtaran to restrict /TSCTL OFFSET to can_tsctl permission ( #2303 )
2013-05-14 08:29:42 +00:00
William Pitcock
2dd9708699
- Remove me::numeric handling from config parser
2013-05-09 01:24:09 +00:00
William Pitcock
a3b869b80a
- Remove numeric support, pass 2.
2013-05-09 01:03:21 +00:00
William Pitcock
cb775e1586
- Remove some config system vestiges. ( #2677 )
2013-05-07 04:35:08 +00:00
William Pitcock
6e6e7d1dc4
- Test that a log file can be created with write permissions. ( #3075 )
2013-05-07 04:19:59 +00:00
William Pitcock
2eb684000f
- Add support for configuring a shorter nick-length. ( #3042 )
2013-05-07 04:12:19 +00:00
William Pitcock
a10f48d470
- Keep the log file open and track it on the FD list. ( #2943 )
2013-05-06 23:49:14 +00:00
William Pitcock
f09c6ef567
- Implement support for TCP_DEFER_ACCEPT (synflood-hardening). ( #4096 )
2013-05-06 04:49:24 +00:00
William Pitcock
65881a9ae2
- Rework module loading to work like Atheme. Split out modules to modules.conf for brevity, though. ( #4163 )
2013-01-17 04:55:41 -06:00
William Pitcock
3bdae5807d
- Remove NEWCHFLOODPROT define and old +f code. ( #3210 )
2013-01-14 03:44:49 -06:00
Bram Matthys
e1ebbf88ed
allow channel: Permit multiple channel items in one block again, was broken by patch from #4125 .
2013-01-11 19:05:36 +01:00
William Pitcock
501d93d6ea
- Add support for providing a DH parameters file. ( #4147 )
...
DH parameters files must be encoded in PEM format, and the path is
set using the ssl::dh config setting. This is based on a patch
submitted by wolfwood, with some modifications to avoid using stdio
unnecessarily and to avoid code duplication.
2012-12-01 22:49:19 -06:00
William Pitcock
ec09c447e5
- Remove defines FAST_BADWORDS_REPLACE, THROTTLING, EXTCMODE. ( #2937 )
...
The code does not compile without them anyway.
2012-11-25 17:45:45 +00:00
William Pitcock
2ea5301896
- Rework the listener system to not use Client table entries.
2012-11-25 02:46:39 +00:00
William Pitcock
c2a9dd3273
- Remove local[] iteration in AllowClient().
2012-11-24 22:32:00 +00:00
William Pitcock
33bffb336f
- Use lists instead of looping on LastSlot in a few places.
2012-11-24 21:19:32 +00:00
William Pitcock
275b4f507d
- Replace oper_fdlist with oper_list.
2012-11-24 20:45:11 +00:00
William Pitcock
9a577aec61
- Move some things over to the lclient_list.
2012-11-22 00:23:25 +00:00
William Pitcock
ffb4fc56f1
- Separate TKL checking from the check_pings event.
...
Instead, run check_tkls() when TKL changes are made directly.
While this is technically slower when more than one TKL is placed
at once, the value of getting it out of the check_pings event is
greater.
2012-11-21 03:08:27 +00:00
William Pitcock
ab5e766d9c
- Replace calls to strncpyzt() macro with more secure strlcpy().
...
This was done using Coccinelle, the semantic patch was:
@@
expression src, dst, len;
@@
- strncpyzt(src, dst, len);
+ strlcpy(src, dst, len);
2012-11-21 03:22:29 +00:00
William Pitcock
dbe7039123
- Remove flush_connections(). It is now obsolete via the async i/o.
...
As a result of removing this, Unreal's CPU usage is reduced by 45% with
10000 local connections.
2012-11-19 22:37:52 +00:00
William Pitcock
98ad590a7f
- Remove nextping, nextconnect, nextblah stuff. Use proper events instead.
2012-11-12 09:35:11 +00:00
Bram Matthys
eb12f79ba3
- Added set::options::disable-cap, which can be used to disable the
...
new CAP support (#4104 ).
2012-10-15 15:29:52 +02:00
Bram Matthys
e81cf14707
- Fix bug where recursive includes would hang the IRCd, patch from
...
binki with some minor modifications, reported by warg (#3919 ).
2012-10-14 11:47:26 +02:00
Bram Matthys
3e9d300086
- Add 'class' option to allow/deny channel so you can allow/deny
...
users based on their class. Patch from fspijkerman (#4125 ).
2012-10-06 12:48:21 +02:00
Nathan Phillip Brink
14315463d1
Add optional oper::require-modes setting to the oper block. ( #4008 by katsklaw)
...
Any attempt to /OPER by someone who doesn't have one of the listed
usermodes is rejected. This can be used to restrict oper blocks to
registered nicks (+r) or secure clients (SSL, +z).
2011-07-13 22:36:04 -04:00
Bram Matthys
982803a6b8
- SASL now needs to be enabled explicitly by setting a set::sasl-server.
...
If this is not set, then SASL is off and not advertised.
If the specified server is not connected, then SASL is off as well.
This prevents unnecessary delay (and the inability for some clients to
get online) when SASL is not in use or when the SASL server is down.
2012-05-07 16:51:03 +02:00
Bram Matthys
719c0f73ae
- Moved nospoof to config file, suggested by and patch from nenolod ( #4078 ).
...
This means ping cookies are now controlled by set::ping-cookie [yes|no].
The default is 'yes' (enabled).
2012-02-26 10:22:19 +01:00
Bram Matthys
9ed1e4fa02
- Throw up an error if a password in the configuration file is too long
...
(max 48 characters), reported by JasonTik, based on patch from
WolfSage (#3223 ).
2011-12-25 16:58:18 +01:00
Bram Matthys
316828edf8
- Config parser failed to check for invalid set::ssl options, reported and patch by fbi ( #4035 ).
2011-12-25 13:20:19 +01:00
binki
6baddddc8e
- Fix set::ssl::options::no-starttls not being recognized.
2010-12-29 18:38:28 +00:00
Bram Matthys
6dab6c11b1
- Error on zero sendq in class::sendq, reported by jonbeard.
2010-12-06 12:47:25 +00:00
Bram Matthys
643355b387
- Added set::options::allow-insane-bans which makes it possible to set
...
really broad bans such as *@*.xx. Needless to say this can be very
dangerous. Reported and patch provided by Stealth (#0003963 ).
2010-11-15 16:23:02 +00:00
Bram Matthys
779444448c
- Clarified the difference between 'except ban' (which exempts from KLINE
...
and ZLINE) and 'except tkl' (which can exempt from GLINE, GZLINE, SHUN,
QLINE, GQLINE and SHUN). Reported by Digerati (#0002535 ).
- Added except tkl::type 'all', which exempts from all TKL types (except
KLINE).
2010-11-15 16:14:20 +00:00