Bram Matthys
dd3c4ac4f4
Insert an extra parameter in UmodeAdd and SnomaskAdd to indicate "unset this on de-oper". Safer and better than in XYZ places in the code.
2015-06-21 20:37:53 +02:00
Bram Matthys
c0f18b3e8e
Replace user mode +v ("victim", receive infected DCC notices) with snomask +D (modules/snomasks/dccreject).
2015-06-21 19:48:13 +02:00
Bram Matthys
7f5f26d0d8
Move user mode +R to usermodes/regonlymsg
2015-06-21 11:14:24 +02:00
Bram Matthys
8866793bdb
Move user mode +p to usermodes/privacy
2015-06-21 10:40:25 +02:00
Bram Matthys
8cb381cc8e
Move user mode +S to usermodes/servicebot.
...
TODO: hide channels in /WHOIS and some more testing. Tomorrow.. ;)
2015-06-20 21:09:17 +02:00
Bram Matthys
489230cebf
Move user mode +q to usermodes/nokick
2015-06-20 20:05:33 +02:00
Bram Matthys
10dd6267de
Move user mode +W to usermodes/showwhois
2015-06-20 18:56:08 +02:00
Bram Matthys
69fa434a0c
Removed helpop user mode (not the command) since nowadays it does nothing but add a title to whois. You can use swhois for that, like via vhost::swhois.
2015-06-20 18:42:53 +02:00
Bram Matthys
4ae1eb23f0
Move user mode +B to usermodes/bot module.
...
Also add HOOKTYPE_WHO_STATUS.
2015-06-20 18:30:57 +02:00
Travis McArthur
221bc2a92b
Refactor auth ACL to remove superfluous param
2015-06-14 17:59:37 -04:00
Bram Matthys
501daede0c
move cgiirc block to webirc module and rename the block to webirc { }
2015-06-12 20:16:26 +02:00
Bram Matthys
dbda0eb419
Ask Windows users if they want to automatically upgrade the configuration file(s) [GUI mode]
2015-06-08 10:09:51 +02:00
Bram Matthys
e1b7c34c96
Fix various warnings, including one reported by Adam: possible crash in aliases (introduced 1-2wks ago)
2015-06-07 22:07:00 +02:00
Bram Matthys
bd1747f5c4
Added './unreal upgrade-conf': this will upgrade your 3.2.x configuration files to 3.4.x syntax.
...
Original file is (of course) backed up as .conf.old.
Currently handled changes in this upgrade: loadmodule, me, link, throttle, spamfilter, allow, vhost, oper.
I think those are all right now. Please report any failures / strange issues on bugs.unrealircd.org
2015-06-07 19:34:21 +02:00
Bram Matthys
de59bf47ef
Move all built-in extended bans to modules/extbans/...
2015-06-05 15:38:01 +02:00
Bram Matthys
678268f2a3
Allow multiple masks in link::incoming::mask
...
Make linking code use unreal_mask functions as well. Some fixes.
2015-06-03 10:39:33 +02:00
Bram Matthys
e49563fc7c
Ugly oper::from::userhost is now oper::mask, vhost::from::userhost is now vhost::mask.
...
Coders: added generic mask functions: unreal_mask_match(), unreal_add_masks() and unreal_delete_masks().
These deal with one or multiple masks and do all the work for you ;)
2015-06-03 09:57:24 +02:00
Travis McArthur
6cb5cbfc06
Remove unnecessary cptr in ACLs
2015-06-01 22:44:49 -04:00
Bram Matthys
b96c711aa6
Only send TRE spamfilters ('posix') to 3.2.x servers. Print out a warning if using the new 'regex' or 'simple' types if running a mixed 3.2.x/3.4.x network (or any version older than a few days, actually)
2015-06-01 10:49:04 +02:00
Travis McArthur
574297054c
Modify verification function calls
2015-06-01 00:38:50 -04:00
Travis McArthur
7ca84567fe
Add oper ACL evaluation system
...
Still requires module and core hooks to be added, config test to be added, and to require these for perm validation - this enables core parser and querying of system though
2015-05-31 17:20:28 -04:00
Travis McArthur
d4bb75cd39
Add oper class parser and structs
2015-05-31 17:20:28 -04:00
Bram Matthys
58bd3cf60b
Preparations for #4356 (experimental / on-going):
...
* add general matching framework (aMatch type, unreal_match_xxx functions)
* change spamfilter { } block syntax
* add support for simple wildcard matching (non-regex, just '?' and '*')
This is the initial commit so the new lib is not in yet, 'regex' is not
functional (but 'posix' and 'simple' are working), linking has not been
fully tested and no warnings are printed yet. IOTW: work in progress!
2015-05-30 21:11:11 +02:00
Bram Matthys
3623ebae05
Add protection against SSL Renegotiation attacks ( #4046 ). Reported by seraph.
...
Also expose dead_link() to modules, IOTW: make it non-static.
2015-05-23 19:04:41 +02:00
Bram Matthys
4a38d0c838
make auth-type optional for passwords in config ( #4334 ).
...
Now you can just add password "$ZaJw56to$uSEc[etc..]"; to your configuration file without needing an explicit { md5; }; or { sha1; };.
Naturally you can still specify an auth-type if you want to, and for types like 'sslclientcert' it's still required.
2015-05-23 15:07:37 +02:00
Travis McArthur
aea09603a4
Remove USE_SSL macro and associated code
...
We no longer support non-SSL builds, remove related code
2015-05-20 02:48:34 -04:00
Adam
996c084d6f
Fix secureonly
2014-08-26 10:46:45 -04:00
Travis McArthur
8035168d5f
Move TKL checking back into run loop
2014-08-24 09:43:40 -07:00
Bram Matthys
94a6305880
Added config_report_ssl_error() which is now used when we failed to (re)initialize
...
SSL, may print a bit more meaningful errors (though rather long and obscure).
2014-07-20 17:45:58 +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
ec294b1373
Fix build for clang
2014-07-05 12:47:03 -07:00
Travis McArthur
334763c21c
Modularize nonotice (+T)
2014-06-28 23:34:14 -07:00
Bram Matthys
de3f9b9cc2
- Add server synching and broadcast functions for new ModData system.
...
- Also added an example module for coders (m_mdex), not compiled by default.
2014-06-01 20:06:28 +02:00
Bram Matthys
e21298ea71
- First version of ModData system that allows modules to attach data to
...
structs such as Client, Channel, Member and Membership.
- Modules that define channel modes no longer need to be permanent. This
was already true for paramless chmodes, but is now true for all.
- Converted floodprot module (chmode +f) to use MoData. This means some
remains could be purged from the core and the module is now fully
reloadable (no longer permanent).
- This code is experimental, but seems to work...
2014-06-01 17:34:16 +02:00
Bram Matthys
65d5569ef0
First attempt at parse_chanmode(), meant for 3rd party module coders.. and
...
who knows it may be useful for ourselves too.
2014-05-29 22:05:15 +02: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
afdf5d780a
- Replace ircsprintf() with bounds-checking ircsnprintf(), patch from FalconKirtaran. ( #4208 )
2013-05-21 06:26:52 +00:00
William Pitcock
b02069f944
- Generate UIDs for local clients.
2013-05-20 22:00:24 +00:00
William Pitcock
93737c2f28
- Implement proposed invite-notify CAP.
2013-05-20 18:22:35 +00:00
William Pitcock
1698007836
- Add HOOKTYPE_INVITE
2013-05-20 18:07:25 +00:00
William Pitcock
5a0891a1f7
- Remove some old vestiges of the old dbuf code.
2013-05-20 16:30:10 +00:00
William Pitcock
691503dc3e
- remove 'trouble reporting system' used by old dbuf code. new dbuf code cannot have a malloc failure due to memory pooling.
2013-05-20 05:08:59 +00:00
William Pitcock
61fe014771
- Remove sendto_server_butone() and friends, now everything uses sendto_server(). ( #4202 )
...
Patch from FalconKirtaran.
2013-05-20 01:21:45 +00:00
William Pitcock
47e5ac9734
- Remove sendto_serv_sjoin() and sendto_serv_butone_sjoin().
2013-05-19 23:12:27 +00:00
William Pitcock
c843ebe36a
- Remove sendto_serv_butone_quit() from headers too
2013-05-19 22:17:06 +00:00
William Pitcock
65bbf390ce
- Add sendto_server() to replace all the old sendto_foo() crap.
2013-05-19 21:59:45 +00:00
William Pitcock
40aeea3f0f
- Remove token references from add_Command, msg.h
2013-05-19 21:36:11 +00:00
William Pitcock
a9ce94de9b
- Remove sendto_channelprefix_butone_tok().
2013-05-19 20:59:29 +00:00
William Pitcock
061c405172
- Remove base64enc() and friends, as they are no longer used. Patch from FalconKirtaran ( #4199 ).
2013-05-19 10:36:38 +00:00
William Pitcock
6085877aa7
- Remove TS2ts() and %B usage in formatter strings. Patch from FalconKirtaran ( #4197 , #4198 ).
2013-05-19 08:36:49 +00:00