about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorAlexander Barton <alex@barton.de>2014-10-06 21:40:39 +0200
committerAlexander Barton <alex@barton.de>2014-10-06 21:47:34 +0200
commitbe887070273c47a07c9bf488630f6fb707976f67 (patch)
treecf413c1f14b029daea7460bdfaf568e5ea81a646 /src
parent7d7eb735f0c8b541e7809a68cb49174605147904 (diff)
downloadngircd-be887070273c47a07c9bf488630f6fb707976f67.tar.gz
ngircd-be887070273c47a07c9bf488630f6fb707976f67.zip
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!
Diffstat (limited to 'src')
-rw-r--r--src/ngircd/lists.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ngircd/lists.c b/src/ngircd/lists.c
index 022e305e..247344e5 100644
--- a/src/ngircd/lists.c
+++ b/src/ngircd/lists.c
@@ -326,7 +326,7 @@ Lists_CheckReason(struct list_head *h, CLIENT *Client, char *reason, size_t len)
 
 	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) {