mirror of
https://github.com/weechat/weechat.git
synced 2026-06-28 22:06:38 +02:00
bug fix and code cleanup in plugins/scripts
This commit is contained in:
@@ -2341,7 +2341,6 @@ weechat_lua_load (t_weechat_plugin *plugin, char *filename)
|
||||
plugin->print_server (plugin,
|
||||
"Lua error: %s",
|
||||
lua_tostring (lua_current_interpreter, -1));
|
||||
free (lua_current_script_filename);
|
||||
lua_close (lua_current_interpreter);
|
||||
fclose (fp);
|
||||
return 0;
|
||||
@@ -2355,7 +2354,6 @@ weechat_lua_load (t_weechat_plugin *plugin, char *filename)
|
||||
plugin->print_server (plugin,
|
||||
"Lua error: %s",
|
||||
lua_tostring (lua_current_interpreter, -1));
|
||||
free (lua_current_script_filename);
|
||||
lua_close (lua_current_interpreter);
|
||||
fclose (fp);
|
||||
/* if script was registered, removing from list */
|
||||
|
||||
@@ -226,7 +226,7 @@ weechat_perl_exec (t_weechat_plugin *plugin,
|
||||
if (ret_value == NULL && mem_err == 1)
|
||||
{
|
||||
plugin->print_server (plugin,
|
||||
"Python error: unable to alloc memory in function \"%s\"",
|
||||
"Perl error: unable to alloc memory in function \"%s\"",
|
||||
function);
|
||||
return NULL;
|
||||
}
|
||||
@@ -2290,7 +2290,7 @@ weechat_perl_cmd (t_weechat_plugin *plugin,
|
||||
|
||||
/* List Perl modifiers */
|
||||
plugin->print_server (plugin, "");
|
||||
plugin->print_server (plugin, "Python modifiers:");
|
||||
plugin->print_server (plugin, "Perl modifiers:");
|
||||
modifier_found = 0;
|
||||
for (ptr_modifier = plugin->modifiers;
|
||||
ptr_modifier; ptr_modifier = ptr_modifier->next_modifier)
|
||||
|
||||
@@ -2061,7 +2061,6 @@ weechat_python_load (t_weechat_plugin *plugin, char *filename)
|
||||
plugin->print_server (plugin,
|
||||
"Python error: unable to parse file \"%s\"",
|
||||
filename);
|
||||
free (python_current_script_filename);
|
||||
fclose (fp);
|
||||
|
||||
if (PyErr_Occurred ()) PyErr_Print ();
|
||||
|
||||
Reference in New Issue
Block a user