1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-22 10:56:38 +02:00

make arguments for function get_buffer_data() mandatory in plugins/scripts

This commit is contained in:
Emmanuel Bouthenot
2007-03-09 15:46:08 +00:00
parent cfd2f57dd1
commit 063744ef7d
8 changed files with 54 additions and 64 deletions
+6 -3
View File
@@ -522,7 +522,7 @@ weechat_python_remove_infobar (PyObject *self, PyObject *args)
how_many = 0;
if (!PyArg_ParseTuple (args, "|is", &how_many))
if (!PyArg_ParseTuple (args, "|i", &how_many))
{
python_plugin->print_server (python_plugin,
"Python error: wrong parameters for "
@@ -2050,8 +2050,11 @@ weechat_python_get_buffer_data (PyObject *self, PyObject *args)
Py_INCREF(Py_None);
return Py_None;
}
if (!PyArg_ParseTuple (args, "|ss", &server, &channel))
server = NULL;
channel = NULL;
if (!PyArg_ParseTuple (args, "ss|", &server, &channel))
{
python_plugin->print_server (python_plugin,
"Python error: wrong parameters for "