Bram Matthys
|
709c7e890e
|
Use match_user() for is banned checking. This also makes CIDR work in bans/exempt/invex.
Remove ban_realhost, ban_virthost, ban_cloakhost and ban_ip stuff. Should be just as fast if you use match_user() now.
|
2015-07-28 13:39:56 +02:00 |
|
Bram Matthys
|
58b864edd5
|
Re-do CIDR and at the same time all the user matching stuff. Introducing match_user(mask, acptr, options): this should be used everywhere rather than the many DIY routines everywhere that create a nick!user@host and then run a match() on it.
The match_user() function is not been fully tested yet, at this point I'm happy we can compile again.
|
2015-07-28 13:26:03 +02:00 |
|
Bram Matthys
|
26bdea371e
|
Start of "try to use IP strings rather than IPv4/6 specific code". Just a start, would do more but my pizza is ready.
|
2015-07-27 18:51:13 +02:00 |
|
Bram Matthys
|
012413313c
|
fix loopback checking
|
2015-07-27 18:42:28 +02:00 |
|
Bram Matthys
|
5bfa5c701e
|
Never understood why it's called get_sockhost() if it actually sets it. Renamed to set_sockhost()
|
2015-07-27 18:30:25 +02:00 |
|
Bram Matthys
|
55af91a4ce
|
ensure acptr->ip is set (probably useless change, but better safe than sorry). fix incorrect comment.
|
2015-07-27 18:13:13 +02:00 |
|
Bram Matthys
|
a613a29b02
|
Ensure people don't run 'make' from the wrong directory. Reported by hyperi0n.
|
2015-07-26 14:14:39 +02:00 |
|
Travis McArthur
|
91c6b0025e
|
Fix compile failure on BSD/OSX
|
2015-07-25 19:52:13 -07:00 |
|
Travis McArthur
|
8597e78038
|
Fix #0004382 - config_checkval in sendq,recvq
|
2015-07-25 19:42:20 -07:00 |
|
Daniel Tan
|
8417ddf0b9
|
Another case of atol -> config_checkval
|
2015-07-26 09:00:40 +08:00 |
|
Bram Matthys
|
33f1322def
|
Whoops. Back out m_user cleanup from an hour ago. We call m_user() at a few places (ugly ugly). Will take a look at this again another time I guess..
|
2015-07-25 20:41:59 +02:00 |
|
Bram Matthys
|
40354d0459
|
Hmmm. This doesn't work. Look at it again later, I like the warning, just want the option to ignore it.
|
2015-07-25 20:38:52 +02:00 |
|
Bram Matthys
|
85dceb0bae
|
mark some stuff with __attribute__((warn_unused_result))
|
2015-07-25 20:29:04 +02:00 |
|
Bram Matthys
|
2a53499610
|
Get rid of useless DLLFUNC prefixes (at places where they were not needed)
|
2015-07-25 20:23:37 +02:00 |
|
Bram Matthys
|
fd375ee284
|
Use CMD_FUNC() everywhere
|
2015-07-25 20:22:44 +02:00 |
|
Bram Matthys
|
4ad0ef4c65
|
use pclose after popen and not fclose .. :)
|
2015-07-25 19:41:15 +02:00 |
|
Bram Matthys
|
80d3205a72
|
blah. enough small things now.
|
2015-07-25 19:26:24 +02:00 |
|
Daniel Tan
|
19faef887d
|
This one is supposed to use config_checkval too. Thanks for pointing out
|
2015-07-26 01:16:23 +08:00 |
|
Bram Matthys
|
35aff98d10
|
really don't care about return value
|
2015-07-25 19:13:34 +02:00 |
|
Bram Matthys
|
c480ee5b91
|
fix silly warning. was safe, parv[1] can never exceed BUFSIZE (512), duh.
|
2015-07-25 19:12:29 +02:00 |
|
Bram Matthys
|
b1a1c51f4e
|
wow.. that's a lot of lines to do something simple @ m_vhost :D
|
2015-07-25 19:10:48 +02:00 |
|
Bram Matthys
|
4573a61518
|
cleanup m_vhost
|
2015-07-25 19:08:19 +02:00 |
|
Bram Matthys
|
83a2caea3e
|
cleanup m_user. Remove very old code to deal with remote USER messages from servers
|
2015-07-25 19:02:42 +02:00 |
|
Bram Matthys
|
652795f2c0
|
Fix a bug in spamfilter TKL syncing with non-TKLEXT servers (non-unrealircd's).
|
2015-07-25 18:49:28 +02:00 |
|
Bram Matthys
|
e1160a0260
|
Check FLUSH_BUFFER.
|
2015-07-25 18:36:47 +02:00 |
|
Bram Matthys
|
9a336fa53b
|
cleanup
|
2015-07-25 18:36:23 +02:00 |
|
Bram Matthys
|
ec504a2e49
|
parc wasn't decreased in a mode cutoff routine.
|
2015-07-25 18:29:31 +02:00 |
|
Bram Matthys
|
fd3057a462
|
goto deny; continue; hmmmmm
|
2015-07-25 18:25:41 +02:00 |
|
Bram Matthys
|
13390250ec
|
more of the same
|
2015-07-25 18:24:13 +02:00 |
|
Bram Matthys
|
4f8be613b9
|
cleanup & re-indent m_invite & remove old checks/ifdef's
|
2015-07-25 18:22:10 +02:00 |
|
Bram Matthys
|
55af9ec0a9
|
don't +b if banlist is full @ chanmode +f textflood kickban
|
2015-07-25 18:09:52 +02:00 |
|
Bram Matthys
|
f7ba695625
|
Crash reporter is now working on Windows as well.
|
2015-07-25 12:31:03 +02:00 |
|
Bram Matthys
|
644ddd43ca
|
Windows: use crash handler for abort() calls as well (this needs to be improved, but in the meantime...)
|
2015-07-25 10:53:12 +02:00 |
|
Bram Matthys
|
443a8bb734
|
Fix Windows core dump. Stack trace was broken.
|
2015-07-25 10:30:31 +02:00 |
|
Bram Matthys
|
fb0662f67c
|
crash reporter: use HTTPS
|
2015-07-24 22:10:26 +02:00 |
|
Bram Matthys
|
2cb395216a
|
First version of crash reporter. TODO: Windows, SSL (HTTPS), prettify code, ..
|
2015-07-24 21:21:35 +02:00 |
|
Daniel Tan
|
271d116120
|
Use config_checkval instead of atol
|
2015-07-25 02:18:39 +08:00 |
|
Daniel Tan
|
8148d43f6e
|
[#4382] Fix recvq and sendq unable to specify data size prefix (m,k,G)
|
2015-07-25 02:05:22 +08: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
|
5fce302336
|
1) Make firsttime ("online since") the real online since (fixes #2174), 2) Reset fakelag when user comes online.
|
2015-07-23 22:19:28 +02:00 |
|
Bram Matthys
|
7072902844
|
Update version to 3.4-beta2.
|
2015-07-23 14:52:16 +02:00 |
|
Bram Matthys
|
c088dd61e5
|
update release notes for 3.4-beta2
|
2015-07-23 14:48:26 +02:00 |
|
Bram Matthys
|
2164f9ee67
|
Windows version: fix timers not being called at the right time & incorrect time jumped .. seconds ahead warning.
|
2015-07-23 14:22:17 +02:00 |
|
Bram Matthys
|
ac6fa87e2e
|
Fix (likely) crash if using set::options::flat-map because it was missing an argument to the fmt string.
|
2015-07-23 14:00:42 +02:00 |
|
Bram Matthys
|
ecf71f0d4f
|
fix code <1hr back. duh.
|
2015-07-23 13:49:14 +02:00 |
|
Bram Matthys
|
a83ef4eccf
|
Fix oper::mask { one; two; three; }; not working (#4376).
|
2015-07-23 13:25:09 +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
|
5a63808741
|
Don't flood the auth daemon :D
|
2015-07-23 12:41:58 +02:00 |
|
Bram Matthys
|
bdbca8a8dc
|
Fix crash on certain kills. Interesting bug :D
|
2015-07-23 10:37:45 +02:00 |
|