summaryrefslogtreecommitdiff
path: root/src/plugins/scripts/ruby
diff options
context:
space:
mode:
authorStefano Pigozzi <stefano.pigozzi@gmail.com>2010-10-17 11:43:26 +0200
committerSebastien Helleu <flashcode@flashtux.org>2010-10-17 11:43:26 +0200
commite86ef9af6f199d7053f7a13805d73923b19025af (patch)
tree0b99860ddabc09d892f4d4ce50ecc23c322aa3b7 /src/plugins/scripts/ruby
parentebf94445b9a49318122392d7fc7b098027706d97 (diff)
downloadweechat-e86ef9af6f199d7053f7a13805d73923b19025af.zip
Fix scripts loading with Ruby 1.9.2
Diffstat (limited to 'src/plugins/scripts/ruby')
-rw-r--r--src/plugins/scripts/ruby/weechat-ruby.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/scripts/ruby/weechat-ruby.c b/src/plugins/scripts/ruby/weechat-ruby.c
index 11bc91f20..adb50a45a 100644
--- a/src/plugins/scripts/ruby/weechat-ruby.c
+++ b/src/plugins/scripts/ruby/weechat-ruby.c
@@ -1010,7 +1010,7 @@ weechat_plugin_init (struct t_weechat_plugin *plugin, int argc, char *argv[])
" if meth.to_s == 'weechat_init'\n"
" has_init = true\n"
" end\n"
- " module_eval('module_function :' + meth)\n"
+ " module_eval('module_function :' + meth.to_s)\n"
" end\n"
"\n"
" unless has_init\n"