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:
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user