diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2023-01-15 10:54:56 +0100 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2023-01-28 15:13:48 +0100 |
commit | f0415c8ec3c6def45e5e61756e9a521f25e5f8a3 (patch) | |
tree | c8af8e4bd05cbaa2e13d7c671668662954fa342c /src/plugins/php | |
parent | 1de735b7791f9bfd5f0f9f52bd809130558b74b0 (diff) | |
download | weechat-f0415c8ec3c6def45e5e61756e9a521f25e5f8a3.zip |
core, plugins: make commands, hook command_run, completions and aliases case sensitive (issue #1872)
Diffstat (limited to 'src/plugins/php')
-rw-r--r-- | src/plugins/php/weechat-php.c | 32 |
1 files changed, 16 insertions, 16 deletions
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); } |