summaryrefslogtreecommitdiff
path: root/src/plugins/scripts/ruby
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2006-06-30 13:02:25 +0000
committerSebastien Helleu <flashcode@flashtux.org>2006-06-30 13:02:25 +0000
commit9563cf2b9d243d0b16889d36adf1b21dd7be35b7 (patch)
tree59fb90263b56e762b69c5f47ee334acc492c1f10 /src/plugins/scripts/ruby
parent2068aa5322872201aef553fe6825fd97ebefe6bc (diff)
downloadweechat-9563cf2b9d243d0b16889d36adf1b21dd7be35b7.zip
Fixed bug with spaces in script names (bug #16957)
Diffstat (limited to 'src/plugins/scripts/ruby')
-rw-r--r--src/plugins/scripts/ruby/weechat-ruby.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/plugins/scripts/ruby/weechat-ruby.c b/src/plugins/scripts/ruby/weechat-ruby.c
index 4a07b5383..f786501f3 100644
--- a/src/plugins/scripts/ruby/weechat-ruby.c
+++ b/src/plugins/scripts/ruby/weechat-ruby.c
@@ -271,13 +271,7 @@ weechat_ruby_register (VALUE class, VALUE name, VALUE version,
c_name, c_version, c_description);
}
else
- {
- ruby_plugin->print_server (ruby_plugin,
- "Ruby error: unable to load script "
- "\"%s\" (not enough memory)",
- c_name);
return INT2FIX (0);
- }
return INT2FIX (1);
}
@@ -1662,7 +1656,7 @@ weechat_ruby_load (t_weechat_plugin *plugin, char *filename)
if (ruby_current_script == NULL) {
plugin->print_server (plugin,
"Ruby error: function \"register\" not found "
- "in file \"%s\"",
+ "(or failed) in file \"%s\"",
filename);
return 0;
}