Commit graph

  • 847f2fc384
    Remove is_ip_valid() as we already have is_valid_ip(), and update the doxygen docs a bit for that function. Bram Matthys 2021-09-25 08:16:07 +02:00
  • c582a29f09
    Update doxygen docs a bit (minimal) for channel access functions. Bram Matthys 2021-09-25 08:13:18 +02:00
  • fabe16a95c
    Get rid of has_voice(), is_half_op(), is_skochanop(), is_chan_op(), is_chanadmin(), is_chanowner(). Using check_channel_access() instead now. Bram Matthys 2021-09-25 08:00:57 +02:00
  • 0b6336c5f9
    Update config.guess and config.sub from 2015-03-04 to 2021-06-03 Bram Matthys 2021-09-24 18:20:13 +02:00
  • ca9132b345
    Update geoip-classic.tar.gz. Changes: In configure remove AC_FUNC_MALLOC and AC_FUNC_REALLOC. These don't do anything, except they cause a build failure on Ubuntu 21 and later (together with openssl 3.0.0 anyway). Bram Matthys 2021-09-24 18:11:43 +02:00
  • 39ead41fae
    Update notes about release notes a bit [skip ci] Bram Matthys 2021-09-24 17:50:39 +02:00
  • 8acd17b0ef
    Make the error a bit more clear (that the two lines are related) [skip ci] Bram Matthys 2021-09-24 17:46:57 +02:00
  • efb16159f3
    Add check for missing include "snomasks.default.conf"; Well, not literally, but indirectly :D Bram Matthys 2021-09-24 17:44:57 +02:00
  • f85732a7e0
    When unreal_log() was called incorrectly and wanted to print a BUG error message about this it crashed. Can't use NULL va and the null_va trick didn't work either, so.. don't use va stuff at all.. Bram Matthys 2021-09-24 17:33:30 +02:00
  • fa9957ac6b
    Add GeoIP engine prompt to ./Config Bram Matthys 2021-09-24 17:19:02 +02:00
  • 3fda96448d
    Fix crash due to invalid subsystem use in tls.c [skip ci] Bram Matthys 2021-09-24 17:17:03 +02:00
  • 4397450bd0
    Revert LD_LIBRARY_PATH= in unrealircd script, as we use -rpath for that. Bram Matthys 2021-09-24 16:57:52 +02:00
  • baa07b179f
    Get rid of some other old upgrade conf stuff as well. Remove some, but keep some other errors, since they may still be helpful, or at least for now. Bram Matthys 2021-09-24 16:45:41 +02:00
  • a2a9eebf98
    Get rid of ./unrealircd upgrade-conf (was for 3.2.x to 4.x) Bram Matthys 2021-09-24 16:40:42 +02:00
  • 864aef89da
    LOG_DEST_OTHER => LOG_DEST_DISK Bram Matthys 2021-09-24 16:37:24 +02:00
  • f29e0fcfe1
    Make sure nobody uses a subsystem of like "info" or "debug" etc, which are reserved for log levels, and would otherwise clash in the log::sources configuration. Bram Matthys 2021-09-24 16:15:05 +02:00
  • 4b079dbd1b
    Add JOIN/PART/KICK logging (snomask 'j'). This also changes the remove_user_from_channel() function to have an extra parameter to hide it from logs. This is used for KICK (already logged) and QUIT (which would be stupid to generate 10 part log lines for). Bram Matthys 2021-09-24 16:02:50 +02:00
  • 4e511da9fb
    Update default logging conf [skip ci] Bram Matthys 2021-09-24 15:52:41 +02:00
  • 8de1adc1c0
    Update SECURITY.md to include U6 [skip ci] Bram Matthys 2021-09-24 11:33:17 +02:00
  • 56c3b4ced6
    Automatically add default log block that logs everything if no log block to disk is present. Also update the English example.conf. Bram Matthys 2021-09-24 11:29:36 +02:00
  • 9852ec9991
    No longer log everything, so apply source { } on log blocks for disk files. This also adds the option "all" to log everything (after which you can use exclusion if you wish, eg "!whatever". Bram Matthys 2021-09-24 11:15:52 +02:00
  • d3dfa5f40c
    Make negative matching work in log sources, update default snomasks. No longer log to all ircops if no matching snomasks. So yeah, if you don't load snomask.default.conf you will see nothing (TODO: some warning / error for this) Bram Matthys 2021-09-24 11:07:25 +02:00
  • 1d73db560c
    Get rid of modules/snomasks directory, since the snomask module API is gone. (IRCOps can set any snomask dynamically now) Bram Matthys 2021-09-24 10:09:20 +02:00
  • b41311ddaf
    Update default snomask to +bBcdfkqsSoO Bram Matthys 2021-09-24 10:03:18 +02:00
  • e14b463b60
    Major update to default snomask configuration Bram Matthys 2021-09-24 09:41:32 +02:00
  • bcfe43788d
    Some unimportant unreal_log() updates. [skip ci] Bram Matthys 2021-09-24 09:41:21 +02:00
  • be6bbbcc6b
    Convert all remaining sendto_umode()/sendto_umode_global() to unreal_log(). Except, of course, the ones that actually need to send to a user mode, which is only LOCOPS and GLOBOPS. Bram Matthys 2021-09-24 08:28:37 +02:00
  • 52667445f2
    Fix warning on vsendto_prefix_one (my mistake...) Bram Matthys 2021-09-23 20:03:33 +02:00
  • 43e4c5444f
    We already got rid of sendto_ops(), now get rid of sendto_realops(). Use the new logging instead. Bram Matthys 2021-09-23 19:57:05 +02:00
  • 2a7da65574
    Fix header: wallops -> usermodes/wallops Bram Matthys 2021-09-23 19:31:28 +02:00
  • 0439e4f89d
    Move wallops module from "wallops" to "usermodes/wallops" (which includes the command) Bram Matthys 2021-09-23 19:25:38 +02:00
  • 20c4ac2cd1
    Move all wallops code out of the core. Bram Matthys 2021-09-23 19:21:19 +02:00
  • b94707a51b
    Change (or delete) old sendto_ops() calls. Function is now gone. Bram Matthys 2021-09-23 19:14:10 +02:00
  • e36c85e4ce
    I don't understand much from this old code, but.. whatever. Bram Matthys 2021-09-23 19:13:55 +02:00
  • 6abd74b121
    Get rid of REHASH flag handling for staff, just rehash ffs... And this module is not perm so we can ditch all this code. Bram Matthys 2021-09-23 18:55:17 +02:00
  • cb31ec97a3
    JSON log: expand a bit more for IsMe(), like filling in some client.server stuff. Also add client.server.info for both IsServer() and IsMe(). Bram Matthys 2021-09-23 18:50:08 +02:00
  • 720f597ad6
    Get rid of current snomask system and allow ircops to set any snomask (that is: a-z A-Z) so to use the dynamic system with the new logging. Largely untested. Bram Matthys 2021-09-22 15:40:53 +02:00
  • 7fdd14de95
    Remove sendto_snomask() and sendto_snomask_global() as this is no longer the way we do things with the new logging stuff. Bram Matthys 2021-09-22 14:26:51 +02:00
  • e6bc040402
    Update coders in ./Config as well (and restyle a little bit) Bram Matthys 2021-09-22 12:46:17 +02:00
  • 5175afb598
    Update ircd coders Bram Matthys 2021-09-22 12:02:37 +02:00
  • 8d5ccee2d1
    Put arabic-utf8 in the correct group and #if out the hard errror when mixing UTF8 groups, make it a general warning again as it may or may not be an issue. Bram Matthys 2021-09-22 09:42:42 +02:00
  • bcf5b2d4b8
    Add support for arabic-utf8 in set::allowed-nickchars. Supplied by Sensiva in https://bugs.unrealircd.org/view.php?id=3734 Bram Matthys 2021-09-22 09:42:08 +02:00
  • 3feac27c43
    Put arabic-utf8 in the correct group and #if out the hard errror when mixing UTF8 groups, make it a general warning again as it may or may not be an issue. Bram Matthys 2021-09-22 09:31:47 +02:00
  • c51a3d96be
    Add support for arabic-utf8 in set::allowed-nickchars. Supplied by Sensiva in https://bugs.unrealircd.org/view.php?id=3734 Bram Matthys 2021-09-22 09:20:19 +02:00
  • 215677d785
    Fix hooks, so gcc compiles again after last few commits. Bram Matthys 2021-09-20 18:32:11 +02:00
  • 381454bd1d
    1) Change from .prefix_priority to .rank. 2) Make higher value = higher ranking 3) Ship with defines for these: #define RANK_CHANOWNER 4000 #define RANK_CHANADMIN 3000 #define RANK_CHANOP 2000 #define RANK_HALFOP 1000 #define RANK_VOICE -1 Bram Matthys 2021-09-20 16:09:14 +02:00
  • 139098919b
    Get rid of PREFIX_* in sendto_channel(), message.c and in chanmsg hook. We use char *member_modes like we now have at all the other places, which contains eg "o". Bram Matthys 2021-09-20 15:39:26 +02:00
  • 6277efd85e
    Make SAJOIN code use generic prefix framework. Also fix multi-channel joins in such a case, code was wrong (things being done in the wrong scope). Bram Matthys 2021-09-20 13:53:30 +02:00
  • 83f4619e78
    Get rid of the choice for/aginst PREFIX_AQ for three reasons: 1) All IRC clients support prefixes nowadays 2) People generally misunderstand the question and think this disabled +q (channel owner) and +a (channel admin), when in fact it does not. It only enables/disables the showing of prefixes, and it changes some of the rules eg requiring +qo / +ao for actions that normally only require +q / +a. 3) We now have the modularized +q and +a, so you can actually disable channel owner and channel admin, which is what most users want(ed) that previously disabled PREFIX_AQ. Bram Matthys 2021-09-20 13:19:51 +02:00
  • 067fb5c830
    Fix last detected REHASH memory leak for now (couple of bytes) Bram Matthys 2021-09-20 10:06:24 +02:00
  • 1e6cce798b
    Fix memory leak on rehash: free log->sources Bram Matthys 2021-09-20 10:04:43 +02:00
  • 1631f35e18
    Actually free memory of the channel mode, now that we use a linked list instead of a fixed array. (since 783cc3ff5b from 1 month ago) Bram Matthys 2021-09-20 09:51:26 +02:00
  • 3513806e66
    Make PREFIX= dynamic by writing it based on the loaded modes. Bram Matthys 2021-09-19 17:57:25 +02:00
  • dd9f65f585
    Add the new modules for vhoaq handling :D Bram Matthys 2021-09-13 18:55:06 +02:00
  • 187157b5be
    Fix compiler warnings Bram Matthys 2021-09-13 18:50:40 +02:00
  • 4cea88645c
    Modularize member modes (vhoaq). Still need to clean up a bit after this, but it passes all tests :) Bram Matthys 2021-09-13 18:44:18 +02:00
  • 6586fe8acd
    Remove all unused numerics from include/numeric.h. Bram Matthys 2021-09-12 16:46:25 +02:00
  • cf936078d4
    Get rid of the legacy numeric stuff. The file src/numeric.c is removed as all the numerics are in include/numeric.h now, so we can have format string checks with a few macro tricks. (See also previous commits) Bram Matthys 2021-09-12 16:31:26 +02:00
  • 6237bf5f5f
    Convert watch code to use new sendnumeric(), getting rid of the temporary sendnumeric_legacy() calls. Bram Matthys 2021-09-12 16:28:04 +02:00
  • 4392468c3e
    Update HOOKTYPE_CAN_JOIN and HOOKTYPE_CAN_JOIN_LIMITEXCEEDED to take an extra char **errmsg argument. Upon failure (non zero return value) this should contain a format string to be sent to the client (with the return value denoting the number of the numeric). Bram Matthys 2021-09-12 16:07:28 +02:00
  • e27749f556
    Use long long casts due to time_t difference on Windows vs Linux. Should now compile without errors on both. Bram Matthys 2021-09-12 15:28:54 +02:00
  • e046ec7244
    Regenerate and mention actual number of the numeric in STR_ERR_*/STR_RPL_*. Bram Matthys 2021-09-12 14:46:43 +02:00
  • fc9bf5d607
    Change sendnumeric() so it can check for format string problems. This already found a few issues. Bram Matthys 2021-09-12 14:30:34 +02:00
  • 6577721089
    Get rid of the option to show modes in /LIST. Always do this. I don't think there were more than a handful of people who disabled this, and it clutters the source badly (not to mention that this should not be a compile time option at all). Bram Matthys 2021-09-12 11:28:07 +02:00
  • 3543617834
    Get rid of some useless #ifdef'd numeric stuff. Bram Matthys 2021-09-12 11:25:34 +02:00
  • 22bae6ec98
    ................. [skip ci] Bram Matthys 2021-09-12 11:15:20 +02:00
  • 1f8add8868
    Some clang 3 specific fixes [skip ci] Bram Matthys 2021-09-12 10:57:43 +02:00
  • 58ebadf06b
    Forgot to run ./autogen.sh... duh. Bram Matthys 2021-09-12 10:37:37 +02:00
  • da8b70d78c
    no-no-no... something was not right here ;D Bram Matthys 2021-09-12 10:30:59 +02:00
  • d35a1baeb2
    Can't use -Wno-unknown-pragmas on older compilers, have to resort to -Wno-pragmas. Well, whatever. We compile with recent compilers in BuildBot and dev environment so we will not use it there. Bram Matthys 2021-09-12 10:26:02 +02:00
  • 8e2640683b
    Compile with -Wparentheses by default. I think most of these are already enabled by default but some were not. Bram Matthys 2021-09-12 10:13:43 +02:00
  • a55f2e0c03
    Updates for last 2 commits: use a better tactic to deal when trying to disable warnings in pragma's that are unknown to the compiler. Bram Matthys 2021-09-12 10:08:22 +02:00
  • f8811c1f4a
    Older gcc/clangs need -Wno-unknown-pragmas it seems. Bram Matthys 2021-09-12 10:01:17 +02:00
  • 3b5b2b5c2f
    Get rid of -Wno-cast-function-type (well, mostly) and also check for the existence of -Wno-unknown-warning-option so we can add these since we use pragma's occasionally to suppress compiler warnings and some of these may exist in gcc but not in clang or vice versions (and.. versions of course), which would otherwise yield an error. Bram Matthys 2021-09-12 09:33:50 +02:00
  • 6ce95c3d79
    Fixes for previous commit now that we use -Waddress (well, implicitly through -Wall/-Wextra) Bram Matthys 2021-09-12 09:19:46 +02:00
  • 62a56b041a
    Get rid of -Wno-address Bram Matthys 2021-09-12 09:06:31 +02:00
  • 3517c7a10b
    Fix a stupid strlcpy mistake where i used sizeof(src) instead of sizeof(dst) Woah...... caught by -Wstrlcpy-strlcat-size on FreeBSD, nice. Bram Matthys 2021-09-11 18:17:43 +02:00
  • 7b53af40a1
    Temporarily ignore deprecation warnings with OpenSSL 3 in extjwt module. Obviously these must be fixed at a later point in time, but we don't want BuildBot to keep failing for now. Bram Matthys 2021-09-11 18:16:03 +02:00
  • cbe14b0404
    Fix SJOIN not working well with channels that don't exist on the other side. This was due to channel->creationtime being set to TStime() but then not adjusted/set later, (also) resulting in some adding/removing action of modes as well. It *seems* the other few cases were OK though: equal TS, lower TS, higher TS, just not the "channel only exists on one side"-case. Bram Matthys 2021-09-11 18:03:07 +02:00
  • 0bde5b7070
    Randomly getting rid of some strcpy and strcat Bram Matthys 2021-09-11 17:43:15 +02:00
  • f6c66e5428
    Fix windows warning regarding size mismatch (%ld / timestamp) Due to one of the last commits. Bram Matthys 2021-09-11 17:30:05 +02:00
  • 4de8456697
    Fix compiler warning on Windows Bram Matthys 2021-09-11 16:30:23 +02:00
  • a4d5341b41
    Fix non-debugmode build Bram Matthys 2021-09-11 16:12:43 +02:00
  • 8353a9e17b
    Change char *parv[] to const char *parv[] everywhere. This is a BIG change. It means you can no longer modify eg parv[1] in-place with strtoken and such. Bram Matthys 2021-09-11 16:02:44 +02:00
  • 39edbd643d
    Get rid of proto.h and integrate the 20 lines into h.h. Bram Matthys 2021-09-11 10:26:18 +02:00
  • 5dc6411419
    Const const const. This completes the work in h.h. Bram Matthys 2021-09-11 10:16:55 +02:00
  • 439376b334
    Fix compile error when not using cURL, due to recent changes. Bram Matthys 2021-09-11 10:04:01 +02:00
  • fcf020b99e
    It's raining consts... Bram Matthys 2021-09-11 09:30:12 +02:00
  • 9a350169b9
    Fix test suite failing occasionally due to cached time in JOINs. Bram Matthys 2021-09-11 08:22:22 +02:00
  • 7cabd4b79e
    Const const const Bram Matthys 2021-09-11 08:17:12 +02:00
  • ac84d4f207
    Const const const... modules.c and elsewhere. Bram Matthys 2021-09-11 07:53:30 +02:00
  • 6f91b2854a
    Add extra logging for build tests to trace issues. Bram Matthys 2021-09-11 07:02:17 +02:00
  • 5bc244c1f3
    Add a lot more consts. This finishes the work for all hooktypes. Bram Matthys 2021-09-10 20:36:38 +02:00
  • 74d1481dcb
    Do the same for RunHookReturn() and RunHookReturnInt(). NOTE: The arguments are swapped, it is now eg: RunHookReturn(HOOKTYPE_SOMETHING, !=0, a, b, c); Bram Matthys 2021-09-10 19:32:17 +02:00
  • 7dac12e31e
    Get rid of RunHook2/3/4/5/6/etc and just have RunHook with __VA_ARGS__ Bram Matthys 2021-09-10 19:27:18 +02:00
  • cb9b24686b
    Module API changes: - For HOOKTYPE_LOCAL_JOIN and HOOKTYPE_REMOTE_JOIN: drop parv[] argument as it was useless anyway, it only contained the channel name in parv[1] but never the key, sometimes was entirely NULL even. - For HOOKTYPE_PRE_LOCAL_JOIN instead of char *parv[] we now pass const char *key. As predicted more than a year ago when fixing 0902ed7a99 Bram Matthys 2021-09-10 19:22:47 +02:00
  • 5b091975f5
    Get rid of parv[] in HOOKTYPE_CAN_JOIN and HOOKTYPE_CAN_JOIN_LIMITEXCEEDED as it already has a 'key' argument too. Bram Matthys 2021-09-10 19:11:37 +02:00
  • b2718379d7
    Workaround compiler warning with openssl version below 1.1.0-pre3, k4be 2021-09-10 17:02:19 +02:00
  • e13815b604
    Add extjwt module k4be 2021-09-10 16:19:07 +02:00
  • c5e0ba7780
    Fix build with cURL due to the latest changes. Bram Matthys 2021-09-10 15:50:01 +02:00