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