summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2018-10-14 21:03:24 +0200
committerGitHub <noreply@github.com>2018-10-14 21:03:24 +0200
commitc5ccac9e22945884c81dcb07efd97bfe055cb336 (patch)
tree5ac1426ecf940f5d971a49c416863df65077acaf
parent37da24ca22ec9af5b501405ef736a08420ab5121 (diff)
parent63e2a3dab9914b7035d649695e8da67029a874cd (diff)
downloadweechat-c5ccac9e22945884c81dcb07efd97bfe055cb336.zip
Merge pull request #1267 from emkw/master
lua: mkdir API functions should return ERROR on error.
-rw-r--r--src/plugins/lua/weechat-lua-api.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/plugins/lua/weechat-lua-api.c b/src/plugins/lua/weechat-lua-api.c
index ce23d031c..fb5435280 100644
--- a/src/plugins/lua/weechat-lua-api.c
+++ b/src/plugins/lua/weechat-lua-api.c
@@ -541,7 +541,7 @@ API_FUNC(mkdir_home)
if (weechat_mkdir_home (directory, mode))
API_RETURN_OK;
- API_RETURN_OK;
+ API_RETURN_ERROR;
}
API_FUNC(mkdir)
@@ -559,7 +559,7 @@ API_FUNC(mkdir)
if (weechat_mkdir (directory, mode))
API_RETURN_OK;
- API_RETURN_OK;
+ API_RETURN_ERROR;
}
API_FUNC(mkdir_parents)
@@ -577,7 +577,7 @@ API_FUNC(mkdir_parents)
if (weechat_mkdir_parents (directory, mode))
API_RETURN_OK;
- API_RETURN_OK;
+ API_RETURN_ERROR;
}
API_FUNC(list_new)