summaryrefslogtreecommitdiff
path: root/src/plugins/scripts/python/weechat-python.c
diff options
context:
space:
mode:
authorEmmanuel Bouthenot <kolter@openics.org>2005-11-16 21:13:56 +0000
committerEmmanuel Bouthenot <kolter@openics.org>2005-11-16 21:13:56 +0000
commitef0e4684154e9370342759d08e7f517989a3a046 (patch)
treefe4ae5560f5f3356045e08662f3bf35493f5df67 /src/plugins/scripts/python/weechat-python.c
parent2229d341107de1c267191ef7070843731fe1a754 (diff)
downloadweechat-ef0e4684154e9370342759d08e7f517989a3a046.zip
fix a bug in plugin scripts : current_script was not set when exec a command
Diffstat (limited to 'src/plugins/scripts/python/weechat-python.c')
-rw-r--r--src/plugins/scripts/python/weechat-python.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/plugins/scripts/python/weechat-python.c b/src/plugins/scripts/python/weechat-python.c
index a28f85b9a..4fca21184 100644
--- a/src/plugins/scripts/python/weechat-python.c
+++ b/src/plugins/scripts/python/weechat-python.c
@@ -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);