mirror of
https://github.com/weechat/weechat.git
synced 2026-07-02 15:53:12 +02:00
Fix example of weechat_info_get in plugin API reference
This commit is contained in:
@@ -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]]
|
||||
|
||||
@@ -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]]
|
||||
|
||||
Reference in New Issue
Block a user