summaryrefslogtreecommitdiff
path: root/src/plugins/scripts/python
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2008-11-27 17:05:59 +0100
committerSebastien Helleu <flashcode@flashtux.org>2008-11-27 17:05:59 +0100
commit3c51c0e7c484d2c3efa72e5373ce7fb81de8d4db (patch)
tree3adaea1fa3c98278e43d8025a233d245c95b6c1a /src/plugins/scripts/python
parentaa77b482adce234207d9954850df0f6da6d61711 (diff)
downloadweechat-3c51c0e7c484d2c3efa72e5373ce7fb81de8d4db.zip
Remove argument "switch_to_another" for function gui_buffer_close()
Diffstat (limited to 'src/plugins/scripts/python')
-rw-r--r--src/plugins/scripts/python/weechat-python-api.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/plugins/scripts/python/weechat-python-api.c b/src/plugins/scripts/python/weechat-python-api.c
index ab629def6..e299255bc 100644
--- a/src/plugins/scripts/python/weechat-python-api.c
+++ b/src/plugins/scripts/python/weechat-python-api.c
@@ -3409,7 +3409,6 @@ static PyObject *
weechat_python_api_buffer_close (PyObject *self, PyObject *args)
{
char *buffer;
- int switch_to_another;
/* make C compiler happy */
(void) self;
@@ -3421,9 +3420,8 @@ weechat_python_api_buffer_close (PyObject *self, PyObject *args)
}
buffer = NULL;
- switch_to_another = 0;
- if (!PyArg_ParseTuple (args, "si", &buffer, &switch_to_another))
+ if (!PyArg_ParseTuple (args, "s", &buffer))
{
WEECHAT_SCRIPT_MSG_WRONG_ARGUMENTS("buffer_close");
PYTHON_RETURN_ERROR;
@@ -3431,8 +3429,7 @@ weechat_python_api_buffer_close (PyObject *self, PyObject *args)
script_api_buffer_close (weechat_python_plugin,
python_current_script,
- script_str2ptr (buffer),
- switch_to_another);
+ script_str2ptr (buffer));
PYTHON_RETURN_OK;
}