summaryrefslogtreecommitdiff
path: root/src/plugins
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2023-01-15 10:54:56 +0100
committerSébastien Helleu <flashcode@flashtux.org>2023-01-28 15:13:48 +0100
commitf0415c8ec3c6def45e5e61756e9a521f25e5f8a3 (patch)
treec8af8e4bd05cbaa2e13d7c671668662954fa342c /src/plugins
parent1de735b7791f9bfd5f0f9f52bd809130558b74b0 (diff)
downloadweechat-f0415c8ec3c6def45e5e61756e9a521f25e5f8a3.zip
core, plugins: make commands, hook command_run, completions and aliases case sensitive (issue #1872)
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/alias/alias-command.c8
-rw-r--r--src/plugins/buflist/buflist-command.c10
-rw-r--r--src/plugins/charset/charset.c6
-rw-r--r--src/plugins/exec/exec-command.c74
-rw-r--r--src/plugins/exec/exec.c4
-rw-r--r--src/plugins/fifo/fifo-command.c6
-rw-r--r--src/plugins/fset/fset-command.c44
-rw-r--r--src/plugins/fset/fset.c2
-rw-r--r--src/plugins/guile/weechat-guile.c32
-rw-r--r--src/plugins/irc/irc-command.c130
-rw-r--r--src/plugins/irc/irc-debug.c2
-rw-r--r--src/plugins/irc/irc-server.c4
-rw-r--r--src/plugins/irc/irc.c2
-rw-r--r--src/plugins/javascript/weechat-js.cpp32
-rw-r--r--src/plugins/logger/logger-command.c8
-rw-r--r--src/plugins/lua/weechat-lua.c32
-rw-r--r--src/plugins/perl/weechat-perl.c32
-rw-r--r--src/plugins/php/weechat-php.c32
-rw-r--r--src/plugins/python/weechat-python.c32
-rw-r--r--src/plugins/relay/relay-command.c24
-rw-r--r--src/plugins/relay/relay.c2
-rw-r--r--src/plugins/ruby/weechat-ruby.c32
-rw-r--r--src/plugins/script/script-action.c38
-rw-r--r--src/plugins/script/script-command.c42
-rw-r--r--src/plugins/script/script.c2
-rw-r--r--src/plugins/spell/spell-command.c14
-rw-r--r--src/plugins/spell/spell.c3
-rw-r--r--src/plugins/tcl/weechat-tcl.c32
-rw-r--r--src/plugins/trigger/trigger-command.c74
-rw-r--r--src/plugins/trigger/trigger.c2
-rw-r--r--src/plugins/xfer/xfer-command.c4
-rw-r--r--src/plugins/xfer/xfer.c2
32 files changed, 381 insertions, 382 deletions
diff --git a/src/plugins/alias/alias-command.c b/src/plugins/alias/alias-command.c
index d9a704317..e8ac4783e 100644
--- a/src/plugins/alias/alias-command.c
+++ b/src/plugins/alias/alias-command.c
@@ -91,7 +91,7 @@ alias_command_cb (const void *pointer, void *data,
(void) buffer;
/* List all aliases */
- if ((argc == 1) || (weechat_strcasecmp (argv[1], "list") == 0))
+ if ((argc == 1) || (weechat_strcmp (argv[1], "list") == 0))
{
if (alias_list)
{
@@ -171,7 +171,7 @@ alias_command_cb (const void *pointer, void *data,
return WEECHAT_RC_OK;
}
- if (weechat_strcasecmp (argv[1], "add") == 0)
+ if (weechat_strcmp (argv[1], "add") == 0)
{
WEECHAT_COMMAND_MIN_ARGS(4, "add");
alias_command_add (
@@ -182,7 +182,7 @@ alias_command_cb (const void *pointer, void *data,
return WEECHAT_RC_OK;
}
- if (weechat_strcasecmp (argv[1], "addcompletion") == 0)
+ if (weechat_strcmp (argv[1], "addcompletion") == 0)
{
WEECHAT_COMMAND_MIN_ARGS(5, "addcompletion");
alias_command_add (
@@ -193,7 +193,7 @@ alias_command_cb (const void *pointer, void *data,
return WEECHAT_RC_OK;
}
- if (weechat_strcasecmp (argv[1], "del") == 0)
+ if (weechat_strcmp (argv[1], "del") == 0)
{
WEECHAT_COMMAND_MIN_ARGS(3, "del");
for (i = 2; i < argc; i++)
diff --git a/src/plugins/buflist/buflist-command.c b/src/plugins/buflist/buflist-command.c
index 9c6bf7470..5a7d56110 100644
--- a/src/plugins/buflist/buflist-command.c
+++ b/src/plugins/buflist/buflist-command.c
@@ -46,31 +46,31 @@ buflist_command_buflist (const void *pointer, void *data,
if (argc == 1)
return WEECHAT_RC_OK;
- if (weechat_strcasecmp (argv[1], "enable") == 0)
+ if (weechat_strcmp (argv[1], "enable") == 0)
{
weechat_config_option_set (buflist_config_look_enabled, "on", 1);
return WEECHAT_RC_OK;
}
- if (weechat_strcasecmp (argv[1], "disable") == 0)
+ if (weechat_strcmp (argv[1], "disable") == 0)
{
weechat_config_option_set (buflist_config_look_enabled, "off", 1);
return WEECHAT_RC_OK;
}
- if (weechat_strcasecmp (argv[1], "toggle") == 0)
+ if (weechat_strcmp (argv[1], "toggle") == 0)
{
weechat_config_option_set (buflist_config_look_enabled, "toggle", 1);
return WEECHAT_RC_OK;
}
- if (weechat_strcasecmp (argv[1], "bar") == 0)
+ if (weechat_strcmp (argv[1], "bar") == 0)
{
buflist_add_bar ();
return WEECHAT_RC_OK;
}
- if (weechat_strcasecmp (argv[1], "refresh") == 0)
+ if (weechat_strcmp (argv[1], "refresh") == 0)
{
buflist_bar_item_update (0);
return WEECHAT_RC_OK;
diff --git a/src/plugins/charset/charset.c b/src/plugins/charset/charset.c
index 4c4150931..7c2940fed 100644
--- a/src/plugins/charset/charset.c
+++ b/src/plugins/charset/charset.c
@@ -515,7 +515,7 @@ charset_command_cb (const void *pointer, void *data,
snprintf (option_name, length, "%s.%s", plugin_name, name);
}
- if (weechat_strcasecmp (argv[1], "reset") == 0)
+ if (weechat_strcmp (argv[1], "reset") == 0)
{
charset_set (charset_config_section_decode, "decode", option_name,
NULL);
@@ -526,12 +526,12 @@ charset_command_cb (const void *pointer, void *data,
{
if (argc > 2)
{
- if (weechat_strcasecmp (argv[1], "decode") == 0)
+ if (weechat_strcmp (argv[1], "decode") == 0)
{
ptr_section = charset_config_section_decode;
ptr_charset = argv_eol[2];
}
- else if (weechat_strcasecmp (argv[1], "encode") == 0)
+ else if (weechat_strcmp (argv[1], "encode") == 0)
{
ptr_section = charset_config_section_encode;
ptr_charset = argv_eol[2];
diff --git a/src/plugins/exec/exec-command.c b/src/plugins/exec/exec-command.c
index 2e6289cb8..7cfec192a 100644
--- a/src/plugins/exec/exec-command.c
+++ b/src/plugins/exec/exec-command.c
@@ -186,31 +186,31 @@ exec_command_parse_options (struct t_exec_cmd_options *cmd_options,
for (i = start_arg; i < argc; i++)
{
- if (weechat_strcasecmp (argv[i], "-sh") == 0)
+ if (weechat_strcmp (argv[i], "-sh") == 0)
{
cmd_options->use_shell = 1;
}
- else if (weechat_strcasecmp (argv[i], "-nosh") == 0)
+ else if (weechat_strcmp (argv[i], "-nosh") == 0)
{
cmd_options->use_shell = 0;
}
- else if (weechat_strcasecmp (argv[i], "-bg") == 0)
+ else if (weechat_strcmp (argv[i], "-bg") == 0)
{
cmd_options->detached = 1;
}
- else if (weechat_strcasecmp (argv[i], "-nobg") == 0)
+ else if (weechat_strcmp (argv[i], "-nobg") == 0)
{
cmd_options->detached = 0;
}
- else if (weechat_strcasecmp (argv[i], "-stdin") == 0)
+ else if (weechat_strcmp (argv[i], "-stdin") == 0)
{
cmd_options->pipe_stdin = 1;
}
- else if (weechat_strcasecmp (argv[i], "-nostdin") == 0)
+ else if (weechat_strcmp (argv[i], "-nostdin") == 0)
{
cmd_options->pipe_stdin = 0;
}
- else if (weechat_strcasecmp (argv[i], "-buffer") == 0)
+ else if (weechat_strcmp (argv[i], "-buffer") == 0)
{
if (i + 1 >= argc)
return 0;
@@ -226,73 +226,73 @@ exec_command_parse_options (struct t_exec_cmd_options *cmd_options,
if (!cmd_options->ptr_buffer)
cmd_options->new_buffer = 1;
}
- else if (weechat_strcasecmp (argv[i], "-l") == 0)
+ else if (weechat_strcmp (argv[i], "-l") == 0)
{
cmd_options->output_to_buffer = 0;
cmd_options->output_to_buffer_exec_cmd = 0;
cmd_options->new_buffer = 0;
}
- else if (weechat_strcasecmp (argv[i], "-o") == 0)
+ else if (weechat_strcmp (argv[i], "-o") == 0)
{
cmd_options->output_to_buffer = 1;
cmd_options->output_to_buffer_exec_cmd = 0;
cmd_options->new_buffer = 0;
}
- else if (weechat_strcasecmp (argv[i], "-oc") == 0)
+ else if (weechat_strcmp (argv[i], "-oc") == 0)
{
cmd_options->output_to_buffer = 1;
cmd_options->output_to_buffer_exec_cmd = 1;
cmd_options->new_buffer = 0;
}
- else if (weechat_strcasecmp (argv[i], "-oerr") == 0)
+ else if (weechat_strcmp (argv[i], "-oerr") == 0)
{
cmd_options->output_to_buffer_stderr = 1;
}
- else if (weechat_strcasecmp (argv[i], "-n") == 0)
+ else if (weechat_strcmp (argv[i], "-n") == 0)
{
cmd_options->output_to_buffer = 0;
cmd_options->output_to_buffer_exec_cmd = 0;
cmd_options->new_buffer = 1;
}
- else if (weechat_strcasecmp (argv[i], "-nf") == 0)
+ else if (weechat_strcmp (argv[i], "-nf") == 0)
{
cmd_options->output_to_buffer = 0;
cmd_options->output_to_buffer_exec_cmd = 0;
cmd_options->new_buffer = 2;
}
- else if (weechat_strcasecmp (argv[i], "-cl") == 0)
+ else if (weechat_strcmp (argv[i], "-cl") == 0)
{
cmd_options->new_buffer_clear = 1;
}
- else if (weechat_strcasecmp (argv[i], "-nocl") == 0)
+ else if (weechat_strcmp (argv[i], "-nocl") == 0)
{
cmd_options->new_buffer_clear = 0;
}
- else if (weechat_strcasecmp (argv[i], "-sw") == 0)
+ else if (weechat_strcmp (argv[i], "-sw") == 0)
{
cmd_options->switch_to_buffer = 1;
}
- else if (weechat_strcasecmp (argv[i], "-nosw") == 0)
+ else if (weechat_strcmp (argv[i], "-nosw") == 0)
{
cmd_options->switch_to_buffer = 0;
}
- else if (weechat_strcasecmp (argv[i], "-ln") == 0)
+ else if (weechat_strcmp (argv[i], "-ln") == 0)
{
cmd_options->line_numbers = 1;
}
- else if (weechat_strcasecmp (argv[i], "-noln") == 0)
+ else if (weechat_strcmp (argv[i], "-noln") == 0)
{
cmd_options->line_numbers = 0;
}
- else if (weechat_strcasecmp (argv[i], "-flush") == 0)
+ else if (weechat_strcmp (argv[i], "-flush") == 0)
{
cmd_options->flush = 1;
}
- else if (weechat_strcasecmp (argv[i], "-noflush") == 0)
+ else if (weechat_strcmp (argv[i], "-noflush") == 0)
{
cmd_options->flush = 0;
}
- else if (weechat_strcasecmp (argv[i], "-color") == 0)
+ else if (weechat_strcmp (argv[i], "-color") == 0)
{
if (i + 1 >= argc)
return 0;
@@ -301,15 +301,15 @@ exec_command_parse_options (struct t_exec_cmd_options *cmd_options,
if (cmd_options->color < 0)
return 0;
}
- else if (weechat_strcasecmp (argv[i], "-rc") == 0)
+ else if (weechat_strcmp (argv[i], "-rc") == 0)
{
cmd_options->display_rc = 1;
}
- else if (weechat_strcasecmp (argv[i], "-norc") == 0)
+ else if (weechat_strcmp (argv[i], "-norc") == 0)
{
cmd_options->display_rc = 0;
}
- else if (weechat_strcasecmp (argv[i], "-timeout") == 0)
+ else if (weechat_strcmp (argv[i], "-timeout") == 0)
{
if (i + 1 >= argc)
return 0;
@@ -319,14 +319,14 @@ exec_command_parse_options (struct t_exec_cmd_options *cmd_options,
if (!error || error[0])
return 0;
}
- else if (weechat_strcasecmp (argv[i], "-name") == 0)
+ else if (weechat_strcmp (argv[i], "-name") == 0)
{
if (i + 1 >= argc)
return 0;
i++;
cmd_options->ptr_command_name = argv[i];
}
- else if (weechat_strcasecmp (argv[i], "-pipe") == 0)
+ else if (weechat_strcmp (argv[i], "-pipe") == 0)
{
if (i + 1 >= argc)
return 0;
@@ -370,7 +370,7 @@ exec_command_parse_options (struct t_exec_cmd_options *cmd_options,
else
cmd_options->pipe_command = strdup (argv[i]);
}
- else if (weechat_strcasecmp (argv[i], "-hsignal") == 0)
+ else if (weechat_strcmp (argv[i], "-hsignal") == 0)
{
if (i + 1 >= argc)
return 0;
@@ -676,14 +676,14 @@ exec_command_exec (const void *pointer, void *data,
/* list running commands */
if ((argc == 1)
- || ((argc == 2) && (weechat_strcasecmp (argv[1], "-list") == 0)))
+ || ((argc == 2) && (weechat_strcmp (argv[1], "-list") == 0)))
{
exec_command_list ();
return WEECHAT_RC_OK;
}
/* send text to a running process */
- if (weechat_strcasecmp (argv[1], "-in") == 0)
+ if (weechat_strcmp (argv[1], "-in") == 0)
{
WEECHAT_COMMAND_MIN_ARGS(4, "-in");
ptr_exec_cmd = exec_command_search_running_id (argv[2]);
@@ -702,7 +702,7 @@ exec_command_exec (const void *pointer, void *data,
}
/* send text to a running process (if given), then close stdin */
- if (weechat_strcasecmp (argv[1], "-inclose") == 0)
+ if (weechat_strcmp (argv[1], "-inclose") == 0)
{
WEECHAT_COMMAND_MIN_ARGS(3, "-inclose");
ptr_exec_cmd = exec_command_search_running_id (argv[2]);
@@ -725,7 +725,7 @@ exec_command_exec (const void *pointer, void *data,
}
/* send a signal to a running process */
- if (weechat_strcasecmp (argv[1], "-signal") == 0)
+ if (weechat_strcmp (argv[1], "-signal") == 0)
{
WEECHAT_COMMAND_MIN_ARGS(4, "-signal");
ptr_exec_cmd = exec_command_search_running_id (argv[2]);
@@ -735,7 +735,7 @@ exec_command_exec (const void *pointer, void *data,
}
/* send a KILL signal to a running process */
- if (weechat_strcasecmp (argv[1], "-kill") == 0)
+ if (weechat_strcmp (argv[1], "-kill") == 0)
{
WEECHAT_COMMAND_MIN_ARGS(3, "-kill");
ptr_exec_cmd = exec_command_search_running_id (argv[2]);
@@ -745,7 +745,7 @@ exec_command_exec (const void *pointer, void *data,
}
/* send a KILL signal to all running processes */
- if (weechat_strcasecmp (argv[1], "-killall") == 0)
+ if (weechat_strcmp (argv[1], "-killall") == 0)
{
for (ptr_exec_cmd = exec_cmds; ptr_exec_cmd;
ptr_exec_cmd = ptr_exec_cmd->next_cmd)
@@ -759,7 +759,7 @@ exec_command_exec (const void *pointer, void *data,
}
/* set a hook property */
- if (weechat_strcasecmp (argv[1], "-set") == 0)
+ if (weechat_strcmp (argv[1], "-set") == 0)
{
WEECHAT_COMMAND_MIN_ARGS(5, "-set");
ptr_exec_cmd = exec_command_search_running_id (argv[2]);
@@ -769,10 +769,10 @@ exec_command_exec (const void *pointer, void *data,
}
/* delete terminated command(s) */
- if (weechat_strcasecmp (argv[1], "-del") == 0)
+ if (weechat_strcmp (argv[1], "-del") == 0)
{
WEECHAT_COMMAND_MIN_ARGS(3, "-del");
- if (weechat_strcasecmp (argv[2], "-all") == 0)
+ if (weechat_strcmp (argv[2], "-all") == 0)
{
count = 0;
ptr_exec_cmd = exec_cmds;
diff --git a/src/plugins/exec/exec.c b/src/plugins/exec/exec.c
index da404a080..71447a76b 100644
--- a/src/plugins/exec/exec.c
+++ b/src/plugins/exec/exec.c
@@ -65,7 +65,7 @@ exec_search_color (const char *color)
for (i = 0; i < EXEC_NUM_COLORS; i++)
{
- if (weechat_strcasecmp (exec_color_string[i], color) == 0)
+ if (weechat_strcmp (exec_color_string[i], color) == 0)
return i;
}
@@ -724,7 +724,7 @@ exec_debug_dump_cb (const void *pointer, void *data,
(void) type_data;
if (!signal_data
- || (weechat_strcasecmp ((char *)signal_data, EXEC_PLUGIN_NAME) == 0))
+ || (weechat_strcmp ((char *)signal_data, EXEC_PLUGIN_NAME) == 0))
{
weechat_log_printf ("");
weechat_log_printf ("***** \"%s\" plugin dump *****",
diff --git a/src/plugins/fifo/fifo-command.c b/src/plugins/fifo/fifo-command.c
index f07cbf29b..4e8ce14bd 100644
--- a/src/plugins/fifo/fifo-command.c
+++ b/src/plugins/fifo/fifo-command.c
@@ -59,21 +59,21 @@ fifo_command_fifo (const void *pointer, void *data,
}
/* enable pipe */
- if (weechat_strcasecmp (argv[1], "enable") == 0)
+ if (weechat_strcmp (argv[1], "enable") == 0)
{
weechat_config_option_set (fifo_config_file_enabled, "on", 1);
return WEECHAT_RC_OK;
}
/* disable pipe */
- if (weechat_strcasecmp (argv[1], "disable") == 0)
+ if (weechat_strcmp (argv[1], "disable") == 0)
{
weechat_config_option_set (fifo_config_file_enabled, "off", 1);
return WEECHAT_RC_OK;
}
/* toggle pipe */
- if (weechat_strcasecmp (argv[1], "toggle") == 0)
+ if (weechat_strcmp (argv[1], "toggle") == 0)
{
weechat_config_option_set (
fifo_config_file_enabled,
diff --git a/src/plugins/fset/fset-command.c b/src/plugins/fset/fset-command.c
index 2ca4ab89d..63c1fdd64 100644
--- a/src/plugins/fset/fset-command.c
+++ b/src/plugins/fset/fset-command.c
@@ -108,13 +108,13 @@ fset_command_fset (const void *pointer, void *data,
return WEECHAT_RC_OK;
}
- if (weechat_strcasecmp (argv[1], "-bar") == 0)
+ if (weechat_strcmp (argv[1], "-bar") == 0)
{
fset_add_bar ();
return WEECHAT_RC_OK;
}
- if (weechat_strcasecmp (argv[1], "-refresh") == 0)
+ if (weechat_strcmp (argv[1], "-refresh") == 0)
{
fset_option_get_options ();
fset_buffer_refresh (0);
@@ -122,7 +122,7 @@ fset_command_fset (const void *pointer, void *data,
return WEECHAT_RC_OK;
}
- if (weechat_strcasecmp (argv[1], "-up") == 0)
+ if (weechat_strcmp (argv[1], "-up") == 0)
{
if (fset_buffer)
{
@@ -143,7 +143,7 @@ fset_command_fset (const void *pointer, void *data,
return WEECHAT_RC_OK;
}
- if (weechat_strcasecmp (argv[1], "-down") == 0)
+ if (weechat_strcmp (argv[1], "-down") == 0)
{
if (fset_buffer)
{
@@ -164,7 +164,7 @@ fset_command_fset (const void *pointer, void *data,
return WEECHAT_RC_OK;
}
- if (weechat_strcasecmp (argv[1], "-left") == 0)
+ if (weechat_strcmp (argv[1], "-left") == 0)
{
if (fset_buffer)
{
@@ -188,7 +188,7 @@ fset_command_fset (const void *pointer, void *data,
return WEECHAT_RC_OK;
}
- if (weechat_strcasecmp (argv[1], "-right") == 0)
+ if (weechat_strcmp (argv[1], "-right") == 0)
{
if (fset_buffer)
{
@@ -212,13 +212,13 @@ fset_command_fset (const void *pointer, void *data,
return WEECHAT_RC_OK;
}
- if (weechat_strcasecmp (argv[1], "-go") == 0)
+ if (weechat_strcmp (argv[1], "-go") == 0)
{
if (fset_buffer)
{
if (argc < 3)
WEECHAT_COMMAND_ERROR;
- if (weechat_strcasecmp (argv[2], "end") == 0)
+ if (weechat_strcmp (argv[2], "end") == 0)
line = weechat_arraylist_size (fset_options) - 1;
else
line = fset_command_get_int_arg (argc, argv, 2, -1);
@@ -233,7 +233,7 @@ fset_command_fset (const void *pointer, void *data,
if (argv[1][0] == '-')
{
- if (weechat_strcasecmp (argv[1], "-toggle") == 0)
+ if (weechat_strcmp (argv[1], "-toggle") == 0)
{
if (fset_option_count_marked > 0)
{
@@ -257,7 +257,7 @@ fset_command_fset (const void *pointer, void *data,
return WEECHAT_RC_OK;
}
- if (weechat_strcasecmp (argv[1], "-add") == 0)
+ if (weechat_strcmp (argv[1], "-add") == 0)
{
value = fset_command_get_int_arg (argc, argv, 2, 0);
if (value == 0)
@@ -295,7 +295,7 @@ fset_command_fset (const void *pointer, void *data,
return WEECHAT_RC_OK;
}
- if (weechat_strcasecmp (argv[1], "-reset") == 0)
+ if (weechat_strcmp (argv[1], "-reset") == 0)
{
if (fset_option_count_marked > 0)
{
@@ -319,7 +319,7 @@ fset_command_fset (const void *pointer, void *data,
return WEECHAT_RC_OK;
}
- if (weechat_strcasecmp (argv[1], "-unset") == 0)
+ if (weechat_strcmp (argv[1], "-unset") == 0)
{
if (fset_option_count_marked > 0)
{
@@ -343,35 +343,35 @@ fset_command_fset (const void *pointer, void *data,
return WEECHAT_RC_OK;
}
- if (weechat_strcasecmp (argv[1], "-set") == 0)
+ if (weechat_strcmp (argv[1], "-set") == 0)
{
fset_command_get_option (&ptr_fset_option, &ptr_option);
fset_option_set (ptr_fset_option, ptr_option, buffer, 0);
return WEECHAT_RC_OK;
}
- if (weechat_strcasecmp (argv[1], "-setnew") == 0)
+ if (weechat_strcmp (argv[1], "-setnew") == 0)
{
fset_command_get_option (&ptr_fset_option, &ptr_option);
fset_option_set (ptr_fset_option, ptr_option, buffer, -1);
return WEECHAT_RC_OK;
}
- if (weechat_strcasecmp (argv[1], "-append") == 0)
+ if (weechat_strcmp (argv[1], "-append") == 0)
{
fset_command_get_option (&ptr_fset_option, &ptr_option);
fset_option_set (ptr_fset_option, ptr_option, buffer, 1);
return WEECHAT_RC_OK;
}
- if (weechat_strcasecmp (argv[1], "-mark") == 0)
+ if (weechat_strcmp (argv[1], "-mark") == 0)
{
fset_command_get_option (&ptr_fset_option, &ptr_option);
fset_option_toggle_mark (ptr_fset_option, ptr_option);
return WEECHAT_RC_OK;
}
- if (weechat_strcasecmp (argv[1], "-format") == 0)
+ if (weechat_strcmp (argv[1], "-format") == 0)
{
min = weechat_hdata_integer (fset_hdata_config_option,
fset_config_look_format_number,
@@ -388,20 +388,20 @@ fset_command_fset (const void *pointer, void *data,
return WEECHAT_RC_OK;
}
- if (weechat_strcasecmp (argv[1], "-export") == 0)
+ if (weechat_strcmp (argv[1], "-export") == 0)
{
if (argc < 3)
WEECHAT_COMMAND_ERROR;
with_help = weechat_config_boolean (fset_config_look_export_help_default);
ptr_filename = argv_eol[2];
- if (weechat_strcasecmp (argv[2], "-help") == 0)
+ if (weechat_strcmp (argv[2], "-help") == 0)
{
with_help = 1;
if (argc < 4)
WEECHAT_COMMAND_ERROR;
ptr_filename = argv_eol[3];
}
- else if (weechat_strcasecmp (argv[2], "-nohelp") == 0)
+ else if (weechat_strcmp (argv[2], "-nohelp") == 0)
{
with_help = 0;
if (argc < 4)
@@ -483,8 +483,8 @@ fset_command_run_set_cb (const void *pointer, void *data,
* (we must not catch that in fset!)
*/
if ((argc > 1)
- && ((weechat_strcasecmp (argv[1], "diff") == 0)
- || (weechat_strcasecmp (argv[1], "env") == 0)))
+ && ((weechat_strcmp (argv[1], "diff") == 0)
+ || (weechat_strcmp (argv[1], "env") == 0)))
{
goto end;
}
diff --git a/src/plugins/fset/fset.c b/src/plugins/fset/fset.c
index 7c99bf19a..1cd4c5f99 100644
--- a/src/plugins/fset/fset.c
+++ b/src/plugins/fset/fset.c
@@ -66,7 +66,7 @@ fset_debug_dump_cb (const void *pointer, void *data,
(void) type_data;
if (!signal_data
- || (weechat_strcasecmp ((char *)signal_data, FSET_PLUGIN_NAME) == 0))
+ || (weechat_strcmp ((char *)signal_data, FSET_PLUGIN_NAME) == 0))
{
weechat_log_printf ("");
weechat_log_printf ("***** \"%s\" plugin dump *****",
diff --git a/src/plugins/guile/weechat-guile.c b/src/plugins/guile/weechat-guile.c
index 2c26fad87..88fb2756c 100644
--- a/src/plugins/guile/weechat-guile.c
+++ b/src/plugins/guile/weechat-guile.c
@@ -816,30 +816,30 @@ weechat_guile_command_cb (const void *pointer, void *data,
}
else if (argc == 2)
{
- if (weechat_strcasecmp (argv[1], "list") == 0)
+ if (weechat_strcmp (argv[1], "list") == 0)
{
plugin_script_display_list (weechat_guile_plugin, guile_scripts,
NULL, 0);
}
- else if (weechat_strcasecmp (argv[1], "listfull") == 0)
+ else if (weechat_strcmp (argv[1], "listfull") == 0)
{
plugin_script_display_list (weechat_guile_plugin, guile_scripts,
NULL, 1);
}
- else if (weechat_strcasecmp (argv[1], "autoload") == 0)
+ else if (weechat_strcmp (argv[1], "autoload") == 0)
{
plugin_script_auto_load (weechat_guile_plugin, &weechat_guile_load_cb);
}
- else if (weechat_strcasecmp (argv[1], "reload") == 0)
+ else if (weechat_strcmp (argv[1], "reload") == 0)
{
weechat_guile_unload_all ();
plugin_script_auto_load (weechat_guile_plugin, &weechat_guile_load_cb);
}
- else if (weechat_strcasecmp (argv[1], "unload") == 0)
+ else if (weechat_strcmp (argv[1], "unload") == 0)
{
weechat_guile_unload_all ();
}
- else if (weechat_strcasecmp (argv[1], "version") == 0)
+ else if (weechat_strcmp (argv[1], "version") == 0)
{
plugin_script_display_interpreter (weechat_guile_plugin, 0);
}
@@ -848,19 +848,19 @@ weechat_guile_command_cb (const void *pointer, void *data,
}
else
{
- if (weechat_strcasecmp (argv[1], "list") == 0)
+ if (weechat_strcmp (argv[1], "list") == 0)
{
plugin_script_display_list (weechat_guile_plugin, guile_scripts,
argv_eol[2], 0);
}
- else if (weechat_strcasecmp (argv[1], "listfull") == 0)
+ else if (weechat_strcmp (argv[1], "listfull") == 0)
{
plugin_script_display_list (weechat_guile_plugin, guile_scripts,
argv_eol[2], 1);
}
- else if ((weechat_strcasecmp (argv[1], "load") == 0)
- || (weechat_strcasecmp (argv[1], "reload") == 0)
- || (weechat_strcasecmp (argv[1], "unload") == 0))
+ else if ((weechat_strcmp (argv[1], "load") == 0)
+ || (weechat_strcmp (argv[1], "reload") == 0)
+ || (weechat_strcmp (argv[1], "unload") == 0))
{
ptr_name = argv_eol[2];
if (strncmp (ptr_name, "-q ", 3) == 0)
@@ -872,7 +872,7 @@ weechat_guile_command_cb (const void *pointer, void *data,
ptr_name++;
}
}
- if (weechat_strcasecmp (argv[1], "load") == 0)
+ if (weechat_strcmp (argv[1], "load") == 0)
{
/* load guile script */
path_script = plugin_script_search_path (weechat_guile_plugin,
@@ -882,19 +882,19 @@ weechat_guile_command_cb (const void *pointer, void *data,
if (path_script)
free (path_script);
}
- else if (weechat_strcasecmp (argv[1], "reload") == 0)
+ else if (weechat_strcmp (argv[1], "reload") == 0)
{
/* reload one guile script */
weechat_guile_reload_name (ptr_name);
}
- else if (weechat_strcasecmp (argv[1], "unload") == 0)
+ else if (weechat_strcmp (argv[1], "unload") == 0)
{
/* unload guile script */
weechat_guile_unload_name (ptr_name);
}
guile_quiet = 0;
}
- else if (weechat_strcasecmp (argv[1], "eval") == 0)
+ else if (weechat_strcmp (argv[1], "eval") == 0)
{
send_to_buffer_as_input = 0;
exec_commands = 0;
@@ -1037,7 +1037,7 @@ weechat_guile_signal_debug_dump_cb (const void *pointer, void *data,
(void) type_data;
if (!signal_data
- || (weechat_strcasecmp ((char *)signal_data, GUILE_PLUGIN_NAME) == 0))
+ || (weechat_strcmp ((char *)signal_data, GUILE_PLUGIN_NAME) == 0))
{
plugin_script_print_log (weechat_guile_plugin, guile_scripts);
}
diff --git a/src/plugins/irc/irc-command.c b/src/plugins/irc/irc-command.c
index 9e10c42ac..8752946cd 100644
--- a/src/plugins/irc/irc-command.c
+++ b/src/plugins/irc/irc-command.c
@@ -569,7 +569,7 @@ IRC_COMMAND_CALLBACK(allchan)
ptr_command = argv_eol[1];
for (i = 1; i < argc; i++)
{
- if (weechat_strcasecmp (argv[i], "-current") == 0)
+ if (weechat_strcmp (argv[i], "-current") == 0)
{
if (!ptr_server)
{
@@ -584,18 +584,18 @@ IRC_COMMAND_CALLBACK(allchan)
current_server = 1;
ptr_command = argv_eol[i + 1];
}
- else if (weechat_strcasecmp (argv[i], "-parted") == 0)
+ else if (weechat_strcmp (argv[i], "-parted") == 0)
{
parted_channels = 1;
ptr_command = argv_eol[i + 1];
}
- else if (weechat_strncasecmp (argv[i], "-exclude=", 9) == 0)
+ else if (weechat_strncmp (argv[i], "-exclude=", 9) == 0)
{
ptr_channels = argv[i] + 9;
ptr_command = argv_eol[i + 1];
inclusive = 0;
}
- else if (weechat_strncasecmp (argv[i], "-include=", 9) == 0)
+ else if (weechat_strncmp (argv[i], "-include=", 9) == 0)
{
ptr_channels = argv[i] + 9;
ptr_command = argv_eol[i + 1];
@@ -644,7 +644,7 @@ IRC_COMMAND_CALLBACK(allpv)
ptr_command = argv_eol[1];
for (i = 1; i < argc; i++)
{
- if (weechat_strcasecmp (argv[i], "-current") == 0)
+ if (weechat_strcmp (argv[i], "-current") == 0)
{
if (!ptr_server)
{
@@ -659,13 +659,13 @@ IRC_COMMAND_CALLBACK(allpv)
current_server = 1;
ptr_command = argv_eol[i + 1];
}
- else if (weechat_strncasecmp (argv[i], "-exclude=", 9) == 0)
+ else if (weechat_strncmp (argv[i], "-exclude=", 9) == 0)
{
ptr_channels = argv[i] + 9;
ptr_command = argv_eol[i + 1];
inclusive = 0;
}
- else if (weechat_strncasecmp (argv[i], "-include=", 9) == 0)
+ else if (weechat_strncmp (argv[i], "-include=", 9) == 0)
{
ptr_channels = argv[i] + 9;
ptr_command = argv_eol[i + 1];
@@ -781,13 +781,13 @@ IRC_COMMAND_CALLBACK(allserv)
ptr_command = argv_eol[1];
for (i = 1; i < argc; i++)
{
- if (weechat_strncasecmp (argv[i], "-exclude=", 9) == 0)
+ if (weechat_strncmp (argv[i], "-exclude=", 9) == 0)
{
ptr_servers = argv[i] + 9;
ptr_command = argv_eol[i + 1];
inclusive = 0;
}
- else if (weechat_strncasecmp (argv[i], "-include=", 9) == 0)
+ else if (weechat_strncmp (argv[i], "-include=", 9) == 0)
{
ptr_servers = argv[i] + 9;
ptr_command = argv_eol[i + 1];
@@ -925,7 +925,7 @@ IRC_COMMAND_CALLBACK(autojoin)
IRC_SERVER_OPTION_AUTOJOIN);
/* join channels in server "autojoin" option */
- if (weechat_strcasecmp (argv[1], "join") == 0)
+ if (weechat_strcmp (argv[1], "join") == 0)
{
if (ptr_autojoin)
{
@@ -943,7 +943,7 @@ IRC_COMMAND_CALLBACK(autojoin)
old_autojoin = strdup ((ptr_autojoin) ? ptr_autojoin : "");
/* add channel(s) */
- if (weechat_strcasecmp (argv[1], "add") == 0)
+ if (weechat_strcmp (argv[1], "add") == 0)
{
if (argc < 3)
{
@@ -978,7 +978,7 @@ IRC_COMMAND_CALLBACK(autojoin)
}
/* add raw channel(s) */
- if (weechat_strcasecmp (argv[1], "addraw") == 0)
+ if (weechat_strcmp (argv[1], "addraw") == 0)
{
if (argc < 3)
{
@@ -991,7 +991,7 @@ IRC_COMMAND_CALLBACK(autojoin)
}
/* delete channel(s) */
- if (weechat_strcasecmp (argv[1], "del") == 0)
+ if (weechat_strcmp (argv[1], "del") == 0)
{
if (argc < 3)
{
@@ -1016,14 +1016,14 @@ IRC_COMMAND_CALLBACK(autojoin)
}
/* apply currently joined channels in server "autojoin" option */
- if (weechat_strcasecmp (argv[1], "apply") == 0)
+ if (weechat_strcmp (argv[1], "apply") == 0)
{
irc_join_save_channels_to_autojoin (ptr_server);
goto end;
}
/* sort channels */
- if (weechat_strcasecmp (argv[1], "sort") == 0)
+ if (weechat_strcmp (argv[1], "sort") == 0)
{
irc_join_sort_autojoin (ptr_server);
goto end;
@@ -1328,7 +1328,7 @@ IRC_COMMAND_CALLBACK(away)
(void) pointer;
(void) data;
- if ((argc >= 2) && (weechat_strcasecmp (argv[1], "-all") == 0))
+ if ((argc >= 2) && (weechat_strcmp (argv[1], "-all") == 0))
{
weechat_buffer_set (NULL, "hotlist", "-");
for (ptr_server = irc_servers; ptr_server;
@@ -1635,15 +1635,15 @@ IRC_COMMAND_CALLBACK(connect)
autoconnect = 0;
for (i = 1; i < argc; i++)
{
- if (weechat_strcasecmp (argv[i], "-all") == 0)
+ if (weechat_strcmp (argv[i], "-all") == 0)
all_servers = 1;
- else if (weechat_strcasecmp (argv[i], "-open") == 0)
+ else if (weechat_strcmp (argv[i], "-open") == 0)
all_opened = 1;
- else if (weechat_strcasecmp (argv[i], "-switch") == 0)
+ else if (weechat_strcmp (argv[i], "-switch") == 0)
switch_address = 1;
- else if (weechat_strcasecmp (argv[i], "-nojoin") == 0)
+ else if (weechat_strcmp (argv[i], "-nojoin") == 0)
no_join = 1;
- else if (weechat_strcasecmp (argv[i], "-auto") == 0)
+ else if (weechat_strcmp (argv[i], "-auto") == 0)
autoconnect = 1;
}
@@ -1791,7 +1791,7 @@ IRC_COMMAND_CALLBACK(connect)
}
else
{
- if (weechat_strcasecmp (argv[i], "-port") == 0)
+ if (weechat_strcmp (argv[i], "-port") == 0)
i++;
}
}
@@ -1829,7 +1829,7 @@ IRC_COMMAND_CALLBACK(ctcp)
arg_type = 2;
arg_args = 3;
- if ((argc >= 5) && (weechat_strcasecmp (argv[1], "-server") == 0))
+ if ((argc >= 5) && (weechat_strcmp (argv[1], "-server") == 0))
{
ptr_server = irc_server_search (argv[2]);
ptr_channel = NULL;
@@ -2071,7 +2071,7 @@ IRC_COMMAND_CALLBACK(dcc)
}
/* DCC SEND file */
- if (weechat_strcasecmp (argv[1], "send") == 0)
+ if (weechat_strcmp (argv[1], "send") == 0)
{
WEECHAT_COMMAND_MIN_ARGS(4, "send");
infolist = weechat_infolist_new ();
@@ -2099,7 +2099,7 @@ IRC_COMMAND_CALLBACK(dcc)
}
/* DCC CHAT */
- if (weechat_strcasecmp (argv[1], "chat") == 0)
+ if (weechat_strcmp (argv[1], "chat") == 0)
{
WEECHAT_COMMAND_MIN_ARGS(3, "chat");
infolist = weechat_infolist_new ();
@@ -2394,7 +2394,7 @@ IRC_COMMAND_CALLBACK(disconnect)
{
disconnect_ok = 1;
- if (weechat_strcasecmp (argv[1], "-all") == 0)
+ if (weechat_strcmp (argv[1], "-all") == 0)
{
for (ptr_server = irc_servers; ptr_server;
ptr_server = ptr_server->next_server)
@@ -2408,7 +2408,7 @@ IRC_COMMAND_CALLBACK(disconnect)
}
}
}
- else if (weechat_strcasecmp (argv[1], "-pending") == 0)
+ else if (weechat_strcmp (argv[1], "-pending") == 0)
{
for (ptr_server = irc_servers; ptr_server;
ptr_server = ptr_server->next_server)
@@ -2521,7 +2521,7 @@ IRC_COMMAND_CALLBACK(ignore)
(void) argv_eol;
if ((argc == 1)
- || ((argc == 2) && (weechat_strcasecmp (argv[1], "list") == 0)))
+ || ((argc == 2) && (weechat_strcmp (argv[1], "list") == 0)))
{
/* display all ignores */
if (irc_ignore_list)
@@ -2540,7 +2540,7 @@ IRC_COMMAND_CALLBACK(ignore)
}
/* add ignore */
- if (weechat_strcasecmp (argv[1], "add") == 0)
+ if (weechat_strcmp (argv[1], "add") == 0)
{
WEECHAT_COMMAND_MIN_ARGS(3, "add");
@@ -2629,11 +2629,11 @@ IRC_COMMAND_CALLBACK(ignore)
}
/* delete ignore */
- if (weechat_strcasecmp (argv[1], "del") == 0)
+ if (weechat_strcmp (argv[1], "del") == 0)
{
WEECHAT_COMMAND_MIN_ARGS(3, "del");
- if (weechat_strcasecmp (argv[2], "-all") == 0)
+ if (weechat_strcmp (argv[2], "-all") == 0)
{
if (irc_ignore_list)
{
@@ -2982,7 +2982,7 @@ IRC_COMMAND_CALLBACK(join)
for (i = 1; i < argc; i++)
{
- if (weechat_strcasecmp (argv[i], "-server") == 0)
+ if (weechat_strcmp (argv[i], "-server") == 0)
{
if (argc <= i + 1)
WEECHAT_COMMAND_ERROR;
@@ -2992,7 +2992,7 @@ IRC_COMMAND_CALLBACK(join)
arg_channels = i + 2;
i++;
}
- else if (weechat_strcasecmp (argv[i], "-noswitch") == 0)
+ else if (weechat_strcmp (argv[i], "-noswitch") == 0)
{
noswitch = 1;
arg_channels = i + 1;
@@ -3309,7 +3309,7 @@ IRC_COMMAND_CALLBACK(list)
for (i = 1; i < argc; i++)
{
- if (weechat_strcasecmp (argv[i], "-server") == 0)
+ if (weechat_strcmp (argv[i], "-server") == 0)
{
if (argc <= i + 1)
WEECHAT_COMMAND_ERROR;
@@ -3318,7 +3318,7 @@ IRC_COMMAND_CALLBACK(list)
WEECHAT_COMMAND_ERROR;
i++;
}
- else if (weechat_strcasecmp (argv[i], "-re") == 0)
+ else if (weechat_strcmp (argv[i], "-re") == 0)
{
if (argc <= i + 1)
WEECHAT_COMMAND_ERROR;
@@ -3606,7 +3606,7 @@ IRC_COMMAND_CALLBACK(msg)
arg_target = 1;
arg_text = 2;
- if ((argc >= 5) && (weechat_strcasecmp (argv[1], "-server") == 0))
+ if ((argc >= 5) && (weechat_strcmp (argv[1], "-server") == 0))
{
ptr_server = irc_server_search (argv[2]);
ptr_channel = NULL;
@@ -3875,7 +3875,7 @@ IRC_COMMAND_CALLBACK(nick)
if (argc > 2)
{
- if (weechat_strcasecmp (argv[1], "-all") != 0)
+ if (weechat_strcmp (argv[1], "-all") != 0)
WEECHAT_COMMAND_ERROR;
for (ptr_server = irc_servers; ptr_server;
ptr_server = ptr_server->next_server)
@@ -3910,7 +3910,7 @@ IRC_COMMAND_CALLBACK(notice)
arg_target = 1;
arg_text = 2;
- if ((argc >= 5) && (weechat_strcasecmp (argv[1], "-server") == 0))
+ if ((argc >= 5) && (weechat_strcmp (argv[1], "-server") == 0))
{
ptr_server = irc_server_search (argv[2]);
arg_target = 3;
@@ -4000,7 +4000,7 @@ IRC_COMMAND_CALLBACK(notify)
}
/* add notify */
- if (weechat_strcasecmp (argv[1], "add") == 0)
+ if (weechat_strcmp (argv[1], "add") == 0)
{
WEECHAT_COMMAND_MIN_ARGS(3, "add");
@@ -4033,7 +4033,7 @@ IRC_COMMAND_CALLBACK(notify)
{
for (i = 4; i < argc; i++)
{
- if (weechat_strcasecmp (argv[i], "-away") == 0)
+ if (weechat_strcmp (argv[i], "-away") == 0)
check_away = 1;
}
}
@@ -4083,7 +4083,7 @@ IRC_COMMAND_CALLBACK(notify)
}
/* delete notify */
- if (weechat_strcasecmp (argv[1], "del") == 0)
+ if (weechat_strcmp (argv[1], "del") == 0)
{
WEECHAT_COMMAND_MIN_ARGS(3, "del");
@@ -4110,7 +4110,7 @@ IRC_COMMAND_CALLBACK(notify)
return WEECHAT_RC_OK;
}
- if (weechat_strcasecmp (argv[2], "-all") == 0)
+ if (weechat_strcmp (argv[2], "-all") == 0)
{
if (ptr_server->notify_list)
{
@@ -4406,7 +4406,7 @@ IRC_COMMAND_CALLBACK(query)
for (i = 1; i < argc; i++)
{
- if (weechat_strcasecmp (argv[i], "-server") == 0)
+ if (weechat_strcmp (argv[i], "-server") == 0)
{
if (argc <= i + 1)
WEECHAT_COMMAND_ERROR;
@@ -4417,7 +4417,7 @@ IRC_COMMAND_CALLBACK(query)
arg_text = i + 3;
i++;
}
- else if (weechat_strcasecmp (argv[i], "-noswitch") == 0)
+ else if (weechat_strcmp (argv[i], "-noswitch") == 0)
{
noswitch = 1;
arg_nick = i + 1;
@@ -4591,7 +4591,7 @@ IRC_COMMAND_CALLBACK(quote)
WEECHAT_COMMAND_MIN_ARGS(2, "");
- if ((argc >= 4) && (weechat_strcasecmp (argv[1], "-server") == 0))
+ if ((argc >= 4) && (weechat_strcmp (argv[1], "-server") == 0))
{
ptr_server = irc_server_search (argv[2]);
if (!ptr_server || (ptr_server->sock < 0))
@@ -4674,11 +4674,11 @@ IRC_COMMAND_CALLBACK(reconnect)
no_join = 0;
for (i = 1; i < argc; i++)
{
- if (weechat_strcasecmp (argv[i], "-all") == 0)
+ if (weechat_strcmp (argv[i], "-all") == 0)
all_servers = 1;
- else if (weechat_strcasecmp (argv[i], "-switch") == 0)
+ else if (weechat_strcmp (argv[i], "-switch") == 0)
switch_address = 1;
- else if (weechat_strcasecmp (argv[i], "-nojoin") == 0)
+ else if (weechat_strcmp (argv[i], "-nojoin") == 0)
no_join = 1;
}
@@ -5507,17 +5507,17 @@ IRC_COMMAND_CALLBACK(server)
(void) buffer;
if ((argc == 1)
- || (weechat_strcasecmp (argv[1], "list") == 0)
- || (weechat_strcasecmp (argv[1], "listfull") == 0))
+ || (weechat_strcmp (argv[1], "list") == 0)
+ || (weechat_strcmp (argv[1], "listfull") == 0))
{
/* list servers */
server_name = NULL;
detailed_list = 0;
for (i = 1; i < argc; i++)
{
- if (weechat_strcasecmp (argv[i], "list") == 0)
+ if (weechat_strcmp (argv[i], "list") == 0)
continue;
- if (weechat_strcasecmp (argv[i], "listfull") == 0)
+ if (weechat_strcmp (argv[i], "listfull") == 0)
{
detailed_list = 1;
continue;
@@ -5567,7 +5567,7 @@ IRC_COMMAND_CALLBACK(server)
return WEECHAT_RC_OK;
}
- if (weechat_strcasecmp (argv[1], "add") == 0)
+ if (weechat_strcmp (argv[1], "add") == 0)
{
WEECHAT_COMMAND_MIN_ARGS(4, "add");
@@ -5616,7 +5616,7 @@ IRC_COMMAND_CALLBACK(server)
return WEECHAT_RC_OK;
}
- if (weechat_strcasecmp (argv[1], "copy") == 0)
+ if (weechat_strcmp (argv[1], "copy") == 0)
{
WEECHAT_COMMAND_MIN_ARGS(4, "copy");
@@ -5664,7 +5664,7 @@ IRC_COMMAND_CALLBACK(server)
WEECHAT_COMMAND_ERROR;
}
- if (weechat_strcasecmp (argv[1], "rename") == 0)
+ if (weechat_strcmp (argv[1], "rename") == 0)
{
WEECHAT_COMMAND_MIN_ARGS(4, "rename");
@@ -5711,7 +5711,7 @@ IRC_COMMAND_CALLBACK(server)
WEECHAT_COMMAND_ERROR;
}
- if (weechat_strcasecmp (argv[1], "reorder") == 0)
+ if (weechat_strcmp (argv[1], "reorder") == 0)
{
WEECHAT_COMMAND_MIN_ARGS(3, "reorder");
@@ -5723,11 +5723,11 @@ IRC_COMMAND_CALLBACK(server)
return WEECHAT_RC_OK;
}
- if (weechat_strcasecmp (argv[1], "open") == 0)
+ if (weechat_strcmp (argv[1], "open") == 0)
{
WEECHAT_COMMAND_MIN_ARGS(3, "open");
- if (weechat_strcasecmp (argv[2], "-all") == 0)
+ if (weechat_strcmp (argv[2], "-all") == 0)
{
for (ptr_server2 = irc_servers; ptr_server2;
ptr_server2 = ptr_server2->next_server)
@@ -5772,7 +5772,7 @@ IRC_COMMAND_CALLBACK(server)
return WEECHAT_RC_OK;
}
- if (weechat_strcasecmp (argv[1], "keep") == 0)
+ if (weechat_strcmp (argv[1], "keep") == 0)
{
WEECHAT_COMMAND_MIN_ARGS(3, "keep");
@@ -5813,7 +5813,7 @@ IRC_COMMAND_CALLBACK(server)
return WEECHAT_RC_OK;
}
- if (weechat_strcasecmp (argv[1], "del") == 0)
+ if (weechat_strcmp (argv[1], "del") == 0)
{
WEECHAT_COMMAND_MIN_ARGS(3, "del");
@@ -5853,7 +5853,7 @@ IRC_COMMAND_CALLBACK(server)
return WEECHAT_RC_OK;
}
- if (weechat_strcasecmp (argv[1], "deloutq") == 0)
+ if (weechat_strcmp (argv[1], "deloutq") == 0)
{
for (ptr_server2 = irc_servers; ptr_server2;
ptr_server2 = ptr_server2->next_server)
@@ -5871,7 +5871,7 @@ IRC_COMMAND_CALLBACK(server)
return WEECHAT_RC_OK;
}
- if (weechat_strcasecmp (argv[1], "raw") == 0)
+ if (weechat_strcmp (argv[1], "raw") == 0)
{
refresh = irc_raw_buffer && (argc > 2);
if (argc > 2)
@@ -5882,14 +5882,14 @@ IRC_COMMAND_CALLBACK(server)
return WEECHAT_RC_OK;
}
- if (weechat_strcasecmp (argv[1], "jump") == 0)
+ if (weechat_strcmp (argv[1], "jump") == 0)
{
if (ptr_server && ptr_server->buffer)
weechat_buffer_set (ptr_server->buffer, "display", "1");
return WEECHAT_RC_OK;
}
- if (weechat_strcasecmp (argv[1], "fakerecv") == 0)
+ if (weechat_strcmp (argv[1], "fakerecv") == 0)
{
WEECHAT_COMMAND_MIN_ARGS(3, "fakerecv");
IRC_COMMAND_CHECK_SERVER("server fakerecv", 0, 1);
@@ -6165,7 +6165,7 @@ IRC_COMMAND_CALLBACK(topic)
if (new_topic)
{
- if (weechat_strcasecmp (new_topic, "-delete") == 0)
+ if (weechat_strcmp (new_topic, "-delete") == 0)
{
irc_server_sendf (ptr_server, IRC_SERVER_SEND_OUTQ_PRIO_HIGH, NULL,
"TOPIC %s :", channel_name);
diff --git a/src/plugins/irc/irc-debug.c b/src/plugins/irc/irc-debug.c
index d5bbe0be9..ea664dff7 100644
--- a/src/plugins/irc/irc-debug.c
+++ b/src/plugins/irc/irc-debug.c
@@ -46,7 +46,7 @@ irc_debug_signal_debug_dump_cb (const void *pointer, void *data,
(void) type_data;
if (!signal_data
- || (weechat_strcasecmp ((char *)signal_data, IRC_PLUGIN_NAME) == 0))
+ || (weechat_strcmp ((char *)signal_data, IRC_PLUGIN_NAME) == 0))
{
weechat_log_printf ("");
weechat_log_printf ("***** \"%s\" plugin dump *****",
diff --git a/src/plugins/irc/irc-server.c b/src/plugins/irc/irc-server.c
index 397d5cfc1..de61fea66 100644
--- a/src/plugins/irc/irc-server.c
+++ b/src/plugins/irc/irc-server.c
@@ -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);
diff --git a/src/plugins/irc/irc.c b/src/plugins/irc/irc.c
index d6e66943d..ea6612cec 100644
--- a/src/plugins/irc/irc.c
+++ b/src/plugins/irc/irc.c
@@ -254,7 +254,7 @@ weechat_plugin_init (struct t_weechat_plugin *plugin, int argc, char *argv[])
/* look at arguments */
for (i = 0; i < argc; i++)
{
- if ((weechat_strncasecmp (argv[i], IRC_PLUGIN_NAME, 3) == 0))
+ if ((weechat_strncmp (argv[i], IRC_PLUGIN_NAME, 3) == 0))
{
if (!irc_server_alloc_with_url (argv[i]))
{
diff --git a/src/plugins/javascript/weechat-js.cpp b/src/plugins/javascript/weechat-js.cpp
index 3fc9c545f..6b9555c17 100644
--- a/src/plugins/javascript/weechat-js.cpp
+++ b/src/plugins/javascript/weechat-js.cpp
@@ -597,30 +597,30 @@ weechat_js_command_cb (const void *pointer, void *data,
}
else if (argc == 2)
{
- if (weechat_strcasecmp (argv[1], "list") == 0)
+ if (weechat_strcmp (argv[1], "list") == 0)
{
plugin_script_display_list (weechat_js_plugin, js_scripts,
NULL, 0);
}
- else if (weechat_strcasecmp (argv[1], "listfull") == 0)
+ else if (weechat_strcmp (argv[1], "listfull") == 0)
{
plugin_script_display_list (weechat_js_plugin, js_scripts,
NULL, 1);
}
- else if (weechat_strcasecmp (argv[1], "autoload") == 0)
+ else if (weechat_strcmp (argv[1], "autoload") == 0)
{
plugin_script_auto_load (weechat_js_plugin, &weechat_js_load_cb);
}
- else if (weechat_strcasecmp (argv[1], "reload") == 0)
+ else if (weechat_strcmp (argv[1], "reload") == 0)
{
weechat_js_unload_all ();
plugin_script_auto_load (weechat_js_plugin, &weechat_js_load_cb);
}
- else if (weechat_strcasecmp(argv[1], "unload") == 0)
+ else if (weechat_strcmp(argv[1], "unload") == 0)
{
weechat_js_unload_all ();
}
- else if (weechat_strcasecmp (argv[1], "version") == 0)
+ else if (weechat_strcmp (argv[1], "version") == 0)
{
plugin_script_display_interpreter (weechat_js_plugin, 0);
}
@@ -629,19 +629,19 @@ weechat_js_command_cb (const void *pointer, void *data,
}
else
{
- if (weechat_strcasecmp (argv[1], "list") == 0)
+ if (weechat_strcmp (argv[1], "list") == 0)
{
plugin_script_display_list (weechat_js_plugin, js_scripts,
argv_eol[2], 0);
}
- else if (weechat_strcasecmp (argv[1], "listfull") == 0)
+ else if (weechat_strcmp (argv[1], "listfull") == 0)
{
plugin_script_display_list (weechat_js_plugin, js_scripts,
argv_eol[2], 1);
}
- else if ((weechat_strcasecmp (argv[1], "load") == 0)
- || (weechat_strcasecmp (argv[1], "reload") == 0)
- || (weechat_strcasecmp (argv[1], "unload") == 0))
+ else if ((weechat_strcmp (argv[1], "load") == 0)
+ || (weechat_strcmp (argv[1], "reload") == 0)
+ || (weechat_strcmp (argv[1], "unload") == 0))
{
ptr_name = argv_eol[2];
if (strncmp (ptr_name, "-q ", 3) == 0)
@@ -653,7 +653,7 @@ weechat_js_command_cb (const void *pointer, void *data,
ptr_name++;
}
}
- if (weechat_strcasecmp (argv[1], "load") == 0)
+ if (weechat_strcmp (argv[1], "load") == 0)
{
/* load javascript script */
path_script = plugin_script_search_path (weechat_js_plugin,
@@ -663,19 +663,19 @@ weechat_js_command_cb (const void *pointer, void *data,
if (path_script)
free (path_script);
}
- else if (weechat_strcasecmp (argv[1], "reload") == 0)
+ else if (weechat_strcmp (argv[1], "reload") == 0)
{
/* reload one javascript script */
weechat_js_reload_name (ptr_name);
}
- else if (weechat_strcasecmp (argv[1], "unload") == 0)
+ else if (weechat_strcmp (argv[1], "unload") == 0)
{
/* unload javascript script */
weechat_js_unload_name (ptr_name);
}
js_quiet = 0;
}
- else if (weechat_strcasecmp (argv[1], "eval") == 0)
+ else if (weechat_strcmp (argv[1], "eval") == 0)
{
send_to_buffer_as_input = 0;
exec_commands = 0;
@@ -820,7 +820,7 @@ weechat_js_signal_debug_dump_cb (const void *pointer, void *data,
(void) type_data;
if (!signal_data
- || (weechat_strcasecmp ((char *)signal_data, JS_PLUGIN_NAME) == 0))
+ || (weechat_strcmp ((char *)signal_data, JS_PLUGIN_NAME) == 0))
{
plugin_script_print_log (weechat_js_plugin, js_scripts);
}
diff --git a/src/plugins/logger/logger-command.c b/src/plugins/logger/logger-command.c
index 2cc1b07f6..e5ff04d49 100644
--- a/src/plugins/logger/logger-command.c
+++ b/src/plugins/logger/logger-command.c
@@ -128,26 +128,26 @@ logger_command_cb (const void *pointer, void *data,
(void) argv_eol;
if ((argc == 1)
- || ((argc == 2) && (weechat_strcasecmp (argv[1], "list") == 0)))
+ || ((argc == 2) && (weechat_strcmp (argv[1], "list") == 0)))
{
logger_list ();
return WEECHAT_RC_OK;
}
- if (weechat_strcasecmp (argv[1], "set") == 0)
+ if (weechat_strcmp (argv[1], "set") == 0)
{
if (argc > 2)
logger_set_buffer (buffer, argv[2]);
return WEECHAT_RC_OK;
}
- if (weechat_strcasecmp (argv[1], "flush") == 0)
+ if (weechat_strcmp (argv[1], "flush") == 0)
{
logger_buffer_flush ();
return WEECHAT_RC_OK;
}
- if (weechat_strcasecmp (argv[1], "disable") == 0)
+ if (weechat_strcmp (argv[1], "disable") == 0)
{
logger_set_buffer (buffer, "0");
return WEECHAT_RC_OK;
diff --git a/src/plugins/lua/weechat-lua.c b/src/plugins/lua/weechat-lua.c
index cce139136..28c18317b 100644
--- a/src/plugins/lua/weechat-lua.c
+++ b/src/plugins/lua/weechat-lua.c
@@ -915,30 +915,30 @@ weechat_lua_command_cb (const void *pointer, void *data,
}
else if (argc == 2)
{
- if (weechat_strcasecmp (argv[1], "list") == 0)
+ if (weechat_strcmp (argv[1], "list") == 0)
{
plugin_script_display_list (weechat_lua_plugin, lua_scripts,
NULL, 0);
}
- else if (weechat_strcasecmp (argv[1], "listfull") == 0)
+ else if (weechat_strcmp (argv[1], "listfull") == 0)
{
plugin_script_display_list (weechat_lua_plugin, lua_scripts,
NULL, 1);
}
- else if (weechat_strcasecmp (argv[1], "autoload") == 0)
+ else if (weechat_strcmp (argv[1], "autoload") == 0)
{
plugin_script_auto_load (weechat_lua_plugin, &weechat_lua_load_cb);
}
- else if (weechat_strcasecmp (argv[1], "reload") == 0)
+ else if (weechat_strcmp (argv[1], "reload") == 0)
{
weechat_lua_unload_all ();
plugin_script_auto_load (weechat_lua_plugin, &weechat_lua_load_cb);
}
- else if (weechat_strcasecmp (argv[1], "unload") == 0)
+ else if (weechat_strcmp (argv[1], "unload") == 0)
{
weechat_lua_unload_all ();
}
- else if (weechat_strcasecmp (argv[1], "version") == 0)
+ else if (weechat_strcmp (argv[1], "version") == 0)
{
plugin_script_display_interpreter (weechat_lua_plugin, 0);
}
@@ -947,19 +947,19 @@ weechat_lua_command_cb (const void *pointer, void *data,
}
else
{
- if (weechat_strcasecmp (argv[1], "list") == 0)
+ if (weechat_strcmp (argv[1], "list") == 0)
{
plugin_script_display_list (weechat_lua_plugin, lua_scripts,
argv_eol[2], 0);
}
- else if (weechat_strcasecmp (argv[1], "listfull") == 0)
+ else if (weechat_strcmp (argv[1], "listfull") == 0)
{
plugin_script_display_list (weechat_lua_plugin, lua_scripts,
argv_eol[2], 1);
}
- else if ((weechat_strcasecmp (argv[1], "load") == 0)
- || (weechat_strcasecmp (argv[1], "reload") == 0)
- || (weechat_strcasecmp (argv[1], "unload") == 0))
+ else if ((weechat_strcmp (argv[1], "load") == 0)
+ || (weechat_strcmp (argv[1], "reload") == 0)
+ || (weechat_strcmp (argv[1], "unload") == 0))
{
ptr_name = argv_eol[2];
if (strncmp (ptr_name, "-q ", 3) == 0)
@@ -971,7 +971,7 @@ weechat_lua_command_cb (const void *pointer, void *data,
ptr_name++;
}
}
- if (weechat_strcasecmp (argv[1], "load") == 0)
+ if (weechat_strcmp (argv[1], "load") == 0)
{
/* load lua script */
path_script = plugin_script_search_path (weechat_lua_plugin,
@@ -981,19 +981,19 @@ weechat_lua_command_cb (const void *pointer, void *data,
if (path_script)
free (path_script);
}
- else if (weechat_strcasecmp (argv[1], "reload") == 0)
+ else if (weechat_strcmp (argv[1], "reload") == 0)
{
/* reload one lua script */
weechat_lua_reload_name (ptr_name);
}
- else if (weechat_strcasecmp (argv[1], "unload") == 0)
+ else if (weechat_strcmp (argv[1], "unload") == 0)
{
/* unload lua script */
weechat_lua_unload_name (ptr_name);
}
lua_quiet = 0;
}
- else if (weechat_strcasecmp (argv[1], "eval") == 0)
+ else if (weechat_strcmp (argv[1], "eval") == 0)
{
send_to_buffer_as_input = 0;
exec_commands = 0;
@@ -1136,7 +1136,7 @@ weechat_lua_signal_debug_dump_cb (const void *pointer, void *data,
(void) type_data;
if (!signal_data
- || (weechat_strcasecmp ((char *)signal_data, LUA_PLUGIN_NAME) == 0))
+ || (weechat_strcmp ((char *)signal_data, LUA_PLUGIN_NAME) == 0))
{
plugin_script_print_log (weechat_lua_plugin, lua_scripts);
}
diff --git a/src/plugins/perl/weechat-perl.c b/src/plugins/perl/weechat-perl.c
index fc97edece..c44315b1f 100644
--- a/src/plugins/perl/weechat-perl.c
+++ b/src/plugins/perl/weechat-perl.c
@@ -898,30 +898,30 @@ weechat_perl_command_cb (const void *pointer, void *data,
}
else if (argc == 2)
{
- if (weechat_strcasecmp (argv[1], "list") == 0)
+ if (weechat_strcmp (argv[1], "list") == 0)
{
plugin_script_display_list (weechat_perl_plugin, perl_scripts,
NULL, 0);
}
- else if (weechat_strcasecmp (argv[1], "listfull") == 0)
+ else if (weechat_strcmp (argv[1], "listfull") == 0)
{
plugin_script_display_list (weechat_perl_plugin, perl_scripts,
NULL, 1);
}
- else if (weechat_strcasecmp (argv[1], "autoload") == 0)
+ else if (weechat_strcmp (argv[1], "autoload") == 0)
{
plugin_script_auto_load (weechat_perl_plugin, &weechat_perl_load_cb);
}
- else if (weechat_strcasecmp (argv[1], "reload") == 0)
+ else if (weechat_strcmp (argv[1], "reload") == 0)
{
weechat_perl_unload_all ();
plugin_script_auto_load (weechat_perl_plugin, &weechat_perl_load_cb);
}
- else if (weechat_strcasecmp (argv[1], "unload") == 0)
+ else if (weechat_strcmp (argv[1], "unload") == 0)
{
weechat_perl_unload_all ();
}
- else if (weechat_strcasecmp (argv[1], "version") == 0)
+ else if (weechat_strcmp (argv[1], "version") == 0)
{
plugin_script_display_interpreter (weechat_perl_plugin, 0);
}
@@ -930,19 +930,19 @@ weechat_perl_command_cb (const void *pointer, void *data,
}
else
{
- if (weechat_strcasecmp (argv[1], "list") == 0)
+ if (weechat_strcmp (argv[1], "list") == 0)
{
plugin_script_display_list (weechat_perl_plugin, perl_scripts,
argv_eol[2], 0);
}
- else if (weechat_strcasecmp (argv[1], "listfull") == 0)
+ else if (weechat_strcmp (argv[1], "listfull") == 0)
{
plugin_script_display_list (weechat_perl_plugin, perl_scripts,
argv_eol[2], 1);
}
- else if ((weechat_strcasecmp (argv[1], "load") == 0)
- || (weechat_strcasecmp (argv[1], "reload") == 0)
- || (weechat_strcasecmp (argv[1], "unload") == 0))
+ else if ((weechat_strcmp (argv[1], "load") == 0)
+ || (weechat_strcmp (argv[1], "reload") == 0)
+ || (weechat_strcmp (argv[1], "unload") == 0))
{
ptr_name = argv_eol[2];
if (strncmp (ptr_name, "-q ", 3) == 0)
@@ -954,7 +954,7 @@ weechat_perl_command_cb (const void *pointer, void *data,
ptr_name++;
}
}
- if (weechat_strcasecmp (argv[1], "load") == 0)
+ if (weechat_strcmp (argv[1], "load") == 0)
{
/* load perl script */
path_script = plugin_script_search_path (weechat_perl_plugin,
@@ -964,19 +964,19 @@ weechat_perl_command_cb (const void *pointer, void *data,
if (path_script)
free (path_script);
}
- else if (weechat_strcasecmp (argv[1], "reload") == 0)
+ else if (weechat_strcmp (argv[1], "reload") == 0)
{
/* reload one perl script */
weechat_perl_reload_name (ptr_name);
}
- else if (weechat_strcasecmp (argv[1], "unload") == 0)
+ else if (weechat_strcmp (argv[1], "unload") == 0)
{
/* unload perl script */
weechat_perl_unload_name (ptr_name);
}
perl_quiet = 0;
}
- else if (weechat_strcasecmp (argv[1], "eval") == 0)
+ else if (weechat_strcmp (argv[1], "eval") == 0)
{
send_to_buffer_as_input = 0;
exec_commands = 0;
@@ -1119,7 +1119,7 @@ weechat_perl_signal_debug_dump_cb (const void *pointer, void *data,
(void) type_data;
if (!signal_data
- || (weechat_strcasecmp ((char *)signal_data, PERL_PLUGIN_NAME) == 0))
+ || (weechat_strcmp ((char *)signal_data, PERL_PLUGIN_NAME) == 0))
{
plugin_script_print_log (weechat_perl_plugin, perl_scripts);
}
diff --git a/src/plugins/php/weechat-php.c b/src/plugins/php/weechat-php.c
index 97b9723ef..8528a3e5f 100644
--- a/src/plugins/php/weechat-php.c
+++ b/src/plugins/php/weechat-php.c
@@ -916,30 +916,30 @@ weechat_php_command_cb (const void *pointer, void *data,
}
else if (argc == 2)
{
- if (weechat_strcasecmp (argv[1], "list") == 0)
+ if (weechat_strcmp (argv[1], "list") == 0)
{
plugin_script_display_list (weechat_php_plugin, php_scripts,
NULL, 0);
}
- else if (weechat_strcasecmp (argv[1], "listfull") == 0)
+ else if (weechat_strcmp (argv[1], "listfull") == 0)
{
plugin_script_display_list (weechat_php_plugin, php_scripts,
NULL, 1);
}
- else if (weechat_strcasecmp (argv[1], "autoload") == 0)
+ else if (weechat_strcmp (argv[1], "autoload") == 0)
{
plugin_script_auto_load (weechat_php_plugin, &weechat_php_load_cb);
}
- else if (weechat_strcasecmp (argv[1], "reload") == 0)
+ else if (weechat_strcmp (argv[1], "reload") == 0)
{
weechat_php_unload_all ();
plugin_script_auto_load (weechat_php_plugin, &weechat_php_load_cb);
}
- else if (weechat_strcasecmp (argv[1], "unload") == 0)
+ else if (weechat_strcmp (argv[1], "unload") == 0)
{
weechat_php_unload_all ();
}
- else if (weechat_strcasecmp (argv[1], "version") == 0)
+ else if (weechat_strcmp (argv[1], "version") == 0)
{
plugin_script_display_interpreter (weechat_php_plugin, 0);
}
@@ -948,19 +948,19 @@ weechat_php_command_cb (const void *pointer, void *data,
}
else
{
- if (weechat_strcasecmp (argv[1], "list") == 0)
+ if (weechat_strcmp (argv[1], "list") == 0)
{
plugin_script_display_list (weechat_php_plugin, php_scripts,
argv_eol[2], 0);
}
- else if (weechat_strcasecmp (argv[1], "listfull") == 0)
+ else if (weechat_strcmp (argv[1], "listfull") == 0)
{
plugin_script_display_list (weechat_php_plugin, php_scripts,
argv_eol[2], 1);
}
- else if ((weechat_strcasecmp (argv[1], "load") == 0)
- || (weechat_strcasecmp (argv[1], "reload") == 0)
- || (weechat_strcasecmp (argv[1], "unload") == 0))
+ else if ((weechat_strcmp (argv[1], "load") == 0)
+ || (weechat_strcmp (argv[1], "reload") == 0)
+ || (weechat_strcmp (argv[1], "unload") == 0))
{
ptr_name = argv_eol[2];
if (strncmp (ptr_name, "-q ", 3) == 0)
@@ -972,7 +972,7 @@ weechat_php_command_cb (const void *pointer, void *data,
ptr_name++;
}
}
- if (weechat_strcasecmp (argv[1], "load") == 0)
+ if (weechat_strcmp (argv[1], "load") == 0)
{
/* load PHP script */
path_script = plugin_script_search_path (weechat_php_plugin,
@@ -982,19 +982,19 @@ weechat_php_command_cb (const void *pointer, void *data,
if (path_script)
free (path_script);
}
- else if (weechat_strcasecmp (argv[1], "reload") == 0)
+ else if (weechat_strcmp (argv[1], "reload") == 0)
{
/* reload one PHP script */
weechat_php_reload_name (ptr_name);
}
- else if (weechat_strcasecmp (argv[1], "unload") == 0)
+ else if (weechat_strcmp (argv[1], "unload") == 0)
{
/* unload PHP script */
weechat_php_unload_name (ptr_name);
}
php_quiet = 0;
}
- else if (weechat_strcasecmp (argv[1], "eval") == 0)
+ else if (weechat_strcmp (argv[1], "eval") == 0)
{
send_to_buffer_as_input = 0;
exec_commands = 0;
@@ -1139,7 +1139,7 @@ weechat_php_signal_debug_dump_cb (const void *pointer, void *data,
(void) type_data;
if (!signal_data
- || (weechat_strcasecmp ((char *)signal_data, PHP_PLUGIN_NAME) == 0))
+ || (weechat_strcmp ((char *)signal_data, PHP_PLUGIN_NAME) == 0))
{
plugin_script_print_log (weechat_php_plugin, php_scripts);
}
diff --git a/src/plugins/python/weechat-python.c b/src/plugins/python/weechat-python.c
index b0cc081b9..bdba2a123 100644
--- a/src/plugins/python/weechat-python.c
+++ b/src/plugins/python/weechat-python.c
@@ -1141,30 +1141,30 @@ weechat_python_command_cb (const void *pointer, void *data,
}
else if (argc == 2)
{
- if (weechat_strcasecmp (argv[1], "list") == 0)
+ if (weechat_strcmp (argv[1], "list") == 0)
{
plugin_script_display_list (weechat_python_plugin, python_scripts,
NULL, 0);
}
- else if (weechat_strcasecmp (argv[1], "listfull") == 0)
+ else if (weechat_strcmp (argv[1], "listfull") == 0)
{
plugin_script_display_list (weechat_python_plugin, python_scripts,
NULL, 1);
}
- else if (weechat_strcasecmp (argv[1], "autoload") == 0)
+ else if (weechat_strcmp (argv[1], "autoload") == 0)
{
plugin_script_auto_load (weechat_python_plugin, &weechat_python_load_cb);
}
- else if (weechat_strcasecmp (argv[1], "reload") == 0)
+ else if (weechat_strcmp (argv[1], "reload") == 0)
{
weechat_python_unload_all ();
plugin_script_auto_load (weechat_python_plugin, &weechat_python_load_cb);
}
- else if (weechat_strcasecmp (argv[1], "unload") == 0)
+ else if (weechat_strcmp (argv[1], "unload") == 0)
{
weechat_python_unload_all ();
}
- else if (weechat_strcasecmp (argv[1], "version") == 0)
+ else if (weechat_strcmp (argv[1], "version") == 0)
{
plugin_script_display_interpreter (weechat_python_plugin, 0);
}
@@ -1173,19 +1173,19 @@ weechat_python_command_cb (const void *pointer, void *data,
}
else
{
- if (weechat_strcasecmp (argv[1], "list") == 0)
+ if (weechat_strcmp (argv[1], "list") == 0)
{
plugin_script_display_list (weechat_python_plugin, python_scripts,
argv_eol[2], 0);
}
- else if (weechat_strcasecmp (argv[1], "listfull") == 0)
+ else if (weechat_strcmp (argv[1], "listfull") == 0)
{
plugin_script_display_list (weechat_python_plugin, python_scripts,
argv_eol[2], 1);
}
- else if ((weechat_strcasecmp (argv[1], "load") == 0)
- || (weechat_strcasecmp (argv[1], "reload") == 0)
- || (weechat_strcasecmp (argv[1], "unload") == 0))
+ else if ((weechat_strcmp (argv[1], "load") == 0)
+ || (weechat_strcmp (argv[1], "reload") == 0)
+ || (weechat_strcmp (argv[1], "unload") == 0))
{
ptr_name = argv_eol[2];
if (strncmp (ptr_name, "-q ", 3) == 0)
@@ -1197,7 +1197,7 @@ weechat_python_command_cb (const void *pointer, void *data,
ptr_name++;
}
}
- if (weechat_strcasecmp (argv[1], "load") == 0)
+ if (weechat_strcmp (argv[1], "load") == 0)
{
/* load python script */
path_script = plugin_script_search_path (weechat_python_plugin,
@@ -1207,19 +1207,19 @@ weechat_python_command_cb (const void *pointer, void *data,
if (path_script)
free (path_script);
}
- else if (weechat_strcasecmp (argv[1], "reload") == 0)
+ else if (weechat_strcmp (argv[1], "reload") == 0)
{
/* reload one python script */
weechat_python_reload_name (ptr_name);
}
- else if (weechat_strcasecmp (argv[1], "unload") == 0)
+ else if (weechat_strcmp (argv[1], "unload") == 0)
{
/* unload python script */
weechat_python_unload_name (ptr_name);
}
python_quiet = 0;
}
- else if (weechat_strcasecmp (argv[1], "eval") == 0)
+ else if (weechat_strcmp (argv[1], "eval") == 0)
{
send_to_buffer_as_input = 0;
exec_commands = 0;
@@ -1363,7 +1363,7 @@ weechat_python_signal_debug_dump_cb (const void *pointer, void *data,
(void) type_data;
if (!signal_data
- || (weechat_strcasecmp ((char *)signal_data, PYTHON_PLUGIN_NAME) == 0))
+ || (weechat_strcmp ((char *)signal_data, PYTHON_PLUGIN_NAME) == 0))
{
plugin_script_print_log (weechat_python_plugin, python_scripts);
}
diff --git a/src/plugins/relay/relay-command.c b/src/plugins/relay/relay-command.c
index 97a671b1d..f255a3066 100644
--- a/src/plugins/relay/relay-command.c
+++ b/src/plugins/relay/relay-command.c
@@ -204,25 +204,25 @@ relay_command_relay (const void *pointer, void *data,
if (argc > 1)
{
- if (weechat_strcasecmp (argv[1], "list") == 0)
+ if (weechat_strcmp (argv[1], "list") == 0)
{
relay_command_client_list (0);
return WEECHAT_RC_OK;
}
- if (weechat_strcasecmp (argv[1], "listfull") == 0)
+ if (weechat_strcmp (argv[1], "listfull") == 0)
{
relay_command_client_list (1);
return WEECHAT_RC_OK;
}
- if (weechat_strcasecmp (argv[1], "listrelay") == 0)
+ if (weechat_strcmp (argv[1], "listrelay") == 0)
{
relay_command_server_list ();
return WEECHAT_RC_OK;
}
- if (weechat_strcasecmp (argv[1], "add") == 0)
+ if (weechat_strcmp (argv[1], "add") == 0)
{
WEECHAT_COMMAND_MIN_ARGS(4, "add");
relay_server_get_protocol_args (argv[2], NULL, NULL, NULL,
@@ -245,7 +245,7 @@ relay_command_relay (const void *pointer, void *data,
return WEECHAT_RC_OK;
}
- if (weechat_strcasecmp (argv[1], "del") == 0)
+ if (weechat_strcmp (argv[1], "del") == 0)
{
WEECHAT_COMMAND_MIN_ARGS(3, "del");
ptr_server = relay_server_search (argv_eol[2]);
@@ -279,7 +279,7 @@ relay_command_relay (const void *pointer, void *data,
return WEECHAT_RC_OK;
}
- if (weechat_strcasecmp (argv[1], "stop") == 0)
+ if (weechat_strcmp (argv[1], "stop") == 0)
{
WEECHAT_COMMAND_MIN_ARGS(3, "stop");
ptr_server = relay_server_search (argv_eol[2]);
@@ -298,7 +298,7 @@ relay_command_relay (const void *pointer, void *data,
return WEECHAT_RC_OK;
}
- if (weechat_strcasecmp (argv[1], "start") == 0)
+ if (weechat_strcmp (argv[1], "start") == 0)
{
WEECHAT_COMMAND_MIN_ARGS(3, "start");
ptr_server = relay_server_search (argv_eol[2]);
@@ -318,7 +318,7 @@ relay_command_relay (const void *pointer, void *data,
return WEECHAT_RC_OK;
}
- if (weechat_strcasecmp (argv[1], "restart") == 0)
+ if (weechat_strcmp (argv[1], "restart") == 0)
{
WEECHAT_COMMAND_MIN_ARGS(3, "restart");
ptr_server = relay_server_search (argv_eol[2]);
@@ -338,19 +338,19 @@ relay_command_relay (const void *pointer, void *data,
return WEECHAT_RC_OK;
}
- if (weechat_strcasecmp (argv[1], "raw") == 0)
+ if (weechat_strcmp (argv[1], "raw") == 0)
{
relay_raw_open (1);
return WEECHAT_RC_OK;
}
- if (weechat_strcasecmp (argv[1], "sslcertkey") == 0)
+ if (weechat_strcmp (argv[1], "sslcertkey") == 0)
{
relay_network_set_ssl_cert_key (1);
return WEECHAT_RC_OK;
}
- if (weechat_strcasecmp (argv[1], "up") == 0)
+ if (weechat_strcmp (argv[1], "up") == 0)
{
if (relay_buffer && (relay_buffer_selected_line > 0))
{
@@ -360,7 +360,7 @@ relay_command_relay (const void *pointer, void *data,
return WEECHAT_RC_OK;
}
- if (weechat_strcasecmp (argv[1], "down") == 0)
+ if (weechat_strcmp (argv[1], "down") == 0)
{
if (relay_buffer
&& relay_buffer_selected_line < relay_client_count - 1)
diff --git a/src/plugins/relay/relay.c b/src/plugins/relay/relay.c
index 2553041ad..dd8932ae0 100644
--- a/src/plugins/relay/relay.c
+++ b/src/plugins/relay/relay.c
@@ -171,7 +171,7 @@ relay_debug_dump_cb (const void *pointer, void *data,
(void) type_data;
if (!signal_data
- || (weechat_strcasecmp ((char *)signal_data, RELAY_PLUGIN_NAME) == 0))
+ || (weechat_strcmp ((char *)signal_data, RELAY_PLUGIN_NAME) == 0))
{
weechat_log_printf ("");
weechat_log_printf ("***** \"%s\" plugin dump *****",
diff --git a/src/plugins/ruby/weechat-ruby.c b/src/plugins/ruby/weechat-ruby.c
index 922c77d9f..3105fcfc7 100644
--- a/src/plugins/ruby/weechat-ruby.c
+++ b/src/plugins/ruby/weechat-ruby.c
@@ -952,30 +952,30 @@ weechat_ruby_command_cb (const void *pointer, void *data,
}
else if (argc == 2)
{
- if (weechat_strcasecmp (argv[1], "list") == 0)
+ if (weechat_strcmp (argv[1], "list") == 0)
{
plugin_script_display_list (weechat_ruby_plugin, ruby_scripts,
NULL, 0);
}
- else if (weechat_strcasecmp (argv[1], "listfull") == 0)
+ else if (weechat_strcmp (argv[1], "listfull") == 0)
{
plugin_script_display_list (weechat_ruby_plugin, ruby_scripts,
NULL, 1);
}
- else if (weechat_strcasecmp (argv[1], "autoload") == 0)
+ else if (weechat_strcmp (argv[1], "autoload") == 0)
{
plugin_script_auto_load (weechat_ruby_plugin, &weechat_ruby_load_cb);
}
- else if (weechat_strcasecmp (argv[1], "reload") == 0)
+ else if (weechat_strcmp (argv[1], "reload") == 0)
{
weechat_ruby_unload_all ();
plugin_script_auto_load (weechat_ruby_plugin, &weechat_ruby_load_cb);
}
- else if (weechat_strcasecmp (argv[1], "unload") == 0)
+ else if (weechat_strcmp (argv[1], "unload") == 0)
{
weechat_ruby_unload_all ();
}
- else if (weechat_strcasecmp (argv[1], "version") == 0)
+ else if (weechat_strcmp (argv[1], "version") == 0)
{
plugin_script_display_interpreter (weechat_ruby_plugin, 0);
}
@@ -984,19 +984,19 @@ weechat_ruby_command_cb (const void *pointer, void *data,
}
else
{
- if (weechat_strcasecmp (argv[1], "list") == 0)
+ if (weechat_strcmp (argv[1], "list") == 0)
{
plugin_script_display_list (weechat_ruby_plugin, ruby_scripts,
argv_eol[2], 0);
}
- else if (weechat_strcasecmp (argv[1], "listfull") == 0)
+ else if (weechat_strcmp (argv[1], "listfull") == 0)
{
plugin_script_display_list (weechat_ruby_plugin, ruby_scripts,
argv_eol[2], 1);
}
- else if ((weechat_strcasecmp (argv[1], "load") == 0)
- || (weechat_strcasecmp (argv[1], "reload") == 0)
- || (weechat_strcasecmp (argv[1], "unload") == 0))
+ else if ((weechat_strcmp (argv[1], "load") == 0)
+ || (weechat_strcmp (argv[1], "reload") == 0)
+ || (weechat_strcmp (argv[1], "unload") == 0))
{
ptr_name = argv_eol[2];
if (strncmp (ptr_name, "-q ", 3) == 0)
@@ -1008,7 +1008,7 @@ weechat_ruby_command_cb (const void *pointer, void *data,
ptr_name++;
}
}
- if (weechat_strcasecmp (argv[1], "load") == 0)
+ if (weechat_strcmp (argv[1], "load") == 0)
{
/* load ruby script */
path_script = plugin_script_search_path (weechat_ruby_plugin,
@@ -1018,19 +1018,19 @@ weechat_ruby_command_cb (const void *pointer, void *data,
if (path_script)
free (path_script);
}
- else if (weechat_strcasecmp (argv[1], "reload") == 0)
+ else if (weechat_strcmp (argv[1], "reload") == 0)
{
/* reload one ruby script */
weechat_ruby_reload_name (ptr_name);
}
- else if (weechat_strcasecmp (argv[1], "unload") == 0)
+ else if (weechat_strcmp (argv[1], "unload") == 0)
{
/* unload ruby script */
weechat_ruby_unload_name (ptr_name);
}
ruby_quiet = 0;
}
- else if (weechat_strcasecmp (argv[1], "eval") == 0)
+ else if (weechat_strcmp (argv[1], "eval") == 0)
{
send_to_buffer_as_input = 0;
exec_commands = 0;
@@ -1173,7 +1173,7 @@ weechat_ruby_signal_debug_dump_cb (const void *pointer, void *data,
(void) type_data;
if (!signal_data
- || (weechat_strcasecmp ((char *)signal_data, RUBY_PLUGIN_NAME) == 0))
+ || (weechat_strcmp ((char *)signal_data, RUBY_PLUGIN_NAME) == 0))
{
plugin_script_print_log (weechat_ruby_plugin, ruby_scripts);
}
diff --git a/src/plugins/script/script-action.c b/src/plugins/script/script-action.c
index 28e349f9e..89994a1fe 100644
--- a/src/plugins/script/script-action.c
+++ b/src/plugins/script/script-action.c
@@ -1294,7 +1294,7 @@ script_action_run_all ()
&argc);
if (argv && argv_eol)
{
- if (weechat_strcasecmp (argv[0], "buffer") == 0)
+ if (weechat_strcmp (argv[0], "buffer") == 0)
{
/* open buffer with list of scripts */
if (!script_buffer)
@@ -1304,17 +1304,17 @@ script_action_run_all ()
}
weechat_buffer_set (script_buffer, "display", "1");
}
- else if (weechat_strcasecmp (argv[0], "list") == 0)
+ else if (weechat_strcmp (argv[0], "list") == 0)
{
if (argc > 1)
{
- if (weechat_strcasecmp (argv[1], "-i") == 0)
+ if (weechat_strcmp (argv[1], "-i") == 0)
script_action_run_list_input (0, 0);
- else if (weechat_strcasecmp (argv[1], "-il") == 0)
+ else if (weechat_strcmp (argv[1], "-il") == 0)
script_action_run_list_input (0, 1);
- else if (weechat_strcasecmp (argv[1], "-o") == 0)
+ else if (weechat_strcmp (argv[1], "-o") == 0)
script_action_run_list_input (1, 0);
- else if (weechat_strcasecmp (argv[1], "-ol") == 0)
+ else if (weechat_strcmp (argv[1], "-ol") == 0)
script_action_run_list_input (1, 1);
else
script_action_run_list ();
@@ -1322,49 +1322,49 @@ script_action_run_all ()
else
script_action_run_list ();
}
- else if (weechat_strcasecmp (argv[0], "load") == 0)
+ else if (weechat_strcmp (argv[0], "load") == 0)
{
for (j = 1; j < argc; j++)
{
script_action_run_load (argv[j], quiet);
}
}
- else if (weechat_strcasecmp (argv[0], "unload") == 0)
+ else if (weechat_strcmp (argv[0], "unload") == 0)
{
for (j = 1; j < argc; j++)
{
script_action_run_unload (argv[j], quiet);
}
}
- else if (weechat_strcasecmp (argv[0], "reload") == 0)
+ else if (weechat_strcmp (argv[0], "reload") == 0)
{
for (j = 1; j < argc; j++)
{
script_action_run_reload (argv[j], quiet);
}
}
- else if (weechat_strcasecmp (argv[0], "autoload") == 0)
+ else if (weechat_strcmp (argv[0], "autoload") == 0)
{
for (j = 1; j < argc; j++)
{
script_action_run_autoload (argv[j], quiet, 1);
}
}
- else if (weechat_strcasecmp (argv[0], "noautoload") == 0)
+ else if (weechat_strcmp (argv[0], "noautoload") == 0)
{
for (j = 1; j < argc; j++)
{
script_action_run_autoload (argv[j], quiet, 0);
}
}
- else if (weechat_strcasecmp (argv[0], "toggleautoload") == 0)
+ else if (weechat_strcmp (argv[0], "toggleautoload") == 0)
{
for (j = 1; j < argc; j++)
{
script_action_run_autoload (argv[j], quiet, -1);
}
}
- else if (weechat_strcasecmp (argv[0], "install") == 0)
+ else if (weechat_strcmp (argv[0], "install") == 0)
{
script_found = 0;
for (j = 1; j < argc; j++)
@@ -1402,14 +1402,14 @@ script_action_run_all ()
if (script_found)
script_action_run_install (quiet);
}
- else if (weechat_strcasecmp (argv[0], "remove") == 0)
+ else if (weechat_strcmp (argv[0], "remove") == 0)
{
for (j = 1; j < argc; j++)
{
script_action_run_remove (argv[j], quiet);
}
}
- else if (weechat_strcasecmp (argv[0], "installremove") == 0)
+ else if (weechat_strcmp (argv[0], "installremove") == 0)
{
script_found = 0;
for (j = 1; j < argc; j++)
@@ -1443,7 +1443,7 @@ script_action_run_all ()
if (script_found)
script_action_run_install (quiet);
}
- else if (weechat_strcasecmp (argv[0], "hold") == 0)
+ else if (weechat_strcmp (argv[0], "hold") == 0)
{
script_found = 0;
for (j = 1; j < argc; j++)
@@ -1454,7 +1454,7 @@ script_action_run_all ()
if (script_found)
script_buffer_refresh (0);
}
- else if (weechat_strcasecmp (argv[0], "show") == 0)
+ else if (weechat_strcmp (argv[0], "show") == 0)
{
if (!script_buffer)
script_buffer_open ();
@@ -1462,11 +1462,11 @@ script_action_run_all ()
quiet);
weechat_buffer_set (script_buffer, "display", "1");
}
- else if (weechat_strcasecmp (argv[0], "showdiff") == 0)
+ else if (weechat_strcmp (argv[0], "showdiff") == 0)
{
script_action_run_showdiff ();
}
- else if (weechat_strcasecmp (argv[0], "upgrade") == 0)
+ else if (weechat_strcmp (argv[0], "upgrade") == 0)
{
script_found = 0;
for (ptr_script = scripts_repo; ptr_script;
diff --git a/src/plugins/script/script-command.c b/src/plugins/script/script-command.c
index c943514e4..98aad22f4 100644
--- a/src/plugins/script/script-command.c
+++ b/src/plugins/script/script-command.c
@@ -91,8 +91,8 @@ script_command_action (struct t_gui_buffer *buffer,
{
/* action on current line of script buffer */
if (script_buffer_detail_script
- && ((weechat_strcasecmp (action, "show") == 0)
- || (weechat_strcasecmp (action, "showdiff") == 0)))
+ && ((weechat_strcmp (action, "show") == 0)
+ || (weechat_strcmp (action, "showdiff") == 0)))
{
/* if detail on script is displayed, back to list */
snprintf (str_action, sizeof (str_action),
@@ -144,7 +144,7 @@ script_command_script (const void *pointer, void *data,
return WEECHAT_RC_OK;
}
- if (weechat_strcasecmp (argv[1], "go") == 0)
+ if (weechat_strcmp (argv[1], "go") == 0)
{
if ((argc > 2) && script_buffer && !script_buffer_detail_script)
{
@@ -158,7 +158,7 @@ script_command_script (const void *pointer, void *data,
return WEECHAT_RC_OK;
}
- if (weechat_strcasecmp (argv[1], "search") == 0)
+ if (weechat_strcmp (argv[1], "search") == 0)
{
if (scripts_repo)
script_repo_filter_scripts ((argc > 2) ? argv_eol[2] : NULL);
@@ -168,18 +168,18 @@ script_command_script (const void *pointer, void *data,
return WEECHAT_RC_OK;
}
- if (weechat_strcasecmp (argv[1], "list") == 0)
+ if (weechat_strcmp (argv[1], "list") == 0)
{
script_action_schedule (argv_eol[1], 1, 0, 0);
return WEECHAT_RC_OK;
}
- if ((weechat_strcasecmp (argv[1], "load") == 0)
- || (weechat_strcasecmp (argv[1], "unload") == 0)
- || (weechat_strcasecmp (argv[1], "reload") == 0)
- || (weechat_strcasecmp (argv[1], "autoload") == 0)
- || (weechat_strcasecmp (argv[1], "noautoload") == 0)
- || (weechat_strcasecmp (argv[1], "toggleautoload") == 0))
+ if ((weechat_strcmp (argv[1], "load") == 0)
+ || (weechat_strcmp (argv[1], "unload") == 0)
+ || (weechat_strcmp (argv[1], "reload") == 0)
+ || (weechat_strcmp (argv[1], "autoload") == 0)
+ || (weechat_strcmp (argv[1], "noautoload") == 0)
+ || (weechat_strcmp (argv[1], "toggleautoload") == 0))
{
script_command_action (buffer,
argv[1],
@@ -189,12 +189,12 @@ script_command_script (const void *pointer, void *data,
return WEECHAT_RC_OK;
}
- if ((weechat_strcasecmp (argv[1], "install") == 0)
- || (weechat_strcasecmp (argv[1], "remove") == 0)
- || (weechat_strcasecmp (argv[1], "installremove") == 0)
- || (weechat_strcasecmp (argv[1], "hold") == 0)
- || (weechat_strcasecmp (argv[1], "show") == 0)
- || (weechat_strcasecmp (argv[1], "showdiff") == 0))
+ if ((weechat_strcmp (argv[1], "install") == 0)
+ || (weechat_strcmp (argv[1], "remove") == 0)
+ || (weechat_strcmp (argv[1], "installremove") == 0)
+ || (weechat_strcmp (argv[1], "hold") == 0)
+ || (weechat_strcmp (argv[1], "show") == 0)
+ || (weechat_strcmp (argv[1], "showdiff") == 0))
{
script_command_action (buffer,
argv[1],
@@ -204,19 +204,19 @@ script_command_script (const void *pointer, void *data,
return WEECHAT_RC_OK;
}
- if (weechat_strcasecmp (argv[1], "upgrade") == 0)
+ if (weechat_strcmp (argv[1], "upgrade") == 0)
{
script_action_schedule ("upgrade", 1, 1, 0);
return WEECHAT_RC_OK;
}
- if (weechat_strcasecmp (argv[1], "update") == 0)
+ if (weechat_strcmp (argv[1], "update") == 0)
{
script_repo_file_update (0);
return WEECHAT_RC_OK;
}
- if (weechat_strcasecmp (argv[1], "up") == 0)
+ if (weechat_strcmp (argv[1], "up") == 0)
{
if (script_buffer)
{
@@ -250,7 +250,7 @@ script_command_script (const void *pointer, void *data,
return WEECHAT_RC_OK;
}
- if (weechat_strcasecmp (argv[1], "down") == 0)
+ if (weechat_strcmp (argv[1], "down") == 0)
{
if (script_buffer)
{
diff --git a/src/plugins/script/script.c b/src/plugins/script/script.c
index 95a946f10..16481c0d4 100644
--- a/src/plugins/script/script.c
+++ b/src/plugins/script/script.c
@@ -244,7 +244,7 @@ script_debug_dump_cb (const void *pointer, void *data,
(void) type_data;
if (!signal_data
- || (weechat_strcasecmp ((char *)signal_data, SCRIPT_PLUGIN_NAME) == 0))
+ || (weechat_strcmp ((char *)signal_data, SCRIPT_PLUGIN_NAME) == 0))
{
weechat_log_printf ("");
weechat_log_printf ("***** \"%s\" plugin dump *****",
diff --git a/src/plugins/spell/spell-command.c b/src/plugins/spell/spell-command.c
index 51212ca26..c2f38980a 100644
--- a/src/plugins/spell/spell-command.c
+++ b/src/plugins/spell/spell-command.c
@@ -392,7 +392,7 @@ spell_command_cb (const void *pointer, void *data,
}
/* enable spell */
- if (weechat_strcasecmp (argv[1], "enable") == 0)
+ if (weechat_strcmp (argv[1], "enable") == 0)
{
weechat_config_option_set (spell_config_check_enabled, "1", 1);
weechat_printf (NULL, _("Spell checker enabled"));
@@ -400,7 +400,7 @@ spell_command_cb (const void *pointer, void *data,
}
/* disable spell */
- if (weechat_strcasecmp (argv[1], "disable") == 0)
+ if (weechat_strcmp (argv[1], "disable") == 0)
{
weechat_config_option_set (spell_config_check_enabled, "0", 1);
weechat_printf (NULL, _("Spell checker disabled"));
@@ -408,7 +408,7 @@ spell_command_cb (const void *pointer, void *data,
}
/* toggle spell */
- if (weechat_strcasecmp (argv[1], "toggle") == 0)
+ if (weechat_strcmp (argv[1], "toggle") == 0)
{
if (spell_enabled)
{
@@ -424,14 +424,14 @@ spell_command_cb (const void *pointer, void *data,
}
/* list of dictionaries */
- if (weechat_strcasecmp (argv[1], "listdict") == 0)
+ if (weechat_strcmp (argv[1], "listdict") == 0)
{
spell_command_speller_list_dicts ();
return WEECHAT_RC_OK;
}
/* set dictionary for current buffer */
- if (weechat_strcasecmp (argv[1], "setdict") == 0)
+ if (weechat_strcmp (argv[1], "setdict") == 0)
{
WEECHAT_COMMAND_MIN_ARGS(3, "setdict");
dicts = weechat_string_replace (argv_eol[2], " ", "");
@@ -443,14 +443,14 @@ spell_command_cb (const void *pointer, void *data,
}
/* delete dictionary used on current buffer */
- if (weechat_strcasecmp (argv[1], "deldict") == 0)
+ if (weechat_strcmp (argv[1], "deldict") == 0)
{
spell_command_set_dict (buffer, NULL);
return WEECHAT_RC_OK;
}
/* add word to personal dictionary */
- if (weechat_strcasecmp (argv[1], "addword") == 0)
+ if (weechat_strcmp (argv[1], "addword") == 0)
{
WEECHAT_COMMAND_MIN_ARGS(3, "addword");
if (argc > 3)
diff --git a/src/plugins/spell/spell.c b/src/plugins/spell/spell.c
index c1e02c6a0..88fd1e04d 100644
--- a/src/plugins/spell/spell.c
+++ b/src/plugins/spell/spell.c
@@ -351,8 +351,7 @@ spell_command_authorized (const char *command)
for (i = 0; i < spell_count_commands_to_check; i++)
{
if ((spell_length_commands_to_check[i] == length_command)
- && (weechat_strcasecmp (command,
- spell_commands_to_check[i]) == 0))
+ && (weechat_strcmp (command, spell_commands_to_check[i]) == 0))
{
/* command is authorized */
return 1;
diff --git a/src/plugins/tcl/weechat-tcl.c b/src/plugins/tcl/weechat-tcl.c
index e1b3783ba..637bf0502 100644
--- a/src/plugins/tcl/weechat-tcl.c
+++ b/src/plugins/tcl/weechat-tcl.c
@@ -598,30 +598,30 @@ weechat_tcl_command_cb (const void *pointer, void *data,
}
else if (argc == 2)
{
- if (weechat_strcasecmp (argv[1], "list") == 0)
+ if (weechat_strcmp (argv[1], "list") == 0)
{
plugin_script_display_list (weechat_tcl_plugin, tcl_scripts,
NULL, 0);
}
- else if (weechat_strcasecmp (argv[1], "listfull") == 0)
+ else if (weechat_strcmp (argv[1], "listfull") == 0)
{
plugin_script_display_list (weechat_tcl_plugin, tcl_scripts,
NULL, 1);
}
- else if (weechat_strcasecmp (argv[1], "autoload") == 0)
+ else if (weechat_strcmp (argv[1], "autoload") == 0)
{
plugin_script_auto_load (weechat_tcl_plugin, &weechat_tcl_load_cb);
}
- else if (weechat_strcasecmp (argv[1], "reload") == 0)
+ else if (weechat_strcmp (argv[1], "reload") == 0)
{
weechat_tcl_unload_all ();
plugin_script_auto_load (weechat_tcl_plugin, &weechat_tcl_load_cb);
}
- else if (weechat_strcasecmp (argv[1], "unload") == 0)
+ else if (weechat_strcmp (argv[1], "unload") == 0)
{
weechat_tcl_unload_all ();
}
- else if (weechat_strcasecmp (argv[1], "version") == 0)
+ else if (weechat_strcmp (argv[1], "version") == 0)
{
plugin_script_display_interpreter (weechat_tcl_plugin, 0);
}
@@ -630,19 +630,19 @@ weechat_tcl_command_cb (const void *pointer, void *data,
}
else
{
- if (weechat_strcasecmp (argv[1], "list") == 0)
+ if (weechat_strcmp (argv[1], "list") == 0)
{
plugin_script_display_list (weechat_tcl_plugin, tcl_scripts,
argv_eol[2], 0);
}
- else if (weechat_strcasecmp (argv[1], "listfull") == 0)
+ else if (weechat_strcmp (argv[1], "listfull") == 0)
{
plugin_script_display_list (weechat_tcl_plugin, tcl_scripts,
argv_eol[2], 1);
}
- else if ((weechat_strcasecmp (argv[1], "load") == 0)
- || (weechat_strcasecmp (argv[1], "reload") == 0)
- || (weechat_strcasecmp (argv[1], "unload") == 0))
+ else if ((weechat_strcmp (argv[1], "load") == 0)
+ || (weechat_strcmp (argv[1], "reload") == 0)
+ || (weechat_strcmp (argv[1], "unload") == 0))
{
ptr_name = argv_eol[2];
if (strncmp (ptr_name, "-q ", 3) == 0)
@@ -654,7 +654,7 @@ weechat_tcl_command_cb (const void *pointer, void *data,
ptr_name++;
}
}
- if (weechat_strcasecmp (argv[1], "load") == 0)
+ if (weechat_strcmp (argv[1], "load") == 0)
{
/* load tcl script */
path_script = plugin_script_search_path (weechat_tcl_plugin,
@@ -664,19 +664,19 @@ weechat_tcl_command_cb (const void *pointer, void *data,
if (path_script)
free (path_script);
}
- else if (weechat_strcasecmp (argv[1], "reload") == 0)
+ else if (weechat_strcmp (argv[1], "reload") == 0)
{
/* reload one tcl script */
weechat_tcl_reload_name (ptr_name);
}
- else if (weechat_strcasecmp (argv[1], "unload") == 0)
+ else if (weechat_strcmp (argv[1], "unload") == 0)
{
/* unload tcl script */
weechat_tcl_unload_name (ptr_name);
}
tcl_quiet = 0;
}
- else if (weechat_strcasecmp (argv[1], "eval") == 0)
+ else if (weechat_strcmp (argv[1], "eval") == 0)
{
send_to_buffer_as_input = 0;
exec_commands = 0;
@@ -821,7 +821,7 @@ weechat_tcl_signal_debug_dump_cb (const void *pointer, void *data,
(void) type_data;
if (!signal_data
- || (weechat_strcasecmp ((char *)signal_data, TCL_PLUGIN_NAME) == 0))
+ || (weechat_strcmp ((char *)signal_data, TCL_PLUGIN_NAME) == 0))
{
plugin_script_print_log (weechat_tcl_plugin, tcl_scripts);
}
diff --git a/src/plugins/trigger/trigger-command.c b/src/plugins/trigger/trigger-command.c
index 9db93adff..9ca8b50d1 100644
--- a/src/plugins/trigger/trigger-command.c
+++ b/src/plugins/trigger/trigger-command.c
@@ -527,30 +527,30 @@ trigger_command_trigger (const void *pointer, void *data,
/* list all triggers */
if ((argc == 1)
- || ((argc == 2) && (weechat_strcasecmp (argv[1], "list") == 0)))
+ || ((argc == 2) && (weechat_strcmp (argv[1], "list") == 0)))
{
trigger_command_list (_("List of triggers:"), 0);
goto end;
}
/* full list of all triggers */
- if ((argc == 2) && (weechat_strcasecmp (argv[1], "listfull") == 0))
+ if ((argc == 2) && (weechat_strcmp (argv[1], "listfull") == 0))
{
trigger_command_list (_("List of triggers:"), 1);
goto end;
}
/* list of default triggers */
- if ((argc == 2) && (weechat_strcasecmp (argv[1], "listdefault") == 0))
+ if ((argc == 2) && (weechat_strcmp (argv[1], "listdefault") == 0))
{
trigger_command_list_default (1);
goto end;
}
/* add a trigger */
- if ((weechat_strcasecmp (argv[1], "add") == 0)
- || (weechat_strcasecmp (argv[1], "addoff") == 0)
- || (weechat_strcasecmp (argv[1], "addreplace") == 0))
+ if ((weechat_strcmp (argv[1], "add") == 0)
+ || (weechat_strcmp (argv[1], "addoff") == 0)
+ || (weechat_strcmp (argv[1], "addreplace") == 0))
{
sargv = weechat_string_split_shell (argv_eol[2], &sargc);
if (!sargv || (sargc < 2))
@@ -636,7 +636,7 @@ trigger_command_trigger (const void *pointer, void *data,
ptr_trigger = trigger_search (sargv[0]);
if (ptr_trigger)
{
- if (weechat_strcasecmp (argv[1], "addreplace") == 0)
+ if (weechat_strcmp (argv[1], "addreplace") == 0)
{
if (ptr_trigger)
{
@@ -672,7 +672,7 @@ trigger_command_trigger (const void *pointer, void *data,
}
ptr_trigger = trigger_new (
sargv[0], /* name */
- (weechat_strcasecmp (argv[1], "addoff") == 0) ? "off" : "on",
+ (weechat_strcmp (argv[1], "addoff") == 0) ? "off" : "on",
sargv[1], /* hook */
(sargc > 2) ? sargv[2] : "", /* arguments */
(sargc > 3) ? sargv[3] : "", /* conditions */
@@ -698,7 +698,7 @@ trigger_command_trigger (const void *pointer, void *data,
}
/* add trigger command in input (to help trigger creation) */
- if (weechat_strcasecmp (argv[1], "addinput") == 0)
+ if (weechat_strcmp (argv[1], "addinput") == 0)
{
type = TRIGGER_HOOK_SIGNAL;
if (argc >= 3)
@@ -748,9 +748,9 @@ trigger_command_trigger (const void *pointer, void *data,
* - output: send the command to the buffer
* - recreate: same as input, but the trigger is first deleted
*/
- if ((weechat_strcasecmp (argv[1], "input") == 0)
- || (weechat_strcasecmp (argv[1], "output") == 0)
- || (weechat_strcasecmp (argv[1], "recreate") == 0))
+ if ((weechat_strcmp (argv[1], "input") == 0)
+ || (weechat_strcmp (argv[1], "output") == 0)
+ || (weechat_strcmp (argv[1], "recreate") == 0))
{
if (argc < 3)
goto error;
@@ -780,7 +780,7 @@ trigger_command_trigger (const void *pointer, void *data,
weechat_config_string (ptr_trigger->options[TRIGGER_OPTION_POST_ACTION]));
input = trigger_command_build_string (
"//trigger %s %s %s \"%s\" \"%s\" \"%s\" \"%s\" \"%s\" \"%s\"",
- (weechat_strcasecmp (argv[1], "recreate") == 0) ? "addreplace" : "add",
+ (weechat_strcmp (argv[1], "recreate") == 0) ? "addreplace" : "add",
ptr_trigger->name,
weechat_config_string (ptr_trigger->options[TRIGGER_OPTION_HOOK]),
arg_arguments,
@@ -803,7 +803,7 @@ trigger_command_trigger (const void *pointer, void *data,
free (arg_post_action);
if (input)
{
- if (weechat_strcasecmp (argv[1], "output") == 0)
+ if (weechat_strcmp (argv[1], "output") == 0)
{
weechat_command (buffer, input);
}
@@ -820,7 +820,7 @@ trigger_command_trigger (const void *pointer, void *data,
}
/* set option in a trigger */
- if (weechat_strcasecmp (argv[1], "set") == 0)
+ if (weechat_strcmp (argv[1], "set") == 0)
{
if (argc < 5)
goto error;
@@ -839,7 +839,7 @@ trigger_command_trigger (const void *pointer, void *data,
trigger_command_error_running (ptr_trigger, argv[1]);
goto end;
}
- if (weechat_strcasecmp (argv[3], "name") == 0)
+ if (weechat_strcmp (argv[3], "name") == 0)
{
trigger_command_rename (ptr_trigger, argv[4]);
goto end;
@@ -870,7 +870,7 @@ trigger_command_trigger (const void *pointer, void *data,
}
/* rename a trigger */
- if (weechat_strcasecmp (argv[1], "rename") == 0)
+ if (weechat_strcmp (argv[1], "rename") == 0)
{
if (argc < 4)
goto error;
@@ -894,7 +894,7 @@ trigger_command_trigger (const void *pointer, void *data,
}
/* copy a trigger */
- if (weechat_strcasecmp (argv[1], "copy") == 0)
+ if (weechat_strcmp (argv[1], "copy") == 0)
{
if (argc < 4)
goto error;
@@ -950,20 +950,20 @@ trigger_command_trigger (const void *pointer, void *data,
}
/* enable/disable/toggle/restart trigger(s) */
- if ((weechat_strcasecmp (argv[1], "enable") == 0)
- || (weechat_strcasecmp (argv[1], "disable") == 0)
- || (weechat_strcasecmp (argv[1], "toggle") == 0)
- || (weechat_strcasecmp (argv[1], "restart") == 0))
+ if ((weechat_strcmp (argv[1], "enable") == 0)
+ || (weechat_strcmp (argv[1], "disable") == 0)
+ || (weechat_strcmp (argv[1], "toggle") == 0)
+ || (weechat_strcmp (argv[1], "restart") == 0))
{
if (argc < 3)
{
- if (weechat_strcasecmp (argv[1], "restart") == 0)
+ if (weechat_strcmp (argv[1], "restart") == 0)
goto error;
- if (weechat_strcasecmp (argv[1], "enable") == 0)
+ if (weechat_strcmp (argv[1], "enable") == 0)
weechat_config_option_set (trigger_config_look_enabled, "1", 1);
- else if (weechat_strcasecmp (argv[1], "disable") == 0)
+ else if (weechat_strcmp (argv[1], "disable") == 0)
weechat_config_option_set (trigger_config_look_enabled, "0", 1);
- else if (weechat_strcasecmp (argv[1], "toggle") == 0)
+ else if (weechat_strcmp (argv[1], "toggle") == 0)
{
weechat_config_option_set (trigger_config_look_enabled,
(trigger_enabled) ? "0" : "1",
@@ -973,13 +973,13 @@ trigger_command_trigger (const void *pointer, void *data,
goto end;
}
enable = -1;
- if (weechat_strcasecmp (argv[1], "enable") == 0)
+ if (weechat_strcmp (argv[1], "enable") == 0)
enable = 1;
- else if (weechat_strcasecmp (argv[1], "disable") == 0)
+ else if (weechat_strcmp (argv[1], "disable") == 0)
enable = 0;
- else if (weechat_strcasecmp (argv[1], "restart") == 0)
+ else if (weechat_strcmp (argv[1], "restart") == 0)
enable = 2;
- if (weechat_strcasecmp (argv[2], "-all") == 0)
+ if (weechat_strcmp (argv[2], "-all") == 0)
{
for (ptr_trigger = triggers; ptr_trigger;
ptr_trigger = ptr_trigger->next_trigger)
@@ -1008,11 +1008,11 @@ trigger_command_trigger (const void *pointer, void *data,
}
/* delete trigger(s) */
- if (weechat_strcasecmp (argv[1], "del") == 0)
+ if (weechat_strcmp (argv[1], "del") == 0)
{
if (argc < 3)
goto error;
- if (weechat_strcasecmp (argv[2], "-all") == 0)
+ if (weechat_strcmp (argv[2], "-all") == 0)
{
count = triggers_count;
ptr_trigger = triggers;
@@ -1066,7 +1066,7 @@ trigger_command_trigger (const void *pointer, void *data,
}
/* show detailed info on a trigger */
- if (weechat_strcasecmp (argv[1], "show") == 0)
+ if (weechat_strcmp (argv[1], "show") == 0)
{
if (argc < 3)
goto error;
@@ -1087,7 +1087,7 @@ trigger_command_trigger (const void *pointer, void *data,
}
/* restore default trigger(s) */
- if (weechat_strcasecmp (argv[1], "restore") == 0)
+ if (weechat_strcmp (argv[1], "restore") == 0)
{
if (argc < 3)
goto error;
@@ -1139,9 +1139,9 @@ trigger_command_trigger (const void *pointer, void *data,
}
/* delete all triggers and restore default ones */
- if (weechat_strcasecmp (argv[1], "default") == 0)
+ if (weechat_strcmp (argv[1], "default") == 0)
{
- if ((argc >= 3) && (weechat_strcasecmp (argv[2], "-yes") == 0))
+ if ((argc >= 3) && (weechat_strcmp (argv[2], "-yes") == 0))
{
ptr_trigger = triggers;
while (ptr_trigger)
@@ -1174,7 +1174,7 @@ trigger_command_trigger (const void *pointer, void *data,
}
/* open the trigger monitor buffer */
- if (weechat_strcasecmp (argv[1], "monitor") == 0)
+ if (weechat_strcmp (argv[1], "monitor") == 0)
{
trigger_buffer_open ((argc > 2) ? argv_eol[2] : NULL, 1);
goto end;
diff --git a/src/plugins/trigger/trigger.c b/src/plugins/trigger/trigger.c
index d5d998d2d..220d9fc45 100644
--- a/src/plugins/trigger/trigger.c
+++ b/src/plugins/trigger/trigger.c
@@ -1354,7 +1354,7 @@ trigger_debug_dump_cb (const void *pointer, void *data,
(void) type_data;
if (!signal_data
- || (weechat_strcasecmp ((char *)signal_data, TRIGGER_PLUGIN_NAME) == 0))
+ || (weechat_strcmp ((char *)signal_data, TRIGGER_PLUGIN_NAME) == 0))
{
weechat_log_printf ("");
weechat_log_printf ("***** \"%s\" plugin dump *****",
diff --git a/src/plugins/xfer/xfer-command.c b/src/plugins/xfer/xfer-command.c
index 493b35103..a94f38b64 100644
--- a/src/plugins/xfer/xfer-command.c
+++ b/src/plugins/xfer/xfer-command.c
@@ -207,13 +207,13 @@ xfer_command_xfer (const void *pointer, void *data,
(void) buffer;
(void) argv_eol;
- if ((argc > 1) && (weechat_strcasecmp (argv[1], "list") == 0))
+ if ((argc > 1) && (weechat_strcmp (argv[1], "list") == 0))
{
xfer_command_xfer_list (0);
return WEECHAT_RC_OK;
}
- if ((argc > 1) && (weechat_strcasecmp (argv[1], "listfull") == 0))
+ if ((argc > 1) && (weechat_strcmp (argv[1], "listfull") == 0))
{
xfer_command_xfer_list (1);
return WEECHAT_RC_OK;
diff --git a/src/plugins/xfer/xfer.c b/src/plugins/xfer/xfer.c
index 4908a6df8..6b081d114 100644
--- a/src/plugins/xfer/xfer.c
+++ b/src/plugins/xfer/xfer.c
@@ -1754,7 +1754,7 @@ xfer_debug_dump_cb (const void *pointer, void *data,
(void) type_data;
if (!signal_data
- || (weechat_strcasecmp ((char *)signal_data, XFER_PLUGIN_NAME) == 0))
+ || (weechat_strcmp ((char *)signal_data, XFER_PLUGIN_NAME) == 0))
{
weechat_log_printf ("");
weechat_log_printf ("***** \"%s\" plugin dump *****",