From fa54807ef648ccf4437c7d84c265e2ecbf219343 Mon Sep 17 00:00:00 2001 From: Sebastien Helleu Date: Sun, 16 Oct 2005 21:47:43 +0000 Subject: [PATCH] Added "weechatdir" info for compatibility with old scripts (now DEPRECATED, use "weechat_dir" instead) --- src/plugins/plugins.c | 6 ++++++ weechat/src/plugins/plugins.c | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/src/plugins/plugins.c b/src/plugins/plugins.c index 5ba6b0e12..3b5eb884e 100644 --- a/src/plugins/plugins.c +++ b/src/plugins/plugins.c @@ -1160,6 +1160,12 @@ weechat_plugin_get_info (t_weechat_plugin *plugin, char *info, char *server, cha return strdup ("0"); } } + else if (ascii_strcasecmp (info, "weechatdir") == 0) + { + /* WARNING: deprecated info, you should use weechat_dir */ + /* will be removed in a future version */ + return strdup (weechat_home); + } else if (ascii_strcasecmp (info, "weechat_dir") == 0) { return strdup (weechat_home); diff --git a/weechat/src/plugins/plugins.c b/weechat/src/plugins/plugins.c index 5ba6b0e12..3b5eb884e 100644 --- a/weechat/src/plugins/plugins.c +++ b/weechat/src/plugins/plugins.c @@ -1160,6 +1160,12 @@ weechat_plugin_get_info (t_weechat_plugin *plugin, char *info, char *server, cha return strdup ("0"); } } + else if (ascii_strcasecmp (info, "weechatdir") == 0) + { + /* WARNING: deprecated info, you should use weechat_dir */ + /* will be removed in a future version */ + return strdup (weechat_home); + } else if (ascii_strcasecmp (info, "weechat_dir") == 0) { return strdup (weechat_home);