about summary refs log tree commit diff
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2020-08-18 21:26:17 -0400
committerJune McEnroe <june@causal.agency>2020-08-18 21:26:17 -0400
commitb06470294d58e6f469d245a0757b94dbca2dd52c (patch)
treea0eb3c431bd47729e142a5dd8a57453d14c5a3f9
parentPreserve colon from previous tab-complete (diff)
downloadcatgirl-b06470294d58e6f469d245a0757b94dbca2dd52c.tar.gz
catgirl-b06470294d58e6f469d245a0757b94dbca2dd52c.zip
Match mentions case-sensitively
The mention coloring code already matches case-sensitively, and any
proper ping should be using tab-complete anyway so there's no reason for
differing case. And the month of June should not ping me.
Diffstat (limited to '')
-rw-r--r--handle.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/handle.c b/handle.c
index a954824..d822e0e 100644
--- a/handle.c
+++ b/handle.c
@@ -1061,7 +1061,7 @@ static bool isAction(struct Message *msg) {
 static bool isMention(const struct Message *msg) {
 	size_t len = strlen(self.nick);
 	const char *match = msg->params[1];
-	while (NULL != (match = strcasestr(match, self.nick))) {
+	while (NULL != (match = strstr(match, self.nick))) {
 		char a = (match > msg->params[1] ? match[-1] : ' ');
 		char b = (match[len] ?: ' ');
 		if ((isspace(a) || ispunct(a)) && (isspace(b) || ispunct(b))) {