summaryrefslogtreecommitdiff
path: root/src/plugins/scripts/ruby
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/scripts/ruby')
-rw-r--r--src/plugins/scripts/ruby/CMakeLists.txt2
-rw-r--r--src/plugins/scripts/ruby/Makefile.am2
-rw-r--r--src/plugins/scripts/ruby/ruby.c (renamed from src/plugins/scripts/ruby/weechat-ruby.c)10
3 files changed, 7 insertions, 7 deletions
diff --git a/src/plugins/scripts/ruby/CMakeLists.txt b/src/plugins/scripts/ruby/CMakeLists.txt
index 257aa00cd..d185c4767 100644
--- a/src/plugins/scripts/ruby/CMakeLists.txt
+++ b/src/plugins/scripts/ruby/CMakeLists.txt
@@ -14,7 +14,7 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
-ADD_LIBRARY(ruby MODULE weechat-ruby.c)
+ADD_LIBRARY(ruby MODULE ruby.c)
SET_TARGET_PROPERTIES(ruby PROPERTIES PREFIX "")
diff --git a/src/plugins/scripts/ruby/Makefile.am b/src/plugins/scripts/ruby/Makefile.am
index 4cb489e7f..951702538 100644
--- a/src/plugins/scripts/ruby/Makefile.am
+++ b/src/plugins/scripts/ruby/Makefile.am
@@ -20,6 +20,6 @@ libdir = ${weechat_libdir}/plugins
lib_LTLIBRARIES = ruby.la
-ruby_la_SOURCES = weechat-ruby.c
+ruby_la_SOURCES = ruby.c
ruby_la_LDFLAGS = -module
ruby_la_LIBADD = ../lib_weechat_plugins_scripts.la $(RUBY_LFLAGS)
diff --git a/src/plugins/scripts/ruby/weechat-ruby.c b/src/plugins/scripts/ruby/ruby.c
index c50d51e82..c17c8c43e 100644
--- a/src/plugins/scripts/ruby/weechat-ruby.c
+++ b/src/plugins/scripts/ruby/ruby.c
@@ -2500,18 +2500,18 @@ weechat_ruby_cmd (t_weechat_plugin *plugin,
plugin->print_server (plugin, " (none)");
break;
case 1:
- if (plugin->ascii_strcasecmp (plugin, argv[0], "autoload") == 0)
+ if (plugin->strcasecmp (plugin, argv[0], "autoload") == 0)
weechat_script_auto_load (plugin, "ruby", weechat_ruby_load);
- else if (plugin->ascii_strcasecmp (plugin, argv[0], "reload") == 0)
+ else if (plugin->strcasecmp (plugin, argv[0], "reload") == 0)
{
weechat_ruby_unload_all (plugin);
weechat_script_auto_load (plugin, "ruby", weechat_ruby_load);
}
- else if (plugin->ascii_strcasecmp (plugin, argv[0], "unload") == 0)
+ else if (plugin->strcasecmp (plugin, argv[0], "unload") == 0)
weechat_ruby_unload_all (plugin);
break;
case 2:
- if (plugin->ascii_strcasecmp (plugin, argv[0], "load") == 0)
+ if (plugin->strcasecmp (plugin, argv[0], "load") == 0)
{
/* load Ruby script */
path_script = weechat_script_search_full_name (plugin, "ruby", argv[1]);
@@ -2519,7 +2519,7 @@ weechat_ruby_cmd (t_weechat_plugin *plugin,
if (path_script)
free (path_script);
}
- else if (plugin->ascii_strcasecmp (plugin, argv[0], "unload") == 0)
+ else if (plugin->strcasecmp (plugin, argv[0], "unload") == 0)
{
/* unload Ruby script */
weechat_ruby_unload_name (plugin, argv[1]);