summaryrefslogtreecommitdiff
path: root/src/common/weechat.c
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2004-01-15 21:33:18 +0000
committerSebastien Helleu <flashcode@flashtux.org>2004-01-15 21:33:18 +0000
commitc057937c7b6c9552b96ca4d926820cc973a78295 (patch)
treed15bd4bf54cedf38370628a5aa9a3cb97673b84e /src/common/weechat.c
parent938cc50f5eecb2ddbe2be60bd31f821fba27d4bd (diff)
downloadweechat-c057937c7b6c9552b96ca4d926820cc973a78295.zip
Create plugin directories only if plugin is built when WeeChat is compiled
Diffstat (limited to 'src/common/weechat.c')
-rw-r--r--src/common/weechat.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/common/weechat.c b/src/common/weechat.c
index 454563aa2..b5ac859f3 100644
--- a/src/common/weechat.c
+++ b/src/common/weechat.c
@@ -254,6 +254,7 @@ wee_create_home_dirs ()
dir_name = (char *) malloc ((strlen (weechat_home) + 64) * sizeof (char));
+ #ifdef PLUGIN_PERL
/* create "~/.weechat/perl" */
sprintf (dir_name, "%s%s%s", weechat_home, DIR_SEPARATOR, "perl");
if (wee_create_dir (dir_name))
@@ -263,7 +264,9 @@ wee_create_home_dirs ()
DIR_SEPARATOR, "autoload");
wee_create_dir (dir_name);
}
+ #endif
+ #ifdef PLUGIN_PYTHON
/* create "~/.weechat/python" */
sprintf (dir_name, "%s%s%s", weechat_home, DIR_SEPARATOR, "python");
if (wee_create_dir (dir_name))
@@ -273,7 +276,9 @@ wee_create_home_dirs ()
DIR_SEPARATOR, "autoload");
wee_create_dir (dir_name);
}
+ #endif
+ #ifdef PLUGIN_RUBY
/* create "~/.weechat/ruby" */
sprintf (dir_name, "%s%s%s", weechat_home, DIR_SEPARATOR, "ruby");
if (wee_create_dir (dir_name))
@@ -283,6 +288,7 @@ wee_create_home_dirs ()
DIR_SEPARATOR, "autoload");
wee_create_dir (dir_name);
}
+ #endif
free (dir_name);
}