Bram Matthys
ebaac5a6b8
Get rid of various never used config options and also port
...
the U4 fix for Windows where it says "Too many connections"
way too quickly. (Sorry for mixing both in 1 commit..)
2019-08-25 17:48:32 +02:00
Bram Matthys
38b55fb3c5
Not ready for release yet, but bump git version to alpha2 already now that
...
the Windows build is working (5.0.0-alpha1 had no Windows build).
2019-08-25 14:38:02 +02:00
Bram Matthys
6ead10f42d
Windows: build with /WX (equivalent to -Werror) and turn on
...
/analyze again. Not sure how long I can bear that last one though
as now compilation takes about 15 minutes rather than a few.
2019-08-25 14:03:11 +02:00
Bram Matthys
8484511296
Make Windows build compile without warnings with /W3
...
Disable these warnings, though:
C4267: downgrade of size_t to int and such. pointless...
C4101: unreferenced local variable
C4018: signed/unsigned mismatch
C4244: implicit conversions with "possible loss of data".
there are 75+ of them and they are likely all harmless
and/or intentional (usually plain obvious too)
C4996: fixme! warnings about deprecated functions, currently only for GetVersion..
2019-08-25 13:00:31 +02:00
Bram Matthys
6f884a6f60
Windows build: cannot pass by reference directly.
...
Solves:
warning C4133: 'function': incompatible types - from 'long *' to 'const time_t *const '
2019-08-25 10:36:17 +02:00
Bram Matthys
c7a057cab1
Fix for previous commit (windows makefile etc..).
2019-08-25 10:23:25 +02:00
Bram Matthys
33dc939a6d
Windows build: remove more warnings. Update Makefile.windows.
2019-08-25 10:04:57 +02:00
Bram Matthys
dea31523e3
Add some (redundant) information regarding the last ./Config question.
...
[skip ci]
2019-08-24 20:02:47 +02:00
Bram Matthys
d357ef8957
More config.h cleanups. Lower kill chase time limit from 90 to 30
...
which seems more reasonable to me.
2019-08-24 19:57:40 +02:00
Bram Matthys
153e38be10
Get rid of "max sendq" ./Config question, which actually was only
...
setting the default class::sendq that pretty much everyone overrides
in class (isn't this even required? ;D).
Rename to DEFAULT_SENDQ since we have DEFAULT_RECVQ too.
2019-08-24 19:50:39 +02:00
Bram Matthys
d19b4e70ad
Remove old and broken option SHOW_INVISIBLE_LUSERS
2019-08-24 19:45:26 +02:00
Bram Matthys
d06715d9ee
REMOTEINC_SPECIALCACHE is no longer optional
2019-08-24 19:41:14 +02:00
Bram Matthys
9e02ca2b3c
More FORMAT_STRING() checking, get rid of old (non-)USE_VARARGS stuff.
...
Fix some more bugs (type differences) when compiling in DEBUGMODE.
2019-08-24 19:37:25 +02:00
Bram Matthys
a3b5f29626
Mass change of time_t in printf-like functions to %lld with an
...
explicit cast to (long long). On *NIX we could get away with
lazily assuming time_t is of the same length as long (and use %ld),
even though the specification says nothing about it.
Unfortunately on Windows things are not that simple:
'time_t' is 'long long' (64 bits) and both 'int' and 'long'
are 32 bits, even when compiling in 64 bit mode.
This problem could be 'fixed' in multiple ways:
One way would be to minimize the usage of time_t and use 'long long'
or 'uint64_t' everywhere for variables to minimize casting later.
I, however, chose to maintain 'time_t' for most of time grabbing
and time calculations (eg: delta), and do the explicit cast in
any printf-like functions that may be there.
Both solutions work. I mostly like the explicit time_t look, so one
can immediately recognize a variable relates to time.
2019-08-24 18:33:52 +02:00
Bram Matthys
85b3b91b19
Windows build: Add format string verification during build.
...
(Will be used to hunt and fix those time_t integer type mismatches)
2019-08-24 17:10:44 +02:00
Bram Matthys
1f99b282b0
Similarly, get rid of DISABLE_STACKED_EXTBANS ./Config question since
...
that define no longer exists...
2019-08-23 20:39:27 +02:00
Bram Matthys
444c4f4381
Get rid of some old/rarely used ./Config shit
2019-08-23 20:37:27 +02:00
Bram Matthys
a6eac922ea
Remove unused function create_snomask()
2019-08-23 20:28:48 +02:00
Bram Matthys
ccf80d16f2
SnomaskAdd(): remove 3rd argument (unset_on_deoper), as all snomasks
...
are IRCOp-only now, they will always be removed on deoper.
-extern Snomask *SnomaskAdd(Module *module, char ch, int unset_on_deoper, int (*allowed)(aClient *sptr, int what), long *mode);
+extern Snomask *SnomaskAdd(Module *module, char ch, int (*allowed)(aClient *sptr, int what), long *mode);
2019-08-23 20:23:54 +02:00
Bram Matthys
e889a07849
Updates to ircvsnprintf(): add %lld and remove special handling of %lu.
...
And some re-indenting when we're at it...
2019-08-23 08:41:47 +02:00
Bram Matthys
9a562dea24
Windows: Move the uninstaller to bin\uninstaller
...
Windows: Use generic docs URL for documentation
2019-08-22 20:15:46 +02:00
Bram Matthys
d6faa00ae8
Use generic includes
2019-08-22 19:15:16 +02:00
Bram Matthys
02a4bbc348
Get rid of this stupid 'TS' type, just use 'time_t'.
2019-08-22 18:39:28 +02:00
Bram Matthys
e65f96a9e0
Windows build: 'clean' should really cleanup..
...
[skip ci]
2019-08-22 18:07:53 +02:00
Bram Matthys
8c70769bef
Windows: Use W7 API (or later) so we have inet_pton/inet_ntop.
2019-08-22 18:01:59 +02:00
Bram Matthys
8007a83020
Get rid of include/inet.h and use system headers properly.
2019-08-22 17:48:39 +02:00
Bram Matthys
a1920d7733
Windows installer: require Windows 7 or newer (bye XP/Vista)
...
[skip ci]
2019-08-22 17:34:41 +02:00
Bram Matthys
1c52557c92
Update makecert.bat for Windows with new paths
...
[skip ci]
2019-08-22 17:10:09 +02:00
Bram Matthys
02d3364373
More Windows fixes...
2019-08-22 16:43:05 +02:00
Bram Matthys
d8f080de67
Drop support for systems without snprintf() and vsnprintf()
...
Those are in POSIX.1-2001. Even Windows has them nowadays...
"Our" implementation doesn't even work properly under Win64.
2019-08-22 16:41:39 +02:00
Bram Matthys
f5168b6323
Buildbot: U5: curl-ssl -> curl (always SSL/TLS after all...)
2019-08-22 15:40:03 +02:00
Bram Matthys
b8c6e2e88b
Updates for BuildBot on Windows:
...
32 to 64 bit transition, visual studio 2019 and some directory name
updates as we now put all the shit in c:\dev\unrealircd-5-libs,
or c:\projects\unrealircd-5-libs in case of buildbot..
2019-08-22 15:34:05 +02:00
Bram Matthys
87b8d27648
Windows: move *.exe and libraries to bin\ directory, move LICENSE.txt
...
and Donation.txt to doc\
2019-08-22 15:08:16 +02:00
Bram Matthys
bcceea9065
Windows: build fixes and it is now a 64 bit application.
...
See https://bugs.unrealircd.org/view.php?id=5320
Expect several more major fixes/changes to follow...
2019-08-22 14:43:19 +02:00
Bram Matthys
b87b4dd61a
Windows: Fix path in makecert.bat
2019-08-22 14:37:49 +02:00
Bram Matthys
5e0ed6d626
UnrealIRCd 5.0.0-alpha1
2019-08-20 19:39:04 +02:00
Bram Matthys
71935d6d48
Use +f in +f examples (duh)
...
[skip ci]
2019-08-19 16:41:11 +02:00
Bram Matthys
142289c2de
Let's just call it a database rather than persistent storage file.
...
Also, fix a small memory leak if the database was corrupted.
2019-08-19 16:38:57 +02:00
Bram Matthys
86f7d8c5cc
Document new 'r' (repeat) flood type and 'd' (drop) action in release notes.
...
[skip ci]
2019-08-19 16:28:41 +02:00
Bram Matthys
5a8d231c6d
Floodprot changes (floodprot.c):
...
1) Clean up check_for_chan_flood()
2) Make the new repeat action kick by default (instead of forcing 'b'
if no action is specified)
3) Also make repeat work with timed bans
2019-08-19 16:12:51 +02:00
Bram Matthys
dd5d93ae77
Mostly cleanups / unimportant stuff.
2019-08-19 15:27:03 +02:00
Bram Matthys
7cda4eab53
Fix memory leaks in the new tkldb and channeldb modules.
2019-08-19 15:26:15 +02:00
Bram Matthys
cbea57fefe
Fix read after free in module API code when unloading channel mode,
...
client capability, history backend or message tag for good.
2019-08-19 15:25:12 +02:00
Bram Matthys
6f87314bbf
Funny mistake :D
2019-08-19 10:10:47 +02:00
Bram Matthys
e72845bddf
link::options::tls was not working (an alias for link::options::ssl)
2019-08-18 19:25:42 +02:00
Bram Matthys
fc0c06621b
AppArmor: use a more generic rule for data/ now that we have all these
...
databases, and who knows what else the user has (think: 3rd party modules).
2019-08-18 18:42:33 +02:00
Bram Matthys
d8e121fbc5
Another test commit for buildbot.
2019-08-18 16:51:34 +02:00
Bram Matthys
fac5036d5f
Test commit
2019-08-18 16:40:38 +02:00
Bram Matthys
c27e7fa0dd
Some small README updates.
2019-08-18 11:19:18 +02:00
Bram Matthys
b312a88b0a
Update test framework location
2019-08-18 11:18:52 +02:00