summaryrefslogtreecommitdiff
path: root/src/plugins/scripts
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2009-09-11 23:22:13 +0200
committerSebastien Helleu <flashcode@flashtux.org>2009-09-11 23:22:13 +0200
commit4bd7eaf12328e9ce7267190d8c2c8fd727c92617 (patch)
tree6a1a26d4683e96142a9c2dcc3a1c344daf912757 /src/plugins/scripts
parent1c194ffa423276f77ab907a42a14e43013636c15 (diff)
downloadweechat-4bd7eaf12328e9ce7267190d8c2c8fd727c92617.zip
Fix API function weechat_bar_set for python/lua/ruby (patch #6912)
Diffstat (limited to 'src/plugins/scripts')
-rw-r--r--src/plugins/scripts/lua/weechat-lua-api.c6
-rw-r--r--src/plugins/scripts/python/weechat-python-api.c6
-rw-r--r--src/plugins/scripts/ruby/weechat-ruby-api.c6
3 files changed, 9 insertions, 9 deletions
diff --git a/src/plugins/scripts/lua/weechat-lua-api.c b/src/plugins/scripts/lua/weechat-lua-api.c
index c49c1fe22..df5d07cd4 100644
--- a/src/plugins/scripts/lua/weechat-lua-api.c
+++ b/src/plugins/scripts/lua/weechat-lua-api.c
@@ -5826,9 +5826,9 @@ weechat_lua_api_bar_set (lua_State *L)
property = lua_tostring (lua_current_interpreter, -2);
value = lua_tostring (lua_current_interpreter, -1);
- weechat_buffer_set (script_str2ptr (bar),
- property,
- value);
+ weechat_bar_set (script_str2ptr (bar),
+ property,
+ value);
LUA_RETURN_OK;
}
diff --git a/src/plugins/scripts/python/weechat-python-api.c b/src/plugins/scripts/python/weechat-python-api.c
index 839d4c903..2c77a00db 100644
--- a/src/plugins/scripts/python/weechat-python-api.c
+++ b/src/plugins/scripts/python/weechat-python-api.c
@@ -5186,9 +5186,9 @@ weechat_python_api_bar_set (PyObject *self, PyObject *args)
PYTHON_RETURN_ERROR;
}
- weechat_buffer_set (script_str2ptr (bar),
- property,
- value);
+ weechat_bar_set (script_str2ptr (bar),
+ property,
+ value);
PYTHON_RETURN_OK;
}
diff --git a/src/plugins/scripts/ruby/weechat-ruby-api.c b/src/plugins/scripts/ruby/weechat-ruby-api.c
index 81e71274f..71183fd2b 100644
--- a/src/plugins/scripts/ruby/weechat-ruby-api.c
+++ b/src/plugins/scripts/ruby/weechat-ruby-api.c
@@ -5993,9 +5993,9 @@ weechat_ruby_api_bar_set (VALUE class, VALUE bar, VALUE property, VALUE value)
c_property = STR2CSTR (property);
c_value = STR2CSTR (value);
- weechat_buffer_set (script_str2ptr (c_bar),
- c_property,
- c_value);
+ weechat_bar_set (script_str2ptr (c_bar),
+ c_property,
+ c_value);
RUBY_RETURN_OK;
}