1
0
mirror of https://github.com/weechat/weechat.git synced 2026-07-01 23:36:37 +02:00

fix a bug in plugin scripts : current_script was not set when exec a command

This commit is contained in:
Emmanuel Bouthenot
2005-11-16 21:13:56 +00:00
parent 2229d34110
commit ef0e468415
4 changed files with 6 additions and 0 deletions
+1
View File
@@ -122,6 +122,7 @@ weechat_perl_exec (t_weechat_plugin *plugin,
func = function;
PERL_SET_CONTEXT (script->interpreter);
#endif
perl_current_script = script;
dSP;
ENTER;
@@ -70,6 +70,8 @@ weechat_python_exec (t_weechat_plugin *plugin,
}
ret = -1;
python_current_script = script;
rc = PyObject_CallFunction(evFunc, "ss", server == NULL ? "" : server, arguments == NULL ? "" : arguments);