summaryrefslogtreecommitdiff
path: root/src/plugins/scripts/python/weechat-python-api.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/scripts/python/weechat-python-api.c')
-rw-r--r--src/plugins/scripts/python/weechat-python-api.c12
1 files changed, 0 insertions, 12 deletions
diff --git a/src/plugins/scripts/python/weechat-python-api.c b/src/plugins/scripts/python/weechat-python-api.c
index 36c002468..a2ca66541 100644
--- a/src/plugins/scripts/python/weechat-python-api.c
+++ b/src/plugins/scripts/python/weechat-python-api.c
@@ -2702,12 +2702,6 @@ weechat_python_api_prefix (PyObject *self, PyObject *args)
/* make C compiler happy */
(void) self;
- if (!python_current_script || !python_current_script->name)
- {
- WEECHAT_SCRIPT_MSG_NOT_INIT(PYTHON_CURRENT_SCRIPT_NAME, "prefix");
- PYTHON_RETURN_EMPTY;
- }
-
prefix = NULL;
if (!PyArg_ParseTuple (args, "s", &prefix))
@@ -2734,12 +2728,6 @@ weechat_python_api_color (PyObject *self, PyObject *args)
/* make C compiler happy */
(void) self;
- if (!python_current_script || !python_current_script->name)
- {
- WEECHAT_SCRIPT_MSG_NOT_INIT(PYTHON_CURRENT_SCRIPT_NAME, "color");
- PYTHON_RETURN_EMPTY;
- }
-
color = NULL;
if (!PyArg_ParseTuple (args, "s", &color))