diff options
Diffstat (limited to 'src/plugins/scripts/lua/weechat-lua-api.c')
-rw-r--r-- | src/plugins/scripts/lua/weechat-lua-api.c | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/src/plugins/scripts/lua/weechat-lua-api.c b/src/plugins/scripts/lua/weechat-lua-api.c index 116b46c16..b4bd4d412 100644 --- a/src/plugins/scripts/lua/weechat-lua-api.c +++ b/src/plugins/scripts/lua/weechat-lua-api.c @@ -3044,12 +3044,6 @@ weechat_lua_api_prefix (lua_State *L) /* make C compiler happy */ (void) L; - if (!lua_current_script || !lua_current_script->name) - { - WEECHAT_SCRIPT_MSG_NOT_INIT(LUA_CURRENT_SCRIPT_NAME, "prefix"); - LUA_RETURN_EMPTY; - } - prefix = NULL; n = lua_gettop (lua_current_interpreter); @@ -3080,12 +3074,6 @@ weechat_lua_api_color (lua_State *L) /* make C compiler happy */ (void) L; - if (!lua_current_script || !lua_current_script->name) - { - WEECHAT_SCRIPT_MSG_NOT_INIT(LUA_CURRENT_SCRIPT_NAME, "color"); - LUA_RETURN_EMPTY; - } - color = NULL; n = lua_gettop (lua_current_interpreter); |