Commit graph

  • 82f9dc6355
    Newlog: misc.c Bram Matthys 2021-08-11 16:42:04 +02:00
  • 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. Bram Matthys 2021-08-11 16:03:44 +02:00
  • fe21fd6024
    Remove sendto_realops_and_log() and map some remaining temporary to sendto_ops_and_log() which will soon disappear too. Bram Matthys 2021-08-11 15:47:00 +02:00
  • 9a620ef687
    Newlog: make "Channel modes changed at runtime", "User modes changed at runtime" match the "Permitted nick characters changed at runtime" log message. Bram Matthys 2021-08-11 15:44:26 +02:00
  • 9308e5b8a0
    Change maximum chanmode +l value to 1 million and "coincidentally" also change the IsInvalidChannelTS() macro to check for this value or lower. Bram Matthys 2021-08-11 15:39:15 +02:00
  • 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) Bram Matthys 2021-08-11 15:29:45 +02:00
  • 471a97c5f6
    Newlog: md, monitor, targetfloodprot, watch-backend, watch Bram Matthys 2021-08-11 15:11:24 +02:00
  • 2f8d6609d5
    Newlog: jumpserver.c Bram Matthys 2021-08-11 15:03:39 +02:00
  • e5a1a05dcf
    Newlog: nick: nick collision stuff Bram Matthys 2021-08-11 13:51:05 +02:00
  • 7ef141b06a
    Newlog: getting rid of ircd_log in join, jointhrottle, message, sasl Bram Matthys 2021-08-11 13:50:24 +02:00
  • c76aa83baa
    Newlog: add $client.id (UID / SID) Bram Matthys 2021-08-11 13:49:54 +02:00
  • 349f5c4823
    Newlog: convert kill.c Bram Matthys 2021-08-11 13:21:49 +02:00
  • a7668d266b
    Newlog: convert sjoin.c Bram Matthys 2021-08-11 13:17:17 +02:00
  • 21585980e1
    Newlog: convert protoctl.c Bram Matthys 2021-08-11 13:05:37 +02:00
  • 21a95a13a6
    Remove benchmarking from textban, nobody needs this anymore Bram Matthys 2021-08-11 09:53:20 +02:00
  • 74842a89a4
    I suppose OPEROVERRIDE_INVITE is more accurate than OPEROVERRIDE_JOIN, or at least more consistent. Bram Matthys 2021-08-11 09:24:51 +02:00
  • c9c78a32ed
    $client.detail -> $client.details... sigh. Bram Matthys 2021-08-11 09:23:27 +02:00
  • d38c10fae0
    Fix calls to unreal_log().. LOG_INFO -> ULOG_INFO.. so easy to make this mistake... too easy ;) Bram Matthys 2021-08-11 09:21:33 +02:00
  • bbf869eada
    Newlog: expand channel data more Bram Matthys 2021-08-11 09:20:25 +02:00
  • 78f16710c4
    Newlog: convert all OperOverride messages (INVITE, KICK, MODE, TOPIC) Bram Matthys 2021-08-11 09:13:13 +02:00
  • 3f5fd3d5b8
    Newlog: add log_data_channel(). TODO: expand a lot more. Bram Matthys 2021-08-11 09:12:57 +02:00
  • 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. Bram Matthys 2021-08-11 08:39:46 +02:00
  • 9db40cd4a0
    Newlog: update channeldb, reputation, tkldb Bram Matthys 2021-08-11 08:24:12 +02:00
  • 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. Bram Matthys 2021-08-10 18:57:47 +02:00
  • 932094de72
    Newlog: chgcmds (CHGHOST, CHGIDENT, CHGNAME) Bram Matthys 2021-08-10 17:39:52 +02:00
  • 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 Bram Matthys 2021-08-10 17:33:30 +02:00
  • 2d72dd0c00
    Newlog: convert blacklist to use newlog Bram Matthys 2021-08-10 17:29:23 +02:00
  • 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) Bram Matthys 2021-08-10 15:07:05 +02:00
  • 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. Bram Matthys 2021-08-10 14:54:22 +02:00
  • 6e3de0c297
    Some reindenting/whitespace in struct.h Bram Matthys 2021-08-10 14:48:49 +02:00
  • 6e996d7ffb
    Remove unused structs: ConfigItem_log, ConfigItem_unknown, ConfigItem_unknown_ex Bram Matthys 2021-08-10 14:45:20 +02:00
  • 4e5dd044f5
    Require module header with version "unrealircd-6" now Bram Matthys 2021-08-10 14:37:10 +02:00
  • 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 Bram Matthys 2021-08-10 14:30:02 +02:00
  • 871b581a06
    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 Bram Matthys 2021-08-10 14:31:14 +02:00
  • f742d08643
    Remove some whitespace Bram Matthys 2021-08-10 14:25:34 +02:00
  • 2c011202a4
    Integrate iConf.network in iConf itself as the distinction between these "network settings" and other settings has been lost in time. Bram Matthys 2021-08-10 14:22:42 +02:00
  • a4d9ef3947
    Get rid of some shorts. Sorry... i hate these :D. Also get rid of some unused stats struct members. Bram Matthys 2021-08-10 14:07:54 +02:00
  • cc8b047819
    Remove old client->user->flood stuff as it was moved to client->local->flood a few versions before and is now unused. Bram Matthys 2021-08-10 14:00:47 +02:00
  • dca7142152
    Rename client->user->lastaway to client->user->away_since Bram Matthys 2021-08-10 13:57:44 +02:00
  • c55e65b47b
    Remove client->server->timestamp (completely unused) Bram Matthys 2021-08-10 13:55:57 +02:00
  • 8b19168f1b
    Get rid of client->server->up, since client->uplink->name provides the same information. Bram Matthys 2021-08-10 13:52:10 +02:00
  • cc1e361ba9
    More simplifications / code cleanups in stats.c Bram Matthys 2021-08-10 13:31:17 +02:00
  • fa263570a4
    Get rid of some debug stuff in stats which i never look at anyway Bram Matthys 2021-08-10 13:26:44 +02:00
  • 641d514853
    Move traffic stats from client->local->sendM/sendK/receiveM/receiveK/sendB/receiveB into a client->local->traffic struct. Bram Matthys 2021-08-10 13:22:59 +02:00
  • 420eb2ffb6
    Rename client->serv to client->server: this is set if the client is a server, just like client->user is set if the client is a user. Bram Matthys 2021-08-10 12:52:46 +02:00
  • 0f71381589
    typedef aWhowas -> WhoWas Bram Matthys 2021-08-10 12:44:54 +02:00
  • 90a01ed7f9
    Rename client->local->lasttime to client->local->last_msg_received (Last time any message was received, i.e. the socket was read) Bram Matthys 2021-08-10 12:40:07 +02:00
  • 73f8976a3a
    Rename client->local->firsttime to client->local->creationtime (Time user was created (connected on IRC)) Bram Matthys 2021-08-10 12:38:07 +02:00
  • 43f42edfb7
    Rename client->local->nextnick to client->local->next_nick_allowed Bram Matthys 2021-08-10 12:36:48 +02:00
  • a076e7a93a
    Remove client->local->lastsq since it is unused (only written, never read) Bram Matthys 2021-08-10 12:35:47 +02:00
  • 6b36399533
    Rename client->local->last to client->local->idle_since (Last time a RESETIDLE message was received (PRIVMSG)) Bram Matthys 2021-08-10 12:34:13 +02:00
  • 4dbc2ac860
    Rename client->local->since to client->local->fake_lag, since it is used for fake lag calculations only (well, except for 1 corner case). Bram Matthys 2021-08-10 12:26:19 +02:00
  • 4d947c3e51
    Convert fake lag changes to use void add_fake_lag(Client *client, long msec) Bram Matthys 2021-08-10 12:24:16 +02:00
  • d59cfa092a
    Add terminal_supports_color(), used by logging to terminal code. Bram Matthys 2021-08-10 09:20:00 +02:00
  • e2be262088
    Some more SSL/TLS -> TLS references (for admins, in modules.default.conf) Bram Matthys 2021-08-10 09:19:44 +02:00
  • b751588211
    Use "TLS" in ./Config too Bram Matthys 2021-08-10 09:15:53 +02:00
  • 0495022122
    Still use "SSL/TLS" in HELPOP docs. Bram Matthys 2021-08-10 09:13:35 +02:00
  • 7ad7b36312
    Remove useless ifdef, this was never reached. Bram Matthys 2021-08-10 09:09:21 +02:00
  • 532a9becda
    Massive renames of SSL/TLS and SSL to TLS. People should know the term by now :D Bram Matthys 2021-08-10 09:07:32 +02:00
  • 3832081eed
    Rename client->user->svid to client->user->account. Just as a reminder: don't blindly assume that if anything is set here that the user is logged in, there is IsLoggedIn(client) for that. Reason: if the account name starts with a digit or is "*" then the user isn't actually logged in ;) Bram Matthys 2021-08-10 08:10:50 +02:00
  • 18762446ac
    Add show_event_id_console to enable/disable showing subsys.event_id on console and disable it by default (TODO: make configurable at compile time) Bram Matthys 2021-08-09 18:23:09 +02:00
  • 6c35a4e907
    Newlog: Add coloring of messages on terminal and change order on disk to match the order on IRC. IOTW: subsystem.EVENT_ID and loglevel are now swapped. New log format on disk is: [timestamp] subsystem.EVENT_ID loglevel: message Bram Matthys 2021-08-09 18:00:14 +02:00
  • 28b0283dc2
    Use NameValue for coloring. Bram Matthys 2021-08-09 17:44:04 +02:00
  • b055b862e4
    New: NameValue struct and functions nv_find_by_name() / nv_find_by_value(). These were previously used by the config system as config_binary_flags_search() but can be useful in other areas as well. Bram Matthys 2021-08-09 17:43:15 +02:00
  • 595c1fdf42
    Some more newlog conversions and cleanups of boot screen. Bram Matthys 2021-08-09 17:10:36 +02:00
  • d54c005cda
    Newlog: convert some ircd_log()'s in conf.c Bram Matthys 2021-08-09 17:05:27 +02:00
  • 61ccd94466
    Newlog: convert tls.c to use new log system Bram Matthys 2021-08-09 14:41:35 +02:00
  • 689c528864
    Newlog: add log_data_tls_error() Bram Matthys 2021-08-09 14:15:06 +02:00
  • f1023b6653
    Fix compile warnings with gcc Bram Matthys 2021-08-09 13:43:36 +02:00
  • bc9525528c
    Get rid of report_error() and report_baderror() now that the last function call has been replaced with unreal_log(). Bram Matthys 2021-08-09 12:20:13 +02:00
  • 2d8ae5d43a
    Move some functions from src/socket.c, that don't belong there, to src/serv.c and src/misc.c Bram Matthys 2021-08-09 12:13:30 +02:00
  • 3a9975713a
    Move connect_server() from src/socket.c to src/modules/server.c (efunc) Bram Matthys 2021-08-09 12:10:24 +02:00
  • 88e9b51354
    Newlog: now really finish server.c conversion. Yeah, there were more... Bram Matthys 2021-08-09 11:59:39 +02:00
  • d795bd7d39
    Newlog: finish server.c conversion... and enjoy the new multiline logging :D Bram Matthys 2021-08-09 10:18:25 +02:00
  • 8187c4049f
    Renumber PROTO_'s Bram Matthys 2021-08-09 09:36:15 +02:00
  • f982d06674
    Use json_string_unreal() everywhere instead of json_string() This because in UnrealIRCd we may encounter non-UTF8 sequences, which this function will censor out. Also, this takes care of returning json_null() if the string was NULL, which is usually what we want as well. Bram Matthys 2021-08-09 08:54:50 +02:00
  • 4ad7d02ffa
    Changes to unrl_utf8_make_valid(): 1) No longer impose a static maximum length 2) Caller must provide a work buffer and maximum length 3) Add a strict length check option Bram Matthys 2021-08-09 08:45:05 +02:00
  • 91a3c71d60
    We now (try to) kill the "old" server when a server links in with the same name, handy when the old server is a zombie waiting for ping timeout. Bram Matthys 2021-08-08 20:15:22 +02:00
  • 2c8ef11004
    Newlog: finished server.c conversion, yay. Bram Matthys 2021-08-08 19:34:46 +02:00
  • 93facdcdf4
    Newlog: re-add syslog support Bram Matthys 2021-08-08 17:39:37 +02:00
  • 65e97e4140
    Fix crash in set::server-linking::autoconnect-strategy sequential-fallback when a remote server links to another server. Bram Matthys 2021-08-08 15:57:33 +02:00
  • 41d8a13b19
    Fix crash in set::server-linking::autoconnect-strategy sequential-fallback when a remote server links to another server. Bram Matthys 2021-08-08 15:55:05 +02:00
  • a198d99850
    Newlog: SLOG: actually use the JSON "msg" instead of parv[4] Bram Matthys 2021-08-08 15:21:41 +02:00
  • f501772cbe
    Whoops... remove multi-line logging test code :D Bram Matthys 2021-08-08 15:11:34 +02:00
  • 53e283082f
    For IRCOps with unrealircd.org/json-log: in case of a multi-line message we will now only send the JSON in the first message. Bram Matthys 2021-08-08 15:08:50 +02:00
  • bc9e17aeb0
    Add multiline support to unreal_log() Any \n's will be expanded to multiple lines. * For JSON disk logging there is no change. * For text disk logging it will show as: [time] facility subsys.CODE+ [time] facility subsys.CODE+ [time] facility subsys.CODE So a plus sign is added if another message is to follow. * For notices to opers/snomasks exactly the same (plus sign if needed). Bram Matthys 2021-08-08 12:04:41 +02:00
  • 01542cdf77
    Add line2multiline() which takes a string with \n's and returns a MultiLine linked list. Bram Matthys 2021-08-08 11:28:54 +02:00
  • 2eb1f97d25
    Newlog: server.c: Use SERVER_LINKED_REMOTE for remote links as they use a slightly different format and you may want to exclude these from certain logging. Also mention the correct uplink there. Bram Matthys 2021-08-08 11:15:44 +02:00
  • bac8b297c7
    Newlog: more server.c conversions (all local server connect rejects done) Bram Matthys 2021-08-08 11:02:44 +02:00
  • 12adca5817
    Set client->name early to provided servername and drop the servername argument from verify_link() since now you can just use client->name. Bram Matthys 2021-08-08 10:15:59 +02:00
  • a339efad2a
    Add exit_client_fmt() which accepts formatting characters. Bram Matthys 2021-08-08 10:14:48 +02:00
  • f843fc6d23
    Serialize json with JSON_COMPACT. Saves a bit of room, especially when the JSON travels over network this maybe save some "crucial" bytes (and in that case it looks better too, since the \s's in message tags only make it less readable). Bram Matthys 2021-08-07 18:13:31 +02:00
  • d17db626b3
    Add some notes for the release notes (:D) Bram Matthys 2021-08-07 17:48:48 +02:00
  • fbe3d6124b
    Add unrealircd.org/json-log CAP, which sends JSON logs to IRCOps. This basically enhances the regular snomask/ircop notices with JSON logs, the same logs that are logged to disk (with type 'json'). This allows bots/machines to much more easily parse server notices such as connect notices or.. anything. Bram Matthys 2021-08-07 17:30:04 +02:00
  • ab180b086c
    Rename recently added mtag: s2s/json -> unrealircd.org/json-log Bram Matthys 2021-08-07 17:16:59 +02:00
  • adfa81ee07
    Get rid of >1024 msg length check in sendbufto_one. Bram Matthys 2021-08-07 17:15:09 +02:00
  • fb9af08e83
    Add coloring to snomask/ircop messages based on log level. This will later be configurable, of course. Bram Matthys 2021-08-07 16:15:29 +02:00
  • 9885af1486
    Validate and rewrite remotely received JSON via SLOG cmd. This makes it use OUR timestamp, so timestamps in logs are properly sequential. The originial timestamp is saved in "original_timestamp". Finally, we (over)write "log_source" with the remote server name. Bram Matthys 2021-08-07 15:49:29 +02:00
  • b75f6b4086
    Newlog: add "log_source" Bram Matthys 2021-08-07 15:49:12 +02:00
  • 64180d8a2c
    Send and receive json as well in SLOG server to server message. TODO: validate JSON Bram Matthys 2021-08-07 15:22:06 +02:00