URL:
<http://savannah.nongnu.org/bugs/?31050>
Summary: cannot use config_new_option from ruby script
Project: WeeChat
Submitted by: arenevier
Submitted on: jeu 16 sep 2010 11:45:19 GMT
Category: script API plugins
Severity: 3 - Normal
Item Group: None
Status: None
Privacy: Public
Assigned to: None
Originator Name:
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Release: dev
IRC nick:
_______________________________________________________
Details:
Hi,
when trying to user config_new_option from a ruby script, it fails with
error
ruby: error: (eval):6:in `config_new_option': too many arguments (17)
(ArgumentError)
I investigated a bit, a discovered that ruby has a limit of 15 arguments to
cfuncs:
http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/vm_insnhelper.c?annotate=29040#l380
Here is my example script:
def weechat_init
Weechat.register('test', 'arno', '0.1', 'WTFPL', 'test', '', '')
config = Weechat.config_new("weechat", "", "")
section = Weechat.config_new_section(config, "history", 0, 0, "", "", "",
"", "", "", "", "", "", "")
option = Weechat.config_new_option(config, section, "max_commands",
"integer", "", "", 0, 32767, "100", "", 0, "", "", "", "", "", "")
return Weechat::WEECHAT_RC_OK
end
_______________________________________________________
Reply to this item at:
<http://savannah.nongnu.org/bugs/?31050>
_______________________________________________
Message posté via/par Savannah
http://savannah.nongnu.org/
_______________________________________________
Weechat-dev mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/weechat-dev