summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authoremk <weechat@emk.one.pl>2018-10-14 20:39:00 +0200
committeremk <weechat@emk.one.pl>2018-10-14 20:39:00 +0200
commit63e2a3dab9914b7035d649695e8da67029a874cd (patch)
tree5d6f8d70a3fd2194d3d349865954f8614c9505eb /src
parent8d1dcb666afad14ee6545700d92087e196140d8a (diff)
downloadweechat-63e2a3dab9914b7035d649695e8da67029a874cd.zip
lua: mkdir API functions should return ERROR on error.
Diffstat (limited to 'src')
-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)