about summary refs log tree commit diff
diff options
context:
space:
mode:
authorhello-smile6 <73048226+hello-smile6@users.noreply.github.com>2022-12-14 12:33:03 -0800
committerAlexander Barton <alex@barton.de>2022-12-17 14:54:55 +0100
commit7b30c352a1f47fbcf020720c4aeb1a669bf37878 (patch)
treea8962f97bfb6164a29183757fdc48abb29a6e6d0
parentea7ad914c8c60a6e51f66ac8e535167636a17ea5 (diff)
downloadngircd-7b30c352a1f47fbcf020720c4aeb1a669bf37878.tar.gz
ngircd-7b30c352a1f47fbcf020720c4aeb1a669bf37878.zip
Use "||" instead of "|"
-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 d3f0c515..69ea79a4 100644
--- a/src/ngircd/lists.c
+++ b/src/ngircd/lists.c
@@ -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)) | MatchCaseInsensitive(e->mask, Client_Mask(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) {