diff options
-rw-r--r-- | doc/en/weechat_plugin_api.en.adoc | 9 | ||||
-rw-r--r-- | doc/fr/weechat_plugin_api.fr.adoc | 9 | ||||
-rw-r--r-- | doc/it/weechat_plugin_api.it.adoc | 11 | ||||
-rw-r--r-- | doc/ja/weechat_plugin_api.ja.adoc | 11 | ||||
-rw-r--r-- | doc/sr/weechat_plugin_api.sr.adoc | 10 | ||||
-rw-r--r-- | src/gui/gui-buffer.c | 4 | ||||
-rw-r--r-- | src/plugins/python/weechat.pyi | 2 |
7 files changed, 39 insertions, 17 deletions
diff --git a/doc/en/weechat_plugin_api.en.adoc b/doc/en/weechat_plugin_api.en.adoc index d8c23f836..90d463e46 100644 --- a/doc/en/weechat_plugin_api.en.adoc +++ b/doc/en/weechat_plugin_api.en.adoc @@ -14082,7 +14082,7 @@ str = weechat.buffer_string_replace_local_var(my_buffer, "test with $toto") ==== buffer_match_list -_WeeChat ≥ 0.3.5._ +_WeeChat ≥ 0.3.5, updated in 3.9._ Check if buffer matches a list of buffers. @@ -14101,6 +14101,9 @@ Arguments: ** name beginning with `+!+` is excluded ** wildcard `+*+` is allowed in name +[NOTE] +Since version 3.9, comparison of buffer names is case sensitive. + Return value: * 1 if buffer matches list of buffers, 0 otherwise @@ -14114,7 +14117,7 @@ if (buffer) { weechat_printf (NULL, "%d", weechat_buffer_match_list (buffer, "*")); /* 1 */ weechat_printf (NULL, "%d", weechat_buffer_match_list (buffer, "*,!*#weechat*")); /* 0 */ - weechat_printf (NULL, "%d", weechat_buffer_match_list (buffer, "irc.libera.*")); /* 1 */ + weechat_printf (NULL, "%d", weechat_buffer_match_list (buffer, "irc.libera.*")); /* 1 */ weechat_printf (NULL, "%d", weechat_buffer_match_list (buffer, "irc.oftc.*,python.*")); /* 0 */ } ---- @@ -14131,7 +14134,7 @@ buffer = weechat.buffer_search("irc", "libera.#weechat") if buffer: weechat.prnt("", "%d" % weechat.buffer_match_list(buffer, "*")) # 1 weechat.prnt("", "%d" % weechat.buffer_match_list(buffer, "*,!*#weechat*")) # 0 - weechat.prnt("", "%d" % weechat.buffer_match_list(buffer, "irc.libera.*")) # 1 + weechat.prnt("", "%d" % weechat.buffer_match_list(buffer, "irc.libera.*")) # 1 weechat.prnt("", "%d" % weechat.buffer_match_list(buffer, "irc.oftc.*,python.*")) # 0 ---- diff --git a/doc/fr/weechat_plugin_api.fr.adoc b/doc/fr/weechat_plugin_api.fr.adoc index 33feac522..5821c0599 100644 --- a/doc/fr/weechat_plugin_api.fr.adoc +++ b/doc/fr/weechat_plugin_api.fr.adoc @@ -14395,7 +14395,7 @@ str = weechat.buffer_string_replace_local_var(my_buffer, "test avec $toto") ==== buffer_match_list -_WeeChat ≥ 0.3.5._ +_WeeChat ≥ 0.3.5, mis à jour dans la 3.9._ Vérifier si le tampon correspond à la liste de tampons. @@ -14414,6 +14414,9 @@ Paramètres : ** un nom commençant par `+!+` est exclu ** le caractère joker `+*+` est autorisé dans le nom +[NOTE] +Depuis la version 3.9, la comparaison des noms de tampons est sensible à la casse. + Valeur de retour : * 1 si le tampon correspond à la liste de tampons, 0 sinon @@ -14427,7 +14430,7 @@ if (buffer) { weechat_printf (NULL, "%d", weechat_buffer_match_list (buffer, "*")); /* 1 */ weechat_printf (NULL, "%d", weechat_buffer_match_list (buffer, "*,!*#weechat*")); /* 0 */ - weechat_printf (NULL, "%d", weechat_buffer_match_list (buffer, "irc.libera.*")); /* 1 */ + weechat_printf (NULL, "%d", weechat_buffer_match_list (buffer, "irc.libera.*")); /* 1 */ weechat_printf (NULL, "%d", weechat_buffer_match_list (buffer, "irc.oftc.*,python.*")); /* 0 */ } ---- @@ -14444,7 +14447,7 @@ buffer = weechat.buffer_search("irc", "libera.#weechat") if buffer: weechat.prnt("", "%d" % weechat.buffer_match_list(buffer, "*")) # 1 weechat.prnt("", "%d" % weechat.buffer_match_list(buffer, "*,!*#weechat*")) # 0 - weechat.prnt("", "%d" % weechat.buffer_match_list(buffer, "irc.libera.*")) # 1 + weechat.prnt("", "%d" % weechat.buffer_match_list(buffer, "irc.libera.*")) # 1 weechat.prnt("", "%d" % weechat.buffer_match_list(buffer, "irc.oftc.*,python.*")) # 0 ---- diff --git a/doc/it/weechat_plugin_api.it.adoc b/doc/it/weechat_plugin_api.it.adoc index ae329ed0b..a81eaadc2 100644 --- a/doc/it/weechat_plugin_api.it.adoc +++ b/doc/it/weechat_plugin_api.it.adoc @@ -14751,7 +14751,8 @@ str = weechat.buffer_string_replace_local_var(my_buffer, "test with $toto") ==== buffer_match_list -_WeeChat ≥ 0.3.5._ +// TRANSLATION MISSING +_WeeChat ≥ 0.3.5, updated in 3.9._ Verifica se il buffer corrisponde ad una lista di buffer. @@ -14771,6 +14772,10 @@ Argomenti: // TRANSLATION MISSING ** wildcard `+*+` is allowed in name +// TRANSLATION MISSING +[NOTE] +Since version 3.9, comparison of buffer names is case sensitive. + Valore restituito: * 1 se il buffer coincide con la lista, altrimenti 0 @@ -14784,7 +14789,7 @@ if (buffer) { weechat_printf (NULL, "%d", weechat_buffer_match_list (buffer, "*")); /* 1 */ weechat_printf (NULL, "%d", weechat_buffer_match_list (buffer, "*,!*#weechat*")); /* 0 */ - weechat_printf (NULL, "%d", weechat_buffer_match_list (buffer, "irc.libera.*")); /* 1 */ + weechat_printf (NULL, "%d", weechat_buffer_match_list (buffer, "irc.libera.*")); /* 1 */ weechat_printf (NULL, "%d", weechat_buffer_match_list (buffer, "irc.oftc.*,python.*")); /* 0 */ } ---- @@ -14801,7 +14806,7 @@ buffer = weechat.buffer_search("irc", "libera.#weechat") if buffer: weechat.prnt("", "%d" % weechat.buffer_match_list(buffer, "*")) # 1 weechat.prnt("", "%d" % weechat.buffer_match_list(buffer, "*,!*#weechat*")) # 0 - weechat.prnt("", "%d" % weechat.buffer_match_list(buffer, "irc.libera.*")) # 1 + weechat.prnt("", "%d" % weechat.buffer_match_list(buffer, "irc.libera.*")) # 1 weechat.prnt("", "%d" % weechat.buffer_match_list(buffer, "irc.oftc.*,python.*")) # 0 ---- diff --git a/doc/ja/weechat_plugin_api.ja.adoc b/doc/ja/weechat_plugin_api.ja.adoc index ae170ce8b..0c0084292 100644 --- a/doc/ja/weechat_plugin_api.ja.adoc +++ b/doc/ja/weechat_plugin_api.ja.adoc @@ -14235,7 +14235,8 @@ str = weechat.buffer_string_replace_local_var(my_buffer, "test with $toto") ==== buffer_match_list -_WeeChat バージョン 0.3.5 以上で利用可。_ +// TRANSLATION MISSING +_WeeChat ≥ 0.3.5, updated in 3.9._ バッファがバッファのリストにマッチすることを確認。 @@ -14254,6 +14255,10 @@ int weechat_buffer_match_list (struct t_gui_buffer *buffer, const char *string); ** 名前の最初に `+!+` がある場合はその名前を含まない場合にマッチ ** 名前にワイルドカード `+*+` を使うことができます +// TRANSLATION MISSING +[NOTE] +Since version 3.9, comparison of buffer names is case sensitive. + 戻り値: * バッファがバッファリストにマッチする場合は 1、そうでない場合は 0 @@ -14267,7 +14272,7 @@ if (buffer) { weechat_printf (NULL, "%d", weechat_buffer_match_list (buffer, "*")); /* 1 */ weechat_printf (NULL, "%d", weechat_buffer_match_list (buffer, "*,!*#weechat*")); /* 0 */ - weechat_printf (NULL, "%d", weechat_buffer_match_list (buffer, "irc.libera.*")); /* 1 */ + weechat_printf (NULL, "%d", weechat_buffer_match_list (buffer, "irc.libera.*")); /* 1 */ weechat_printf (NULL, "%d", weechat_buffer_match_list (buffer, "irc.oftc.*,python.*")); /* 0 */ } ---- @@ -14284,7 +14289,7 @@ buffer = weechat.buffer_search("irc", "libera.#weechat") if buffer: weechat.prnt("", "%d" % weechat.buffer_match_list(buffer, "*")) # 1 weechat.prnt("", "%d" % weechat.buffer_match_list(buffer, "*,!*#weechat*")) # 0 - weechat.prnt("", "%d" % weechat.buffer_match_list(buffer, "irc.libera.*")) # 1 + weechat.prnt("", "%d" % weechat.buffer_match_list(buffer, "irc.libera.*")) # 1 weechat.prnt("", "%d" % weechat.buffer_match_list(buffer, "irc.oftc.*,python.*")) # 0 ---- diff --git a/doc/sr/weechat_plugin_api.sr.adoc b/doc/sr/weechat_plugin_api.sr.adoc index 312302003..ff364f63c 100644 --- a/doc/sr/weechat_plugin_api.sr.adoc +++ b/doc/sr/weechat_plugin_api.sr.adoc @@ -13654,7 +13654,7 @@ str = weechat.buffer_string_replace_local_var(my_buffer, "тест са $toto") ==== buffer_match_list -_WeeChat ≥ 0.3.5._ +_WeeChat ≥ 0.3.5, ажурирано у верзији 3.9._ Проверава да ли се бафер подудара са листом бафера. @@ -13673,6 +13673,10 @@ int weechat_buffer_match_list (struct t_gui_buffer *buffer, const char *string); ** име које почиње са `+!+` се не узима у обзир ** у имену је дозвољен џокер `+*+` +// TRANSLATION MISSING +[NOTE] +Since version 3.9, comparison of buffer names is case sensitive. + Повратна вредност: * 1 ако се бафер подудара са листом бафера, 0 у супротном @@ -13686,7 +13690,7 @@ if (buffer) { weechat_printf (NULL, "%d", weechat_buffer_match_list (buffer, "*")); /* 1 */ weechat_printf (NULL, "%d", weechat_buffer_match_list (buffer, "*,!*#weechat*")); /* 0 */ - weechat_printf (NULL, "%d", weechat_buffer_match_list (buffer, "irc.libera.*")); /* 1 */ + weechat_printf (NULL, "%d", weechat_buffer_match_list (buffer, "irc.libera.*")); /* 1 */ weechat_printf (NULL, "%d", weechat_buffer_match_list (buffer, "irc.oftc.*,python.*")); /* 0 */ } ---- @@ -13703,7 +13707,7 @@ buffer = weechat.buffer_search("irc", "libera.#weechat") if buffer: weechat.prnt("", "%d" % weechat.buffer_match_list(buffer, "*")) # 1 weechat.prnt("", "%d" % weechat.buffer_match_list(buffer, "*,!*#weechat*")) # 0 - weechat.prnt("", "%d" % weechat.buffer_match_list(buffer, "irc.libera.*")) # 1 + weechat.prnt("", "%d" % weechat.buffer_match_list(buffer, "irc.libera.*")) # 1 weechat.prnt("", "%d" % weechat.buffer_match_list(buffer, "irc.oftc.*,python.*")) # 0 ---- diff --git a/src/gui/gui-buffer.c b/src/gui/gui-buffer.c index 4cfed5886..24ea19037 100644 --- a/src/gui/gui-buffer.c +++ b/src/gui/gui-buffer.c @@ -1138,6 +1138,8 @@ gui_buffer_string_replace_local_var (struct t_gui_buffer *buffer, * List is a comma-separated list of buffers, where exclusion is possible with * char '!', and "*" means all buffers. * + * Comparison is case sensitive. + * * Examples: * "*" * "*,!*#weechat*" @@ -1165,7 +1167,7 @@ gui_buffer_match_list (struct t_gui_buffer *buffer, const char *string) if (buffers) { match = string_match_list (buffer->full_name, - (const char **)buffers, 0); + (const char **)buffers, 1); string_free_split (buffers); } diff --git a/src/plugins/python/weechat.pyi b/src/plugins/python/weechat.pyi index f5a57f20e..86b7e33d8 100644 --- a/src/plugins/python/weechat.pyi +++ b/src/plugins/python/weechat.pyi @@ -1746,7 +1746,7 @@ def buffer_match_list(buffer: str, string: str) -> int: if buffer: weechat.prnt("", "%d" % weechat.buffer_match_list(buffer, "*")) # 1 weechat.prnt("", "%d" % weechat.buffer_match_list(buffer, "*,!*#weechat*")) # 0 - weechat.prnt("", "%d" % weechat.buffer_match_list(buffer, "irc.libera.*")) # 1 + weechat.prnt("", "%d" % weechat.buffer_match_list(buffer, "irc.libera.*")) # 1 weechat.prnt("", "%d" % weechat.buffer_match_list(buffer, "irc.oftc.*,python.*")) # 0 """ ... |