diff options
author | Sebastien Helleu <flashcode@flashtux.org> | 2013-03-17 18:32:04 +0100 |
---|---|---|
committer | Sebastien Helleu <flashcode@flashtux.org> | 2013-03-17 18:32:04 +0100 |
commit | cf2ad51f627a2db65959c6bf75f06a18d0c2d1f3 (patch) | |
tree | ec32174c0595bee090b4bb4668b25247057a3ee4 /src/plugins/script/script-action.c | |
parent | a9ff529d83ad5e4293095448bd2f18641754be01 (diff) | |
download | weechat-cf2ad51f627a2db65959c6bf75f06a18d0c2d1f3.zip |
script: create "script" directory on each action (just in case it has been removed) (bug #38472)
Diffstat (limited to 'src/plugins/script/script-action.c')
-rw-r--r-- | src/plugins/script/script-action.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/plugins/script/script-action.c b/src/plugins/script/script-action.c index 9791d4fc8..393437904 100644 --- a/src/plugins/script/script-action.c +++ b/src/plugins/script/script-action.c @@ -1437,6 +1437,9 @@ script_action_schedule (const char *action, int need_repository, int quiet) { script_action_add (action); + /* create again "script" directory, just in case it has been removed */ + weechat_mkdir_home (SCRIPT_PLUGIN_NAME, 0755); + if (need_repository) { if (script_repo_file_is_uptodate ()) |