1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-21 18:36:39 +02:00

Fixed bug with spaces in script names (bug #16957)

This commit is contained in:
Sebastien Helleu
2006-06-30 13:02:25 +00:00
parent 2068aa5322
commit 9563cf2b9d
12 changed files with 38 additions and 56 deletions
+1 -7
View File
@@ -223,13 +223,7 @@ weechat_python_register (PyObject *self, PyObject *args)
name, version, description);
}
else
{
python_plugin->print_server (python_plugin,
"Python error: unable to load script "
"\"%s\" (not enough memory)",
name);
return Py_BuildValue ("i", 0);
}
return Py_BuildValue ("i", 1);
}
@@ -1476,7 +1470,7 @@ weechat_python_load (t_weechat_plugin *plugin, char *filename)
{
plugin->print_server (plugin,
"Python error: function \"register\" not found "
"in file \"%s\"",
"(or failed) in file \"%s\"",
filename);
if (PyErr_Occurred ()) PyErr_Print ();