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

Added "weechatdir" info for compatibility with old scripts (now DEPRECATED, use

"weechat_dir" instead)
This commit is contained in:
Sebastien Helleu
2005-10-16 21:47:43 +00:00
parent 11d77e6168
commit fa54807ef6
2 changed files with 12 additions and 0 deletions
+6
View File
@@ -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);
+6
View File
@@ -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);