]> arthur.barton.de Git - ngircd-alex.git/commitdiff
Fix gline/kline with cloaked hostnames
author9pfs <hellosmile6@tilde.pink>
Tue, 13 Dec 2022 00:47:53 +0000 (00:47 +0000)
committerAlexander Barton <alex@barton.de>
Sat, 17 Dec 2022 13:54:55 +0000 (14:54 +0100)
src/ngircd/lists.c

index 38b3b0e8031fc9f52480748dbf8b2de84e079d11..d3f0c5159315ee1fa71cd1a445551d90a501a990 100644 (file)
@@ -341,7 +341,7 @@ Lists_CheckReason(struct list_head *h, CLIENT *Client, char *reason, size_t len)
 
        while (e) {
                next = e->next;
-               if (MatchCaseInsensitive(e->mask, Client_MaskCloaked(Client))) {
+               if (MatchCaseInsensitive(e->mask, Client_MaskCloaked(Client)) | MatchCaseInsensitive(e->mask, Client_Mask(Client))) {
                        if (len && e->reason)
                                strlcpy(reason, e->reason, len);
                        if (e->onlyonce) {