Fix example of weechat_info_get in plugin API reference

v2.8-utf8proc
Sebastien Helleu 2010-02-10 08:01:21 +01:00
parent 5b71c03c4f
commit f6868c40af
2 changed files with 4 additions and 4 deletions

View File

@ -8146,7 +8146,7 @@ weechat_printf (NULL, "Current WeeChat version is: %s (compiled on %s)",
weechat_info_get ("version", NULL),
weechat_info_get ("date", NULL));
weechat_printf (NULL, "WeeChat home is: %s",
weechat_info_get ("weechat_dir"));
weechat_info_get ("weechat_dir", NULL));
----------------------------------------
Script (Python):
@ -8159,7 +8159,7 @@ value = weechat.info_get(info_name, arguments)
# example
weechat.prnt("", "Current WeeChat version is: %s (compiled on %s)"
% (weechat.info_get("version", ""), weechat.info_get("date", ""))
weechat.prnt("", "WeeChat home is: %s" % weechat.info_get("weechat_dir"))
weechat.prnt("", "WeeChat home is: %s" % weechat.info_get("weechat_dir", ""))
----------------------------------------
[[infolists]]

View File

@ -8271,7 +8271,7 @@ weechat_printf (NULL, "La version de WeeChat est : %s (compilée le %s)",
weechat_info_get ("version", NULL),
weechat_info_get ("date", NULL));
weechat_printf (NULL, "Le répertoire de WeeChat est : %s",
weechat_info_get ("weechat_dir"));
weechat_info_get ("weechat_dir", NULL));
----------------------------------------
Script (Python):
@ -8284,7 +8284,7 @@ value = weechat.info_get(info_name, arguments)
# exemple
weechat.prnt("", "La version de WeeChat est : %s (compilée le %s)"
% (weechat.info_get("version", ""), weechat.info_get("date", ""))
weechat.prnt("", "Le répertoire de WeeChat est : %s" % weechat.info_get("weechat_dir"))
weechat.prnt("", "Le répertoire de WeeChat est : %s" % weechat.info_get("weechat_dir", ""))
----------------------------------------
[[infolists]]