Commit Diff
Diff:
7d7eb735f0c8b541e7809a68cb49174605147904
be887070273c47a07c9bf488630f6fb707976f67
Commit:
be887070273c47a07c9bf488630f6fb707976f67
Tree:
cf413c1f14b029daea7460bdfaf568e5ea81a646
Author:
Alexander Barton <alex@barton.de>
Committer:
Alexander Barton <alex@barton.de>
Date:
Mon Oct 6 19:47:34 2014 UTC
Message:
Match list patterns case-insensitive The invite-, ban-, and except lists are affected by this change, as well as G-Lines an K-Lines. Problem pointed out by "wowaname" on #ngircd, thanks!
blob - 022e305eff9a7f61c7b2cd573a5f96fda4b5223d
blob + 247344e508a6e3daf3fc164d1e47ddbdc0e98152
--- src/ngircd/lists.c
+++ src/ngircd/lists.c
@@ -326,7 +326,7 @@ Lists_CheckReason(struct list_head *h, CLIENT *Client,
while (e) {
next = e->next;
- if (Match(e->mask, Client_MaskCloaked(Client))) {
+ if (MatchCaseInsensitive(e->mask, Client_MaskCloaked(Client))) {
if (len && e->reason)
strlcpy(reason, e->reason, len);
if (e->valid_until == 1) {
IRCNow