summaryrefslogtreecommitdiff
path: root/src/plugins/ruby
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2015-10-27 15:14:36 +0100
committerSébastien Helleu <flashcode@flashtux.org>2015-10-27 15:14:36 +0100
commit4f867a89ad38bba79f697647904fd16d77cc79d2 (patch)
treefcfdbbd2909eb8d28d5e26210cdfc424a1fe4c4f /src/plugins/ruby
parent5526550ac189f037d1d99ed580d35453dbf453dc (diff)
downloadweechat-4f867a89ad38bba79f697647904fd16d77cc79d2.zip
ruby: fix load of scripts requiring "uri" (closes #433)
Diffstat (limited to 'src/plugins/ruby')
-rw-r--r--src/plugins/ruby/weechat-ruby.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/plugins/ruby/weechat-ruby.c b/src/plugins/ruby/weechat-ruby.c
index 409806ba5..5925afca1 100644
--- a/src/plugins/ruby/weechat-ruby.c
+++ b/src/plugins/ruby/weechat-ruby.c
@@ -1093,9 +1093,6 @@ weechat_plugin_init (struct t_weechat_plugin *plugin, int argc, char *argv[])
" if RUBY_VERSION.split('.')[0] == '1' and RUBY_VERSION.split('.')[1] <= '8'\n"
" require 'rubygems'\n"
" else\n"
- " require 'enc/encdb.so'\n"
- " require 'enc/trans/transdb.so'\n"
- "\n"
" require 'thread'\n"
" class ::Mutex\n"
" def synchronize(*args)\n"
@@ -1118,6 +1115,8 @@ weechat_plugin_init (struct t_weechat_plugin *plugin, int argc, char *argv[])
" end\n"
"\n"
" begin\n"
+ " require 'enc/encdb.so'\n"
+ " require 'enc/trans/transdb.so'\n"
" module_eval(lines)\n"
" rescue Exception => e\n"
" @load_eval_file_error = e\n"