From 9f8e73dca74adb0bae09bbc4d0aff61674085b2c Mon Sep 17 00:00:00 2001 From: Bram Matthys Date: Fri, 10 May 2019 08:57:16 +0200 Subject: [PATCH] Make CAP commands case sensitive. Suggested by Koragg in https://bugs.unrealircd.org/view.php?id=5263 --- src/modules/m_cap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/m_cap.c b/src/modules/m_cap.c index 6f05ca2fb..6fd6a6b88 100644 --- a/src/modules/m_cap.c +++ b/src/modules/m_cap.c @@ -347,7 +347,7 @@ static struct clicap_cmd clicap_cmdtable[] = { static int clicap_cmd_search(const char *command, struct clicap_cmd *entry) { - return strcmp(command, entry->cmd); + return strcasecmp(command, entry->cmd); } CMD_FUNC(m_cap)