summaryrefslogtreecommitdiff
path: root/src/plugins/scripts
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2009-05-02 18:40:48 +0200
committerSebastien Helleu <flashcode@flashtux.org>2009-05-02 18:40:48 +0200
commit9cb6b4d158cab5e687b55aa6e3e2cd401eed64dc (patch)
tree087c6d13bdc93ac02aedae342c7696c75b434bff /src/plugins/scripts
parent5f1c0c8254fdea03f1c42b569a67acd2b1c493ac (diff)
downloadweechat-9cb6b4d158cab5e687b55aa6e3e2cd401eed64dc.zip
Fix bug with data for callbacks in scripts after /upgrade
Diffstat (limited to 'src/plugins/scripts')
-rw-r--r--src/plugins/scripts/script.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/plugins/scripts/script.c b/src/plugins/scripts/script.c
index 85f6a4093..b7a2c124c 100644
--- a/src/plugins/scripts/script.c
+++ b/src/plugins/scripts/script.c
@@ -115,8 +115,14 @@ script_upgrade_set_buffer_callbacks (struct t_weechat_plugin *weechat_plugin,
script_name);
if (ptr_script)
{
- script_input_cb = weechat_buffer_get_string (ptr_buffer, "localvar_script_input_cb");
- script_close_cb = weechat_buffer_get_string (ptr_buffer, "localvar_script_close_cb");
+ script_input_cb = weechat_buffer_get_string (ptr_buffer,
+ "localvar_script_input_cb");
+ script_input_cb_data = weechat_buffer_get_string (ptr_buffer,
+ "localvar_script_input_cb_data");
+ script_close_cb = weechat_buffer_get_string (ptr_buffer,
+ "localvar_script_close_cb");
+ script_close_cb_data = weechat_buffer_get_string (ptr_buffer,
+ "localvar_script_close_cb_data");
if (script_input_cb && script_input_cb[0])
{