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:
@@ -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 ();
|
||||
|
||||
Reference in New Issue
Block a user