diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2023-01-27 00:15:32 +0100 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2023-01-28 15:14:17 +0100 |
commit | 375c9f8b1eab36b84de248e0d7dc4288b78bece3 (patch) | |
tree | 8a107bab1715c0c574b6d9872890be919a9119f7 /src | |
parent | 7b06463e84854e5a9776a28d8b80c097aecc62ed (diff) | |
download | weechat-375c9f8b1eab36b84de248e0d7dc4288b78bece3.zip |
api: make prefix argument case sensitive in prefix function (issue #1872)
Diffstat (limited to 'src')
-rw-r--r-- | src/plugins/plugin-api.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/plugins/plugin-api.c b/src/plugins/plugin-api.c index f2aca1423..22ddc5374 100644 --- a/src/plugins/plugin-api.c +++ b/src/plugins/plugin-api.c @@ -351,15 +351,15 @@ plugin_api_prefix (const char *prefix) if (!prefix) return gui_chat_prefix_empty; - if (string_strcasecmp (prefix, "error") == 0) + if (strcmp (prefix, "error") == 0) return gui_chat_prefix[GUI_CHAT_PREFIX_ERROR]; - if (string_strcasecmp (prefix, "network") == 0) + if (strcmp (prefix, "network") == 0) return gui_chat_prefix[GUI_CHAT_PREFIX_NETWORK]; - if (string_strcasecmp (prefix, "action") == 0) + if (strcmp (prefix, "action") == 0) return gui_chat_prefix[GUI_CHAT_PREFIX_ACTION]; - if (string_strcasecmp (prefix, "join") == 0) + if (strcmp (prefix, "join") == 0) return gui_chat_prefix[GUI_CHAT_PREFIX_JOIN]; - if (string_strcasecmp (prefix, "quit") == 0) + if (strcmp (prefix, "quit") == 0) return gui_chat_prefix[GUI_CHAT_PREFIX_QUIT]; return gui_chat_prefix_empty; |