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/ruby/weechat-ruby.c | |
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/ruby/weechat-ruby.c')
-rw-r--r-- | src/plugins/ruby/weechat-ruby.c | 32 |
1 files changed, 16 insertions, 16 deletions
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); } |