Commit graph

  • bac38926a6
    Make compiling with -O0 work again Bram Matthys 2021-08-07 15:21:48 +02:00
  • 654a88a53a
    Easy message tags sending restrictions to permit full 4094 bytes. Needed for next commits. Bram Matthys 2021-08-07 15:20:53 +02:00
  • 659b553351
    Add slog.c, initial version of S2S logging. Bram Matthys 2021-08-07 14:39:56 +02:00
  • 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 +02:00
  • 39e45c2be3
    Add newlog TODO item Bram Matthys 2021-08-07 14:14:13 +02:00
  • f4af4acb16
    Newlog: fix rehash and memory leak Bram Matthys 2021-08-07 14:01:44 +02:00
  • 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 +02:00
  • 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 +02:00
  • 2aff2727ed
    Re-order matching in log_sources_match() for performance. Bram Matthys 2021-08-07 09:14:32 +02:00
  • 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 +02:00
  • 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 +02:00
  • f38a43434e
    Newlog: expand client.server more, and also move some stuff to client.user Bram Matthys 2021-08-06 20:29:26 +02:00
  • 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 +02:00
  • 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 +02:00
  • 6d216c3a90
    Validate set::logging better. Bram Matthys 2021-08-06 15:47:51 +02:00
  • 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 +02:00
  • 9c210ba3fa
    Merge branch 'unreal60_dev' of github.com:syzop/unrealircd-next into unreal60_dev Bram Matthys 2021-08-06 15:27:46 +02:00
  • 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 +02:00
  • 50eaee19a7
    Merge branch 'unreal60_dev' into unreal60_dev+watch k4be 2021-08-06 15:25:13 +02:00
  • 55a5574a4b
    Merge branch 'unreal60_dev' into unreal60_dev+watch k4be 2021-08-06 15:23:37 +02:00
  • 4c3fa999a7
    use 'all-opers' (not 'all-ircops') to be consistent. Bram Matthys 2021-08-06 15:23:17 +02:00
  • 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 +02:00
  • 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 +02:00
  • bfe9fc49e4
    Fix non-JSON logging (set type 'text' by default) Bram Matthys 2021-08-06 11:29:49 +02:00
  • 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 +02:00
  • 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 +02:00
  • 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 +02:00
  • 4a72b8f519
    Remove unnecessary debugging/benchmark info from eos, channeldb, reputation, tkldb Bram Matthys 2021-08-06 10:32:42 +02:00
  • 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 +02:00
  • 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 +02:00
  • 4de2fa648f
    Some more server_sync cleanups Bram Matthys 2021-08-06 09:32:59 +02:00
  • 64f62adb1b
    Code cleanup in server_sync(): cptr -> client Bram Matthys 2021-08-06 09:29:29 +02:00
  • cb14b987b6
    Newlog: server.c Bram Matthys 2021-08-06 09:26:33 +02:00
  • 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 +02:00
  • 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 +02:00
  • e29fd0afdc
    Show [debug] instead of [???] Bram Matthys 2021-08-05 20:43:02 +02:00
  • 29e4f8d56f
    Newlog: FLOOD_BLOCKED (+s +f notices) Bram Matthys 2021-08-05 20:42:24 +02:00
  • 970c138711
    Remove fullstatus-on-load from antirandom example conf Bram Matthys 2021-08-05 20:24:50 +02:00
  • 01e86d547d
    Cleanup antirandom a bit (hardly used status on load option, and lots of debugging). Also add newlog. Bram Matthys 2021-08-05 20:16:27 +02:00
  • 55f2ef502e
    Newlog: add $client.info (gecos/realname for users, info on servers) Bram Matthys 2021-08-05 20:16:09 +02:00
  • 0bdf1e3c35
    Newlog: tls_antidos Bram Matthys 2021-08-05 20:15:54 +02:00
  • e341903e53
    Newlog: update connthrottle Bram Matthys 2021-08-05 17:45:04 +02:00
  • d3bd525eef
    Fix "You were forced to part" message on SAPART that was accidentally deleted Bram Matthys 2021-08-05 17:30:36 +02:00
  • 4115eaf483
    Use memory pool for channels Bram Matthys 2021-08-05 17:20:24 +02:00
  • 6ba6a8fd9a
    Fix memory leak due to unreal_log() / unreal_log_raw() last argument being NULL. This is a vararg argument and it causes a leak when running in debug mode because we add some magic source file, source line number and function. Bram Matthys 2021-08-05 17:05:25 +02:00
  • 3c7112469b
    Drop 2nd argument to find_channel which was always NULL everywhere anyway. Bram Matthys 2021-08-05 17:02:39 +02:00
  • 8dd6640bf5
    Rename get_channel() to make_channel() to match make_user() and change some more calls to make_channel() to use find_channel(). Also make it take 1 argument instead of 3. Bram Matthys 2021-08-05 16:54:57 +02:00
  • cf1a5c7090
    Replace get_channel() calls with !NOCREATE or 0 with find_channel() Bram Matthys 2021-08-05 16:43:33 +02:00
  • da07fbf28f
    Make Channel struct fixed-size rather than the name[1] trick. Also, do some more validations on remote names now that it is fixed. Bram Matthys 2021-08-05 16:40:26 +02:00
  • 6bad375ad7
    Rename channel->chname to channel->name. Bram Matthys 2021-08-05 16:34:45 +02:00
  • a118a3313d
    Newlog: SAPART/SAJOIN and also broadcast SAJOIN now so all servers can log it appropriately. Bram Matthys 2021-08-05 16:30:14 +02:00
  • b21048c3e1
    Broadcast SAPART so other servers now it is a forced part and can log it appropriately. Bram Matthys 2021-08-05 16:24:38 +02:00
  • 149beb10e3
    Update sajoin logging: use $channels rather than $channel since it may be a list. Bram Matthys 2021-08-05 16:11:43 +02:00
  • bda671fa14
    Newlog: Add ULOG_DEBUG log level, and update reputation.c to use newlog. Bram Matthys 2021-08-05 14:17:39 +02:00
  • 53fa3c44f5
    Remove /REHASH -motd and -opermotd and get rid of some rehash quirks. Bram Matthys 2021-08-05 13:57:43 +02:00
  • 5e94b1cddb
    Newlog updates in serv.c Bram Matthys 2021-08-05 13:49:36 +02:00
  • b3fca01472
    Newlog: update oper.c Bram Matthys 2021-08-05 13:27:38 +02:00
  • a19135d2a2
    Guard against ULOG_INFO / LOG_INFO mixups :D No such mistakes have been made yet, but.. bound to happen. Bram Matthys 2021-08-05 12:15:55 +02:00
  • 9889ed386b
    Newlog: for zero TS, such as a expiry_at of 0 which means never/infinity, return a timestamp of null in JSON. And also blackhole some shit. Bram Matthys 2021-08-05 11:47:21 +02:00
  • f5852ce534
    Newlog: add log_data_timestamp() and use ISO8601 timestamps in JSON logging. We already did so for the "timestamp" of the log message, but now also do it in other log messages that have a timestamp, such as "set_at" and "expire_at" in TKL entries. Bram Matthys 2021-08-05 11:11:21 +02:00
  • 91ba0ca441
    More updates to TKL for new log system. Also in the spamfilter hit message we now show the action that was taken. Bram Matthys 2021-08-05 10:48:34 +02:00
  • dbdfb7c656
    Update TKL code to use new logging system. Make the TKL add/del/expiry messages more consistent at the same time. Bram Matthys 2021-08-05 10:19:05 +02:00
  • 952cb121c2
    ircd.c: use new logging code Also shorten the timesync messages a bit.. hope that won't cause confusion :D Bram Matthys 2021-08-05 08:27:52 +02:00
  • c27ed2ed81
    Log: CONFIG_LOADED / CONFIG_NOT_LOADED Bram Matthys 2021-08-05 08:02:55 +02:00
  • 4a62e6ddaa
    Add log catagory 'config' and use CONFIG_ERROR_GENERIC, CONFIG_WARNING_GENERIC and CONFIG_INFO_GENERIC from config_error(), config_warn() and config_status() respectively. Bram Matthys 2021-08-05 07:58:12 +02:00
  • b23f7e77c7
    Add unreal_log_raw() if you want to log a buffer directly without expanding the $stuff in it. This is unusual, but possible in some cases. Generally people should use unreal_log(), though. Bram Matthys 2021-08-05 07:54:22 +02:00
  • 413def178c
    Add early loglevel to snomask code. Hardcoded atm. Bram Matthys 2021-08-05 07:34:03 +02:00
  • 54b28716ff
    Update LICENSE Jamie 2021-07-26 09:59:28 +10:00
  • f4b3efcf3a Fix possible segfault on sequential-fallback autoconnect strategy Ramiro Bou 2021-07-25 00:19:24 -03:00
  • 5c9b7cf15f
    Add MONITOR command and fix numerous problems with WATCH. k4be 2021-07-21 20:23:07 +02:00
  • b0c30cd1a6
    Remove unused prototypes k4be 2021-07-21 18:06:31 +02:00
  • 4ec455bf06
    Add selective watch removal. Clean up linked list item deleting. k4be 2021-07-21 18:04:01 +02:00
  • b01bc76a69
    WATCH command should only modify own entries. k4be 2021-07-20 21:38:42 +02:00
  • 7fab97d364
    Add watch notification hook. This will likely reduce performance, but this should not matter in modern times. Also added flags to let modules know which one the entry belongs to, and what to do with it. Now modules should be able to add their own WATCH methods (like IRCv3 MONITOR), or extend functionality to notify about other changes than the default log on, log off and away statuses (like SETNAMEs). k4be 2021-07-20 20:59:36 +02:00
  • 0700640330
    Create "watch-backend" module that will serve for all watch-like commands. k4be 2021-07-20 20:26:31 +02:00
  • 6ec6c37839
    Add watch calls to efunctions. (Doing nothing useful at this point.) Also bump MAXEFUNCTIONS. k4be 2021-07-19 21:28:29 +02:00
  • bcbcc10b9d
    Move watch code from core to module k4be 2021-07-19 18:16:28 +02:00
  • 15ac841aea
    Do not show "Read error" quit message on regularly closed connections k4be 2021-07-19 16:53:05 +02:00
  • 3a9e4f98ac
    Add option for notifying chanops about invitations by normal users. k4be 2021-07-17 18:07:02 +02:00
  • b6bd9a4d97
    Fix typo k4be 2021-07-17 10:54:14 +02:00
  • 47ec109fce
    Fix crash on /REHASH with exceptionally large number of client capabilities loaded. k4be 2021-07-16 22:58:23 +02:00
  • 319939c7af Emoji nickname support gerard 2021-07-16 17:56:08 -03:00
  • 4b5b88e674
    Add .dir-locals.el to .gitignore (#7) Ron Nnn 2021-07-16 18:07:48 +01:00
  • 087a60a236 Add .dir-locals.el to .gitignore Ron Nazarov 2021-07-16 17:54:19 +01:00
  • 637ef7e99d
    Add IRCv3 SETNAME support k4be 2021-07-16 18:34:11 +02:00
  • f561c3c4f0 G-Peeing Ramiro Bou 2021-07-16 13:08:59 -03:00
  • e294656175
    Merge branch 'unreal60_dev+invite' into unreal60_dev k4be 2021-07-16 18:02:44 +02:00
  • be534a7aa1
    Merge branch 'unreal60_dev' of github.com:syzop/unrealircd-next into unreal60_dev k4be 2021-07-16 18:02:22 +02:00
  • c8b7cd9546 Fixing license Ramiro Bou 2021-07-16 12:01:19 -03:00
  • 1f374c6764 Adding pissquit module Ramiro Bou 2021-07-16 11:35:14 -03:00
  • 2a57fff638
    Update example.conf angryce 2021-07-16 16:21:23 +02:00
  • 938efa1416
    Piss Ramiro Bou 2021-07-15 22:09:59 -03:00
  • b7a9c5f525
    Update README.md nolsen 2021-07-15 19:06:46 -06:00
  • c609a6108a
    Update README.md nolsen 2021-07-15 18:59:03 -06:00
  • 8996b0c691
    Update README.md nolsen 2021-07-15 18:49:24 -06:00
  • 91a8c12528 Fixing an oopsie Ramiro Bou 2021-07-15 21:17:29 -03:00
  • c2360f33a7 Rebranding! Ramiro Bou 2021-07-15 20:44:36 -03:00
  • 35330e6a41 Piss config Ramiro Bou 2021-07-15 20:28:13 -03:00
  • 402ab649ff Adding module to disable remote sajoin/sapart Ramiro Bou 2021-07-15 20:12:09 -03:00
  • 75a5e3ac0f Adding module to disable global messages Ramiro Bou 2021-07-15 20:10:25 -03:00