]> jfr.im git - solanum.git/blobdiff - modules/chm_noctcp.c
Fix build when hyperscan is missing
[solanum.git] / modules / chm_noctcp.c
index f23f18a58aaf2cf84241d03003c7629b7833ab5d..60e4f7d5cc414846c693c5703a60da79e4c063be 100644 (file)
@@ -34,6 +34,9 @@
 #include "chmode.h"
 #include "inline/stringops.h"
 
+static const char chm_noctcp_desc[] =
+       "Adds channel mode +C, which blocks CTCP messages from a channel (except ACTION)";
+
 static unsigned int mode_noctcp;
 
 static void chm_noctcp_process(hook_data_privmsg_channel *);
@@ -43,9 +46,6 @@ mapi_hfn_list_av1 chm_noctcp_hfnlist[] = {
        { NULL, NULL }
 };
 
-static const char chm_noctcp_desc[] =
-       "Adds channel mode +C, which blocks CTCP messages from a channel (except ACTION)";
-
 static void
 chm_noctcp_process(hook_data_privmsg_channel *data)
 {
@@ -53,7 +53,7 @@ chm_noctcp_process(hook_data_privmsg_channel *data)
        if (data->approved || data->msgtype == MESSAGE_TYPE_NOTICE)
                return;
 
-       if (*data->text == '\001' && strncasecmp(data->text + 1, "ACTION ", 7) && data->chptr->mode.mode & mode_noctcp)
+       if (*data->text == '\001' && rb_strncasecmp(data->text + 1, "ACTION ", 7) && data->chptr->mode.mode & mode_noctcp)
        {
                sendto_one_numeric(data->source_p, ERR_CANNOTSENDTOCHAN, form_str(ERR_CANNOTSENDTOCHAN), data->chptr->chname);
                data->approved = ERR_CANNOTSENDTOCHAN;