Bram Matthys
00aee86b66
Clean up and document all functions in src/socket.c. Also,
...
remove calls to and the finish_auth() function, which did nothing.
2019-10-25 10:51:18 +02:00
Bram Matthys
599f83cbd4
Move some #define's out of the way, some re-indenting, ..
2019-10-25 09:47:52 +02:00
Bram Matthys
13b5ccda4f
Merge bsd.c into socket.c (delete src/bsd.c).
2019-10-25 09:38:27 +02:00
Bram Matthys
db85de54ca
Remove packet.c, now that it is empty.
2019-10-25 09:33:42 +02:00
Bram Matthys
e6c7fcda7d
Move "real command" stuff to src/api-command.c and move dopacket() to
...
src/parse.c. Also re-order functions in parse.c so they appear in
logical order (1->2->3->4) rather than various helper functions first
and some random order.
2019-10-25 09:32:30 +02:00
Bram Matthys
910477c94a
Don't apply fake lag to servers
2019-10-25 09:13:05 +02:00
Bram Matthys
fb0842216f
Remove old bullet point in release notes that is now mentioned
...
a few lines up. [skip ci]
2019-10-19 18:32:54 +02:00
Bram Matthys
8e3ba03752
Convert remaining GLOBOPS to sendto_umode_global().
...
Yeah, don't worry, the GLOBOPS command will stay too, this is just
an internal cleanup.
2019-10-19 11:50:35 +02:00
Bram Matthys
e0533c5f80
Use client id in SAJOIN and SAPART.
...
This will break logging and oper notices on U4, but we'll deal with that
later in some U4 release.
2019-10-19 11:45:08 +02:00
Bram Matthys
5960c76102
Fix SETNAME not working, reported by s and The_Myth in
...
https://bugs.unrealircd.org/view.php?id=5453
It had the match_spamfilter() logic reversed. I audited all other
calls to the function as well and they are fine.
Also, CHGHOST CHGIDENT CHGNAME SETHOST SETIDENT SETNAME are now
tested by the test framework.
2019-10-19 08:52:59 +02:00
Bram Matthys
04171f7f20
Clean up m_message a bit
2019-10-18 15:00:52 +02:00
Bram Matthys
a72482bbb2
Fix PRIVMSG/NOTICE showing send UID/SID to end-user due to change from
...
a few days ago. Reported by westor.
2019-10-18 14:10:01 +02:00
Bram Matthys
5cd7134cc2
Reject invalid SID from PROTOCTL.
2019-10-18 14:00:46 +02:00
Bram Matthys
9171d58ad0
Some unimportant changes
...
[skip ci]
2019-10-18 13:54:40 +02:00
Bram Matthys
b9d432820b
Update ./Config and the more/less screen, now that release notes are
...
online (or in markdown format, anyway) we can skip some stuff.
2019-10-18 08:42:06 +02:00
Bram Matthys
6dffe38bd3
Update release notes a bit
...
[skip ci]
2019-10-18 08:36:01 +02:00
Bram Matthys
e2158e3608
Fix possible lack of string termination (NUL) in buildvarstring()
2019-10-17 21:01:55 +02:00
Bram Matthys
3a3c5b9c55
Remove an abort()
2019-10-17 07:44:43 +02:00
Bram Matthys
ff067cd826
More kill path stuff gone now.
2019-10-17 07:32:45 +02:00
Bram Matthys
49c2f7c2c3
Get rid of this whole kill path nonsense.
2019-10-16 11:11:46 +02:00
Bram Matthys
bed8a0ca2b
Remove set::oper-only-stats from config. Don't mention set::allow-user-stats
...
there since that is a niche feature that 99% is unlikely to use.
2019-10-14 18:50:24 +02:00
Bram Matthys
d0b9b02d05
We no longer use a blacklist for stats (set::oper-only-stats) but
...
have a whitelist now instead (set::allow-user-stats).
Suggested by tabrisnet, The_Myth and Jobe in
https://bugs.unrealircd.org/view.php?id=3375 and
https://bugs.unrealircd.org/view.php?id=5109
2019-10-14 18:46:14 +02:00
Bram Matthys
63298af6b2
Get rid of BREPORT_xx mess.
2019-10-14 17:36:04 +02:00
Bram Matthys
87406d752b
Fix crash on set::official-channels and deprecate it's use. Use +P channels
...
instead now that all settings are preserved accross restarts.
2019-10-14 16:10:27 +02:00
Bram Matthys
446f9a89c3
Assume password is sent when allow::password is cert/certfp and client
...
has a SSL/TLS fingerprint. Reported by Stealth in:
https://bugs.unrealircd.org/view.php?id=3372
2019-10-14 15:08:37 +02:00
Bram Matthys
43593d12cb
netinfo.c & server.c: use sendto_umode_global() rather than 2 functions.
2019-10-14 12:23:09 +02:00
Bram Matthys
e1b0b0bc8e
Make tracing bugs easier if you used AddListItem twice - or at least
...
detect some cases of it (it will not detect the case where it is
a single-item list).
2019-10-14 08:53:05 +02:00
Bram Matthys
f9ec129bbd
Make hunt_server() use SID/UID for sender and destination.
...
Hopefully this doesn't break anything...
2019-10-14 08:34:16 +02:00
Bram Matthys
1a1ce5716e
Move hunt_server from user.c to serv.c (makes sense).
2019-10-14 08:33:12 +02:00
Bram Matthys
cc36b34f93
Remove unnecessary (void) casts everywhere.
...
Only use (void) for system/library calls that you want to ignore
explicitly, eg (void)close, if the return value is irrelevant.
2019-10-14 08:23:30 +02:00
Bram Matthys
c60bd2e441
Try to use more me.id where possible (rather than me.name)
2019-10-14 08:09:57 +02:00
Bram Matthys
d724bdc492
Finish up changes from yesterday.
2019-10-14 07:49:23 +02:00
Bram Matthys
f40c9f3c88
Change various client->name to client->id in S2S traffic. More to
...
follow tomorrow, including me.name to me.id changes (though these
are far less important) and send.c + non-sendto_server hunts...
2019-10-13 20:41:13 +02:00
Bram Matthys
44f9423e13
Remove ID() macro as client->id always contains a proper UID now.
2019-10-13 20:11:58 +02:00
Bram Matthys
1dde1721ad
Reorder functions in nick.c in a more logical way. No actual code changes.
...
[skip ci]
2019-10-13 19:47:26 +02:00
Bram Matthys
b9a0f938c0
Cleanup cmd_user since it's now client-only and move the server-bits into cmd_uid.
2019-10-13 19:43:41 +02:00
Bram Matthys
a970e5ed9b
Fix far connect notice to IRCOps being in incorrect format.
2019-10-13 18:48:56 +02:00
Bram Matthys
2c337dc58b
Split off cmd_nick in cmd_nick_local and cmd_nick_remote and clean it up.
...
Also, partially cleanup cmd_uid, but still work to be done there (the
last part).
2019-10-13 18:39:10 +02:00
Bram Matthys
746ea5b558
Clean up cmd_server / cmd_sid now that 100% of the network is SID.
2019-10-13 16:22:56 +02:00
Bram Matthys
154aab6ec4
No need for clear functions since PROTOCTL does not allow it.
2019-10-13 09:42:29 +02:00
Bram Matthys
bcfd2ab529
Rip out support for servers lacking TKLEXT/TKLEXT2 (always send TKLEXT2 format)
2019-10-13 09:39:00 +02:00
Bram Matthys
560b73b6f7
Similar to previous commits, but for UMODE2. Actually no change, though,
...
since lack of UMODE2 was not supported in U4 anyway (maybe even 3.2.x).
2019-10-13 09:35:31 +02:00
Bram Matthys
a9890448d8
Rip out support for servers lacking SJ3
2019-10-13 09:33:39 +02:00
Bram Matthys
545c2560e6
Rip out support for servers lacking SIDs/UIDs.
...
More cleanups will follow later for this one.
2019-10-13 09:24:26 +02:00
Bram Matthys
930ede1c86
Rip out support for servers lacking SJOIN/SJOIN2
2019-10-13 09:09:59 +02:00
Bram Matthys
0670bfffb9
Rip out support for servers lacking NICKIP
2019-10-13 08:59:26 +02:00
Bram Matthys
fb4d994f40
Rip out support for servers lacking NOQUIT.
2019-10-13 08:56:05 +02:00
Bram Matthys
8d5f896790
Rip out support for servers lacking NICKv2
2019-10-13 08:54:16 +02:00
Bram Matthys
c9b88343e2
Fix not seeing own nick change if not in any channels. Reported by westor.
2019-10-12 17:26:29 +02:00
Bram Matthys
bbf2cd3a3e
Fix incorrect relaying of numeric replies from remote servers (eg WHOIS nick nick).
2019-10-12 17:18:12 +02:00