Data for callbacks in script API
By Sébastien Helleu on Saturday, May 2 2009, 16:38 - scripts - Permalink
Major changes were done in script API: data string was added to all callbacks. C plugin API is already ok (there is data pointer for callbacks).
Therefore, all scripts for development version are incompatible with this new version. All official scripts have been updated on plugins page.
This data string must be added after each callback function in arguments of functions. For example in python :
weechat.hook_command("go", "Quick jump to buffers", "", "", "", "go_cmd") (...) def go_cmd(buffer, args):
weechat.hook_command("go", "Quick jump to buffers", "", "", "", "go_cmd", "") (...) def go_cmd(data, buffer, args):
it's not the right place here but the latest dev-version of weechat-dev don't work for me. When i press F9 or F10 to see the topic wheechat-dev eats 98% of my cpu. So i have to kill it.
mpdnp.py, shell.py and tinyurl.py give errors. :/
Hope that can/will be fixed because weechat is the best.
For scripts, just update them to last version, API has changed, so all scripts have been updated.
For cpu usage problem, please join us on irc.freenode.net #weechat and tell me how to reproduce it. Or you can open bug on savannah bug tracker.
I just fixed problem with infinite loop when scrolling bars.
i will update soon.