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

scripts: reset current script pointer when load of script fails in python/perl/ruby/lua/tcl plugins

This commit is contained in:
Sébastien Helleu
2015-03-07 09:35:29 +01:00
parent 5d1f7e79ba
commit e95f853303
6 changed files with 21 additions and 5 deletions
+2 -1
View File
@@ -722,11 +722,12 @@ weechat_python_load (const char *filename)
PyErr_Print ();
/* if script was registered, remove it from list */
if (python_current_script != NULL)
if (python_current_script)
{
plugin_script_remove (weechat_python_plugin,
&python_scripts, &last_python_script,
python_current_script);
python_current_script = NULL;
}
Py_EndInterpreter (python_current_interpreter);