mirror of
https://github.com/weechat/weechat.git
synced 2026-06-30 06:46:38 +02:00
ruby: fix load of scripts requiring "uri" (closes #433)
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user