Commit graph

  • dca7142152
    Rename client->user->lastaway to client->user->away_since Bram Matthys 2021-08-10 13:57:44 +0200
  • c55e65b47b
    Remove client->server->timestamp (completely unused) Bram Matthys 2021-08-10 13:55:57 +0200
  • 8b19168f1b
    Get rid of client->server->up, since client->uplink->name provides the same information. Bram Matthys 2021-08-10 13:52:10 +0200
  • cc1e361ba9
    More simplifications / code cleanups in stats.c Bram Matthys 2021-08-10 13:31:17 +0200
  • fa263570a4
    Get rid of some debug stuff in stats which i never look at anyway Bram Matthys 2021-08-10 13:26:44 +0200
  • 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 +0200
  • 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 +0200
  • 0f71381589
    typedef aWhowas -> WhoWas Bram Matthys 2021-08-10 12:44:54 +0200
  • 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 +0200
  • 73f8976a3a
    Rename client->local->firsttime to client->local->creationtime (Time user was created (connected on IRC)) Bram Matthys 2021-08-10 12:38:07 +0200
  • 43f42edfb7
    Rename client->local->nextnick to client->local->next_nick_allowed Bram Matthys 2021-08-10 12:36:48 +0200
  • a076e7a93a
    Remove client->local->lastsq since it is unused (only written, never read) Bram Matthys 2021-08-10 12:35:47 +0200
  • 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 +0200
  • 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 +0200
  • 4d947c3e51
    Convert fake lag changes to use void add_fake_lag(Client *client, long msec) Bram Matthys 2021-08-10 12:24:16 +0200
  • d59cfa092a
    Add terminal_supports_color(), used by logging to terminal code. Bram Matthys 2021-08-10 09:20:00 +0200
  • e2be262088
    Some more SSL/TLS -> TLS references (for admins, in modules.default.conf) Bram Matthys 2021-08-10 09:19:44 +0200
  • b751588211
    Use "TLS" in ./Config too Bram Matthys 2021-08-10 09:15:53 +0200
  • 0495022122
    Still use "SSL/TLS" in HELPOP docs. Bram Matthys 2021-08-10 09:13:35 +0200
  • 7ad7b36312
    Remove useless ifdef, this was never reached. Bram Matthys 2021-08-10 09:09:21 +0200
  • 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 +0200
  • 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 +0200
  • 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 +0200
  • 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 +0200
  • 28b0283dc2
    Use NameValue for coloring. Bram Matthys 2021-08-09 17:44:04 +0200
  • 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 +0200
  • 595c1fdf42
    Some more newlog conversions and cleanups of boot screen. Bram Matthys 2021-08-09 17:10:36 +0200
  • d54c005cda
    Newlog: convert some ircd_log()'s in conf.c Bram Matthys 2021-08-09 17:05:27 +0200
  • 61ccd94466
    Newlog: convert tls.c to use new log system Bram Matthys 2021-08-09 14:41:35 +0200
  • 689c528864
    Newlog: add log_data_tls_error() Bram Matthys 2021-08-09 14:15:06 +0200
  • f1023b6653
    Fix compile warnings with gcc Bram Matthys 2021-08-09 13:43:36 +0200
  • 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 +0200
  • 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 +0200
  • 3a9975713a
    Move connect_server() from src/socket.c to src/modules/server.c (efunc) Bram Matthys 2021-08-09 12:10:24 +0200
  • 88e9b51354
    Newlog: now really finish server.c conversion. Yeah, there were more... Bram Matthys 2021-08-09 11:59:39 +0200
  • d795bd7d39
    Newlog: finish server.c conversion... and enjoy the new multiline logging :D Bram Matthys 2021-08-09 10:18:25 +0200
  • 8187c4049f
    Renumber PROTO_'s Bram Matthys 2021-08-09 09:36:15 +0200
  • 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 +0200
  • 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 +0200
  • 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 +0200
  • 2c8ef11004
    Newlog: finished server.c conversion, yay. Bram Matthys 2021-08-08 19:34:46 +0200
  • 93facdcdf4
    Newlog: re-add syslog support Bram Matthys 2021-08-08 17:39:37 +0200
  • 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 +0200
  • 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 +0200
  • a198d99850
    Newlog: SLOG: actually use the JSON "msg" instead of parv[4] Bram Matthys 2021-08-08 15:21:41 +0200
  • f501772cbe
    Whoops... remove multi-line logging test code :D Bram Matthys 2021-08-08 15:11:34 +0200
  • 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 +0200
  • 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 +0200
  • 01542cdf77
    Add line2multiline() which takes a string with \n's and returns a MultiLine linked list. Bram Matthys 2021-08-08 11:28:54 +0200
  • 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 +0200
  • bac8b297c7
    Newlog: more server.c conversions (all local server connect rejects done) Bram Matthys 2021-08-08 11:02:44 +0200
  • 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 +0200
  • a339efad2a
    Add exit_client_fmt() which accepts formatting characters. Bram Matthys 2021-08-08 10:14:48 +0200
  • 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 +0200
  • d17db626b3
    Add some notes for the release notes (:D) Bram Matthys 2021-08-07 17:48:48 +0200
  • 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 +0200
  • ab180b086c
    Rename recently added mtag: s2s/json -> unrealircd.org/json-log Bram Matthys 2021-08-07 17:16:59 +0200
  • adfa81ee07
    Get rid of >1024 msg length check in sendbufto_one. Bram Matthys 2021-08-07 17:15:09 +0200
  • 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 +0200
  • 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 +0200
  • b75f6b4086
    Newlog: add "log_source" Bram Matthys 2021-08-07 15:49:12 +0200
  • 64180d8a2c
    Send and receive json as well in SLOG server to server message. TODO: validate JSON Bram Matthys 2021-08-07 15:22:06 +0200
  • bac38926a6
    Make compiling with -O0 work again Bram Matthys 2021-08-07 15:21:48 +0200
  • 654a88a53a
    Easy message tags sending restrictions to permit full 4094 bytes. Needed for next commits. Bram Matthys 2021-08-07 15:20:53 +0200
  • 659b553351
    Add slog.c, initial version of S2S logging. Bram Matthys 2021-08-07 14:39:56 +0200
  • 0739af0812
    Add initial remote logging support via SLOG (S2S cmd). Also call the log::destination "remote" instead of "global". Bram Matthys 2021-08-07 14:38:06 +0200
  • 39e45c2be3
    Add newlog TODO item Bram Matthys 2021-08-07 14:14:13 +0200
  • f4af4acb16
    Newlog: fix rehash and memory leak Bram Matthys 2021-08-07 14:01:44 +0200
  • e59cd278cd
    log { } now uses the new log system and is used for logging to disk, snomasks, opers, global (remote), .. Bram Matthys 2021-08-07 13:02:56 +0200
  • b8837844fb
    Newlog: new config plan, ditch set::logging and use log blocks soon. In this commit it is still called logx { }. Will merge them soon into one log { } block. Bram Matthys 2021-08-07 10:39:54 +0200
  • 2aff2727ed
    Re-order matching in log_sources_match() for performance. Bram Matthys 2021-08-07 09:14:32 +0200
  • 839367272a
    Rename $client.nuh to $client.details as it is generic detailed client information and not necessarily nick!user@host in all cases. Bram Matthys 2021-08-06 20:59:54 +0200
  • 33a9b745a8
    Support client.a.b.c.d etc with "infinite" depth (as long as the variable is max 255 characters). This fixes the client connecting notice that previous commit knowingly broke. Bram Matthys 2021-08-06 20:55:57 +0200
  • f38a43434e
    Newlog: expand client.server more, and also move some stuff to client.user Bram Matthys 2021-08-06 20:29:26 +0200
  • c22207c4ca
    Drop cf_ prefix from ConfigFile and ce_ prefix from ConfigEntry structs. Also rename them to describe better what they do. Bram Matthys 2021-08-06 17:50:45 +0200
  • 3eef42c385
    Let's log everything except ULOG_DEBUG on the console when booting. Better than missing an important message. Bram Matthys 2021-08-06 16:24:44 +0200
  • 6d216c3a90
    Validate set::logging better. Bram Matthys 2021-08-06 15:47:51 +0200
  • 1b00ea9137
    Fix module not loading using config_status() instead of config_error() which wasn't logged on the console. Bram Matthys 2021-08-06 15:47:24 +0200
  • 9c210ba3fa
    Merge branch 'unreal60_dev' of github.com:syzop/unrealircd-next into unreal60_dev Bram Matthys 2021-08-06 15:27:46 +0200
  • e75ea8d00e
    Temporarily send to all opers if there is no matching set::logging::snomask nor set::logging::all-opers configuration. Bram Matthys 2021-08-06 15:25:29 +0200
  • 50eaee19a7
    Merge branch 'unreal60_dev' into unreal60_dev+watch k4be 2021-08-06 15:25:13 +0200
  • 55a5574a4b
    Merge branch 'unreal60_dev' into unreal60_dev+watch k4be 2021-08-06 15:23:37 +0200
  • 4c3fa999a7
    use 'all-opers' (not 'all-ircops') to be consistent. Bram Matthys 2021-08-06 15:23:17 +0200
  • f34d3bd861
    Add set::logging block and the logging to snomask mapping. Note that without such a block nothing will be sent to ircops at all (anything that comes from unreal_log anyway). In a later commit either a snomasks.default.conf will be added and/or an internal default mapping. Bram Matthys 2021-08-06 15:17:34 +0200
  • e9ffeb2d33
    Newlog: validate log level, event id and subsystem now. We crash immediately when any of these are wrong. Obviously this should probably be changed to only do it in DEBUGMODE in a final stable release :D Bram Matthys 2021-08-06 11:49:34 +0200
  • bfe9fc49e4
    Fix non-JSON logging (set type 'text' by default) Bram Matthys 2021-08-06 11:29:49 +0200
  • 065d24e248
    In register_user() use client->user->XXX instead of user->XXX. Has always been annoying me.. :D Bram Matthys 2021-08-06 11:11:09 +0200
  • 92757f6d9f
    Newlog: convert local client connects and disconnects. Also makes the connect message and the standard log message consistent. Bram Matthys 2021-08-06 11:05:59 +0200
  • f3035a49f8
    Newlog (JSON): enrich client object with 'reputation' and 'security-groups'. The former is an integer and may not always be available (eg: very early before the user is connected). The latter is an array. Bram Matthys 2021-08-06 11:04:22 +0200
  • 4a72b8f519
    Remove unnecessary debugging/benchmark info from eos, channeldb, reputation, tkldb Bram Matthys 2021-08-06 10:32:42 +0200
  • 088996b16e
    Make ulining an UnrealIRCd server a fatal link error instead of a warning. https://www.unrealircd.org/docs/FAQ#bad-ulines Bram Matthys 2021-08-06 09:39:09 +0200
  • ddf639836b
    Cleanup server.c: make server_sync() function only do the syncing and move the parts that deal with adding lists, tagging as uline etc back to the caller, that is.. cmd_server(). Bram Matthys 2021-08-06 09:36:38 +0200
  • 4de2fa648f
    Some more server_sync cleanups Bram Matthys 2021-08-06 09:32:59 +0200
  • 64f62adb1b
    Code cleanup in server_sync(): cptr -> client Bram Matthys 2021-08-06 09:29:29 +0200
  • cb14b987b6
    Newlog: server.c Bram Matthys 2021-08-06 09:26:33 +0200
  • cfccc8f05c
    Add $client.servername. Also add json_string_possibly_null() which is a wrapper that will return a 'null' JSON object for null strings and otherwise a string object for non-NULL. It seems by default this is not the case which is a bit annoying. Maybe we should re-wrap all code to use this. We'll see. The problem is when this is not done, then a $variable won't be expanded and would show up like literally "$variable" as if the variable was never passed on. Bram Matthys 2021-08-06 09:24:24 +0200
  • 5b44baab1f
    ULOG_WARN -> ULOG_WARNING. Better be consistent. This was the only ULOG_* level that used an abbreviated term. Bram Matthys 2021-08-06 08:50:45 +0200
  • e29fd0afdc
    Show [debug] instead of [???] Bram Matthys 2021-08-05 20:43:02 +0200
  • 29e4f8d56f
    Newlog: FLOOD_BLOCKED (+s +f notices) Bram Matthys 2021-08-05 20:42:24 +0200
  • 970c138711
    Remove fullstatus-on-load from antirandom example conf Bram Matthys 2021-08-05 20:24:50 +0200