diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2023-01-27 00:12:54 +0100 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2023-01-28 15:14:16 +0100 |
commit | 7b06463e84854e5a9776a28d8b80c097aecc62ed (patch) | |
tree | 3ac55e1d488a210be7745e3fecfd5edb551c1c1c /src | |
parent | 0704f382e07a0280ffbbde4875c75d552fa43da9 (diff) | |
download | weechat-7b06463e84854e5a9776a28d8b80c097aecc62ed.zip |
irc: make IRC raw filters case sensitive (issue #1872)
Except the IRC command name filter (`m:xxx`).
Diffstat (limited to 'src')
-rw-r--r-- | src/plugins/irc/irc-raw.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/src/plugins/irc/irc-raw.c b/src/plugins/irc/irc-raw.c index 383c25951..1a20ee4f5 100644 --- a/src/plugins/irc/irc-raw.c +++ b/src/plugins/irc/irc-raw.c @@ -133,25 +133,24 @@ irc_raw_message_match_filter (struct t_irc_raw_message *raw_message, else if (strncmp (filter, "s:", 2) == 0) { /* filter by server name */ - return (weechat_strcasecmp (raw_message->server->name, - filter + 2) == 0) ? 1 : 0; + return (strcmp (raw_message->server->name, filter + 2) == 0) ? 1 : 0; } else if (strncmp (filter, "f:", 2) == 0) { /* filter by message flag */ - if (weechat_strcasecmp (filter + 2, "recv") == 0) + if (strcmp (filter + 2, "recv") == 0) { return (raw_message->flags & IRC_RAW_FLAG_RECV) ? 1 : 0; } - else if (weechat_strcasecmp (filter + 2, "sent") == 0) + else if (strcmp (filter + 2, "sent") == 0) { return (raw_message->flags & IRC_RAW_FLAG_SEND) ? 1 : 0; } - else if (weechat_strcasecmp (filter + 2, "modified") == 0) + else if (strcmp (filter + 2, "modified") == 0) { return (raw_message->flags & IRC_RAW_FLAG_MODIFIED) ? 1 : 0; } - else if (weechat_strcasecmp (filter + 2, "redirected") == 0) + else if (strcmp (filter + 2, "redirected") == 0) { return (raw_message->flags & IRC_RAW_FLAG_REDIRECT) ? 1 : 0; } |