diff options
| author | 2026-07-14 17:20:15 +0200 | |
|---|---|---|
| committer | 2026-07-14 17:21:05 +0200 | |
| commit | efee1755e1c1f7d84ff2553eb06cb21a8c9d3221 (patch) | |
| tree | 26ac4f63a7eeda05064b49bff7a1c2217eb889d4 | |
| parent | The log that JSON-RPC log.getall uses was cleared too often. (diff) | |
| download | unrealircd-unreal60_dev.tar.gz unrealircd-unreal60_dev.tar.bz2 unrealircd-unreal60_dev.zip | |
Channel mode +f type r (repeat): fix normalization HEAD unreal60_dev
Channel mode `+f` type `r` (repeat) has normalization (like ignoring
upper/lowercase and color), but this normalization was accidently ignored.
We do all kinds of work to normalize and then in the final line
i apparently used the original.. oops.. all that work for nothing.
| -rw-r--r-- | doc/RELEASE-NOTES.md | 2 | ||||
| -rw-r--r-- | src/modules/chanmodes/floodprot.c | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/doc/RELEASE-NOTES.md b/doc/RELEASE-NOTES.md index c59db301b..d319e00ee 100644 --- a/doc/RELEASE-NOTES.md +++ b/doc/RELEASE-NOTES.md @@ -26,6 +26,8 @@ This is work in progress and may not always be a stable version. was set to `parallel` instead of the default `sequential`. This change means that `parallel` should now be safe to use. * The memory log, that JSON-RPC log.getall uses, was cleaned up too much. +* Channel mode `+f` type `r` (repeat) has normalization (like ignoring + upper/lowercase and color), but this normalization was accidently ignored. ### Developers and protocol: * New wiki articles: [Dev:Coding guidelines](https://www.unrealircd.org/docs/Dev:Coding_guidelines) diff --git a/src/modules/chanmodes/floodprot.c b/src/modules/chanmodes/floodprot.c index f9cccf170..86e200aab 100644 --- a/src/modules/chanmodes/floodprot.c +++ b/src/modules/chanmodes/floodprot.c @@ -2011,7 +2011,7 @@ uint64_t gen_floodprot_msghash(const char *text) plaintext += 7; } - return siphash(text, floodprot_msghash_key); + return siphash(plaintext, floodprot_msghash_key); } // FIXME: REMARK: make sure you can only do a +f/-f once (latest in line wins). |
