1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-25 04:16:38 +02:00

api: add argument "recurse_subdirs" in function exec_on_files()

This commit is contained in:
Sébastien Helleu
2017-07-04 21:58:48 +02:00
parent 275389864b
commit ff448b9096
13 changed files with 53 additions and 21 deletions
+2 -2
View File
@@ -214,14 +214,14 @@ script_completion_scripts_files_cb (const void *pointer, void *data,
/* look for files in "~/.weechat/<language>/" */
snprintf (directory, length,
"%s/%s", weechat_home, script_language[i]);
weechat_exec_on_files (directory, 0,
weechat_exec_on_files (directory, 0, 0,
&script_completion_exec_file_cb,
pointers);
/* look for files in "~/.weechat/<language>/autoload/" */
snprintf (directory, length,
"%s/%s/autoload", weechat_home, script_language[i]);
weechat_exec_on_files (directory, 0,
weechat_exec_on_files (directory, 0, 0,
&script_completion_exec_file_cb,
pointers);
}