diff options
author | Sebastien Helleu <flashcode@flashtux.org> | 2005-11-06 18:27:20 +0000 |
---|---|---|
committer | Sebastien Helleu <flashcode@flashtux.org> | 2005-11-06 18:27:20 +0000 |
commit | 64c1dbba0ef742336375ec474c5fdecb0c8a04c1 (patch) | |
tree | 7aa3969a02d84f968b10eb57ab4c182185436a89 /src/plugins/scripts/python | |
parent | 6eb449b370a3083d1f1bbee7de59022b52677900 (diff) | |
download | weechat-64c1dbba0ef742336375ec474c5fdecb0c8a04c1.zip |
Fixed bugs in "get_info" and "command" interface functions of plugins
Diffstat (limited to 'src/plugins/scripts/python')
-rw-r--r-- | src/plugins/scripts/python/weechat-python.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/plugins/scripts/python/weechat-python.c b/src/plugins/scripts/python/weechat-python.c index 15b8fbdd4..cb903c2e6 100644 --- a/src/plugins/scripts/python/weechat-python.c +++ b/src/plugins/scripts/python/weechat-python.c @@ -409,7 +409,7 @@ weechat_python_remove_handler (PyObject *self, PyObject *args) static PyObject * weechat_python_get_info (PyObject *self, PyObject *args) { - char *arg, *server_name, *channel_name, *info; + char *arg, *server_name, *info; PyObject *object; /* make gcc happy */ @@ -425,9 +425,8 @@ weechat_python_get_info (PyObject *self, PyObject *args) arg = NULL; server_name = NULL; - channel_name = NULL; - if (!PyArg_ParseTuple (args, "s|ss", &arg, &server_name, &channel_name)) + if (!PyArg_ParseTuple (args, "s|s", &arg, &server_name)) { python_plugin->printf_server (python_plugin, "Python error: wrong parameters for " @@ -437,7 +436,7 @@ weechat_python_get_info (PyObject *self, PyObject *args) if (arg) { - info = python_plugin->get_info (python_plugin, arg, server_name, channel_name); + info = python_plugin->get_info (python_plugin, arg, server_name); if (info) { @@ -1040,7 +1039,7 @@ weechat_python_cmd (t_weechat_plugin *plugin, path_script = NULL; else { - dir_home = plugin->get_info (plugin, "weechat_dir", NULL, NULL); + dir_home = plugin->get_info (plugin, "weechat_dir", NULL); if (dir_home) { path_length = strlen (dir_home) + strlen (argv[1]) + 16; |