Bram Matthys
609a6600aa
Remove ircd_log(), use unreal_log() instead!
2021-08-11 18:01:00 +02:00
Bram Matthys
4968bf84fe
Newlog: convert those in include/*.h too
2021-08-11 17:59:40 +02:00
Bram Matthys
4198b380f4
Newlog: convert the last ones to ircd_log
2021-08-11 17:55:15 +02:00
Bram Matthys
8d2f20ef41
Newlog: debug.c, match.c, module.c, random.c and then for
...
api-*.c log out of space in all circumstances.
2021-08-11 17:45:01 +02:00
Bram Matthys
ca3c91ca17
Newlog: channel.c, send.c, support.c, windows/gui.c
2021-08-11 17:12:11 +02:00
Bram Matthys
11755b2093
Some variable renaming in start_listeners()
2021-08-11 16:48:44 +02:00
Bram Matthys
9333d4b264
Newlog: fdlist.c, socket.c
2021-08-11 16:48:26 +02:00
Bram Matthys
82f9dc6355
Newlog: misc.c
2021-08-11 16:42:04 +02:00
Bram Matthys
191f81dd63
Newlog: dispatch (io engine)
...
Hopefully no typos anywhere, since the compiler only checks about 1/3rd
of the code since it depends on the backend which code is used.
2021-08-11 16:03:54 +02:00
Bram Matthys
fe21fd6024
Remove sendto_realops_and_log() and map some remaining temporary
...
to sendto_ops_and_log() which will soon disappear too.
2021-08-11 15:47:00 +02:00
Bram Matthys
9a620ef687
Newlog: make "Channel modes changed at runtime", "User modes changed at runtime"
...
match the "Permitted nick characters changed at runtime" log message.
2021-08-11 15:44:26 +02:00
Bram Matthys
9308e5b8a0
Change maximum chanmode +l value to 1 million and "coincidentally" also
...
change the IsInvalidChannelTS() macro to check for this value or lower.
2021-08-11 15:39:15 +02:00
Bram Matthys
9efe590a8e
Newlog and fishy timestamp handling:
...
* New macro IsInvalidChannelTS() which evaluates to ts < 750000
* Check for faulty creation time ("fishy timestamp") at ALL places
where channel->creationtime is set.
* Also, important, changed behavior:
if !IsInvalidChannelTS then:
1) We print our warning
2) We pretend ts is our channel creationtime (which may be
TStime() if the channel did not previously exist)
3) We allow the command through and allow it to merge (in case of SJOIN)
This makes it so we still log the error (noisy) but on the other hand
we won't get "infected" by fishy timestamps since we will never set
them, no matter what happens.
2021-08-11 15:29:45 +02:00
Bram Matthys
471a97c5f6
Newlog: md, monitor, targetfloodprot, watch-backend, watch
2021-08-11 15:11:24 +02:00
Bram Matthys
2f8d6609d5
Newlog: jumpserver.c
2021-08-11 15:03:39 +02:00
Bram Matthys
e5a1a05dcf
Newlog: nick: nick collision stuff
...
Also get rid of server<->nick collision code, as servers are guaranteed
to contain a dot now by valid_server() so this cannot happen anymore.
2021-08-11 13:51:05 +02:00
Bram Matthys
7ef141b06a
Newlog: getting rid of ircd_log in join, jointhrottle, message, sasl
2021-08-11 13:50:41 +02:00
Bram Matthys
c76aa83baa
Newlog: add $client.id (UID / SID)
2021-08-11 13:49:54 +02:00
Bram Matthys
349f5c4823
Newlog: convert kill.c
2021-08-11 13:21:49 +02:00
Bram Matthys
a7668d266b
Newlog: convert sjoin.c
2021-08-11 13:17:17 +02:00
Bram Matthys
21585980e1
Newlog: convert protoctl.c
2021-08-11 13:05:37 +02:00
Bram Matthys
21a95a13a6
Remove benchmarking from textban, nobody needs this anymore
2021-08-11 09:53:20 +02:00
Bram Matthys
74842a89a4
I suppose OPEROVERRIDE_INVITE is more accurate than OPEROVERRIDE_JOIN,
...
or at least more consistent.
2021-08-11 09:24:51 +02:00
Bram Matthys
c9c78a32ed
$client.detail -> $client.details... sigh.
2021-08-11 09:23:27 +02:00
Bram Matthys
d38c10fae0
Fix calls to unreal_log().. LOG_INFO -> ULOG_INFO.. so easy to make this
...
mistake... too easy ;)
2021-08-11 09:21:33 +02:00
Bram Matthys
bbf869eada
Newlog: expand channel data more
2021-08-11 09:20:25 +02:00
Bram Matthys
78f16710c4
Newlog: convert all OperOverride messages (INVITE, KICK, MODE, TOPIC)
2021-08-11 09:13:13 +02:00
Bram Matthys
3f5fd3d5b8
Newlog: add log_data_channel(). TODO: expand a lot more.
2021-08-11 09:12:57 +02:00
Bram Matthys
94f1a232c8
UnrealDB: write v1 header from now on.
...
This means you can downgrade from UnrealIRCd 6.0.0 to 5.2.x
but not to 5.0.9 or lower without loosing the .db files.
That should be acceptable.
2021-08-11 08:40:34 +02:00
Bram Matthys
9db40cd4a0
Newlog: update channeldb, reputation, tkldb
2021-08-11 08:24:12 +02:00
Bram Matthys
8cd3647ae0
Rename mtag.can_send() to mtag.should_send_to_client().
...
This because "can send" is ambigious and could be interpreted to
mean that the client may send this mtag to us, while in fact this
function decided whether to send TO the client.
2021-08-10 18:57:47 +02:00
Bram Matthys
932094de72
Newlog: chgcmds (CHGHOST, CHGIDENT, CHGNAME)
2021-08-10 17:39:52 +02:00
Bram Matthys
48efe353af
Newlog: when there are two clients involved with a clear issuer/target
...
relationship, make the issuer "client" (this was already so) and
the target is "target" (and no longer sometimes "victim").
For consistency, of course :D
2021-08-10 17:34:14 +02:00
Bram Matthys
2d72dd0c00
Newlog: convert blacklist to use newlog
2021-08-10 17:29:23 +02:00
Bram Matthys
798106c805
Avoid logging LINK_DISCONNECTED message twice, and also fix the
...
IP address in the message. We now use ip:port from the link block
if we failed to connect, and otherwise we use the ip from the
connection if the connection is established (also because it
can be a remote connection, not linked directly to us)
2021-08-10 15:08:07 +02:00
Bram Matthys
c5347a554d
Remove some old LOG_* loglevels, now that these are using newlog.
...
Also move SQUIT message to newlog, although this may cause
duplicates, so need to (re-)check later.
2021-08-10 14:54:22 +02:00
Bram Matthys
6e3de0c297
Some reindenting/whitespace in struct.h
2021-08-10 14:48:49 +02:00
Bram Matthys
6e996d7ffb
Remove unused structs: ConfigItem_log, ConfigItem_unknown, ConfigItem_unknown_ex
2021-08-10 14:45:20 +02:00
Bram Matthys
4e5dd044f5
Require module header with version "unrealircd-6" now
2021-08-10 14:37:10 +02:00
Bram Matthys
7063cd0c86
Module coders: add UNREAL_VERSION so you can more easily check UnrealIRCd
...
versions in #ifdef's. Eg: #if UNREAL_VERSION > 0x05020100 to check if >5.2.1
2021-08-10 14:33:10 +02:00
Bram Matthys
f742d08643
Remove some whitespace
2021-08-10 14:25:34 +02:00
Bram Matthys
2c011202a4
Integrate iConf.network in iConf itself as the distinction between
...
these "network settings" and other settings has been lost in time.
Rename some of these variables and macro's.
ircnetwork -> NETWORK_NAME
ircnet005 -> NETWORK_NAME_005
defserv ->? DEFAULT_SERVER
hidden_host -> CLOAK_PREFIX
helpchan -> HELP_CHANNEL
Also one config change (visible to admins):
set::hiddenhost-prefix is now set::cloak-prefix
We still accept the old name, though.
The example conf has been updated as well, but not the wiki yet.
2021-08-10 14:22:42 +02:00
Bram Matthys
a4d9ef3947
Get rid of some shorts. Sorry... i hate these :D.
...
Also get rid of some unused stats struct members.
2021-08-10 14:07:54 +02:00
Bram Matthys
cc8b047819
Remove old client->user->flood stuff as it was moved to client->local->flood
...
a few versions before and is now unused.
2021-08-10 14:00:47 +02:00
Bram Matthys
dca7142152
Rename client->user->lastaway to client->user->away_since
2021-08-10 13:57:44 +02:00
Bram Matthys
c55e65b47b
Remove client->server->timestamp (completely unused)
2021-08-10 13:55:57 +02:00
Bram Matthys
8b19168f1b
Get rid of client->server->up, since client->uplink->name provides the
...
same information.
2021-08-10 13:52:10 +02:00
Bram Matthys
cc1e361ba9
More simplifications / code cleanups in stats.c
2021-08-10 13:32:36 +02:00
Bram Matthys
fa263570a4
Get rid of some debug stuff in stats which i never look at anyway
2021-08-10 13:26:44 +02:00
Bram Matthys
641d514853
Move traffic stats from client->local->sendM/sendK/receiveM/receiveK/sendB/receiveB
...
into a client->local->traffic struct.
2021-08-10 13:22:59 +02:00