1
0
mirror of https://github.com/weechat/weechat.git synced 2026-07-08 10:43:13 +02:00

core, plugins: make commands, hook command_run, completions and aliases case sensitive (issue #1872)

This commit is contained in:
Sébastien Helleu
2023-01-15 10:54:56 +01:00
parent 1de735b779
commit f0415c8ec3
41 changed files with 711 additions and 721 deletions
+2 -2
View File
@@ -1936,7 +1936,7 @@ irc_server_apply_command_line_options (struct t_irc_server *server,
}
if (option_name)
{
if (weechat_strcasecmp (option_name, "temp") == 0)
if (weechat_strcmp (option_name, "temp") == 0)
{
/* temporary server, not saved */
server->temp_server = 1;
@@ -1947,7 +1947,7 @@ irc_server_apply_command_line_options (struct t_irc_server *server,
if (index_option < 0)
{
/* look if option is negative, like "-noxxx" */
if (weechat_strncasecmp (argv[i], "-no", 3) == 0)
if (weechat_strncmp (argv[i], "-no", 3) == 0)
{
free (option_name);
option_name = strdup (argv[i] + 3);