diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2015-10-27 15:14:36 +0100 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2015-10-27 15:14:36 +0100 |
commit | 4f867a89ad38bba79f697647904fd16d77cc79d2 (patch) | |
tree | fcfdbbd2909eb8d28d5e26210cdfc424a1fe4c4f /src/plugins/ruby | |
parent | 5526550ac189f037d1d99ed580d35453dbf453dc (diff) | |
download | weechat-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.c | 5 |
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" |