Travis McArthur
b747d00dea
Fix kqueue behavior on fork
2015-10-16 15:32:10 -07:00
Bram Matthys
b428f9b3a3
Windows: wircd.exe -> UnrealIRCd.exe. unreal.exe -> unrealsvc.exe. And some more name changes.
2015-10-11 17:44:49 +02:00
Bram Matthys
42cec683df
Fix crash when you run './unrealircd mkpasswd bcrypt' on the command line. Reported by Eman ( #4403 ).
2015-08-30 09:53:40 +02:00
Bram Matthys
f211a5424a
Accept relative path if you boot the binary with -f cfgfile
2015-08-30 09:50:47 +02:00
Bram Matthys
ad23afc81f
Improve (error) messages shown on console while booting. Fatal boot errors are now shown on the console, no need to check ircd.log.
2015-08-10 21:50:23 +02:00
Bram Matthys
a18596c9b5
Nowadays OpenSSL is using the following official binary compatbility policy: for version A.B.Cd as long as A.B is the same for both runtime & compiled time then it's compatible.
2015-08-09 15:24:20 +02:00
Bram Matthys
8df16d5a83
kill some warnings (mostly bogus)
2015-07-29 15:55:31 +02:00
Bram Matthys
a444964730
Convert TLD code to use match_user(): MOTD OPERMOTD BOTMOTD RULES etc..
2015-07-28 13:50:47 +02:00
Bram Matthys
2cb395216a
First version of crash reporter. TODO: Windows, SSL (HTTPS), prettify code, ..
2015-07-24 21:21:35 +02:00
Bram Matthys
8bea346263
In fix_timers(), called for time jumps, also deal with aconf->hold (outgoing autoconnects). Change throttling flush to a more conservative approach.
2015-07-24 11:57:09 +02:00
Bram Matthys
ecf71f0d4f
fix code <1hr back. duh.
2015-07-23 13:49:14 +02:00
Bram Matthys
eedf7e1eb7
AFAICT all these cases are handled elsewhere (registration timeout, dns timeout, ident timeout) and this code is wrong anyway (and hopefully never triggered)
2015-07-23 13:03:55 +02:00
Bram Matthys
6be099d2b1
Actually wait for the ident response rather than just hope it to arrive in time (which it often won't).
2015-07-23 12:58:33 +02:00
Bram Matthys
13fffa4e1a
split all the local client stuff to acptr->local. makes it a lot easier to catch bugs.
...
If the IRCd crashes then it's likely not by this change but rather an existing issue that was previously gone unnoticed.
2015-07-19 12:48:18 +02:00
Bram Matthys
19ad342a73
Start with client/localclient split
2015-07-19 11:50:32 +02:00
Bram Matthys
c06dc9a142
Get rid of #ifdef CLEAN_COMPILE, along with some other shit
2015-07-16 17:22:51 +02:00
Bram Matthys
3ccb297ba8
in various text: ./unreal -> ./unrealircd
2015-07-16 11:40:54 +02:00
Bram Matthys
dcb0c63bd8
Spamfilter 'u' was broken by nenolod. Literally. snprintf(buf, sizeof(buf), .. where 'buf' is a 'char *'. Fantastic.
2015-07-15 18:34:25 +02:00
Bram Matthys
ef341b1f6d
Link to servers faster after boot. Check links for re-linking more often. Allow connfreq of 5 seconds. Set default to 15. Get rid of HANGONGOODLINK/HANGONRETRYDELAY stuff.
2015-07-14 15:23:28 +02:00
Bram Matthys
02645ac4d6
Make sure people use link::outgoing::options::autoconnect, fix code to use it.
2015-07-14 15:07:18 +02:00
Bram Matthys
fd0821bdc3
this is a better place
2015-07-12 18:27:26 +02:00
Bram Matthys
68ba94c136
Make './unreal backtrace' work again. Hmmm.
2015-07-12 18:07:10 +02:00
Bram Matthys
372ce82335
Make client capabilities a modular sub-system, as it should have been since the beginning.
2015-07-12 17:10:48 +02:00
Travis McArthur
2450909c26
Change name of OperEval...
2015-07-09 12:31:45 -07:00
Bram Matthys
7b02afb3e5
Make MOD_LOAD and MOD_UNLOAD have a useful argument: pass modinfo, just like in MOD_TEST and MOD_INIT.
...
Change MOD_TEST/MOD_LOAD/etc macro's (this breaks all modules). Now just use this:
MOD_INIT(modulename)
{
// you can access modinfo here.. or other stuff...
}
(Similar to the CMD_FUNC() macro)
Rather than:
DLLFUNC int MOD_INIT(name)(ModuleInfo *modinfo)
{
//...
}
2015-07-08 17:57:02 +02:00
Bram Matthys
b04776dc3b
Broadcast PROTOCTL CHANMODES= on change (eg: module loaded or unloaded)
2015-07-04 20:50:57 +02:00
Bram Matthys
5cdf8c7e8c
Merge branch 'unreal34' of github.com:unrealircd/unrealircd into unreal34
2015-06-28 10:42:10 +02:00
Bram Matthys
1a1ef4d0d3
Fix MODVAR stuff on Windows. Fixes a crash.
2015-06-28 10:41:49 +02:00
Travis McArthur
fd5a79a16e
Fix typos
2015-06-27 14:16:25 -07:00
Travis McArthur
dc2b09a334
Remove more IsAnOp/IsOp
2015-06-27 14:06:34 -07:00
Bram Matthys
6facc2173e
1) If there is no client data, still run main loop a bit more often than once per 1-2secs.
...
2) Call DNS routines more often, not just once per second.
2) Slightly lower the DNS timeout, max 2500 + 5000 = 7500ms now. Previously was 3000 + 6000 = 9000ms.
2015-06-27 09:50:52 +02:00
Bram Matthys
8df116f2f1
more win32 fixes
2015-06-26 16:56:59 +02:00
Bram Matthys
82d21bf2d9
Perhaps it would be wise to PING servers. Just an idea, mr nenolod.
2015-06-22 19:05:02 +02:00
Bram Matthys
7844f70775
make tmp and cache actually use TMPDIR and CACHEDIR
2015-06-20 12:13:08 +02:00
Bram Matthys
5e94fc9c72
Move to new directory structure, require 'make install'. (Not complete. Work in progress!)
2015-06-19 13:59:08 +02:00
Bram Matthys
26e0409c4e
Generate larger cloak-keys by default (may not be terribly useful, but why not..).
2015-06-13 16:26:59 +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
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
8049136379
Restructure the entire link { } block ( #4032 ). Initial commit (missing autoconnect, ssl, etc).
2015-05-25 10:19:15 +02:00
Bram Matthys
29f4d5d540
'./unreal mkpasswd' now has 3 possible syntaxes:
...
1) No arguments: UnrealIRCd will prompt you to enter a password and hash
it with the bcrypt algorithm. This is the recommended method.
2) One argument: It will hash the provided password with bcrypt
3) Two arguments: It will use the hashing algorithm of your choice (1st arg)
to hash the provided password (2nd arg)
We recommend to use syntax #1 as bcrypt is the best algorithm available and
by using the prompt the password won't end up in your bash history (or
whatever shell you use) and can't be snooped by other people with a shell
on the same machine (by looking at the process list)
2015-05-23 16:49:11 +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
Bram Matthys
bd65916b5a
more cleanups for AUTHENABLE_*
2015-05-23 09:15:24 +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
Travis McArthur
8035168d5f
Move TKL checking back into run loop
2014-08-24 09:43:40 -07:00
Bram Matthys
b4519cf3d7
wording..
2014-07-20 17:49:47 +02: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
Bram Matthys
7ba2e3214c
First attempt at allowing server to boot if SSL is enabled but the
...
server/client SSL context failed to load (eg: no cert/key file).
2014-07-20 16:50:29 +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