1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-27 13:26:38 +02:00

core: add option -v to display upgrades in command /version

The number of upgrades is also displayed on startup after at least one
`/upgrade`.
This commit is contained in:
Sébastien Helleu
2025-01-07 20:35:35 +01:00
parent d97fed80cb
commit 36b62cfc5e
18 changed files with 520 additions and 411 deletions
+4
View File
@@ -2,6 +2,10 @@
## Version 4.6.0 (under dev)
### Changed
- core: add option `-v` to display upgrades in command `/version`
### Added
- core: add command `/pipe`
+10 -5
View File
@@ -21,7 +21,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2025-01-05 10:14+0100\n"
"POT-Creation-Date: 2025-01-07 20:32+0100\n"
"PO-Revision-Date: 2024-11-20 18:17+0100\n"
"Last-Translator: Ondřej Súkup <mimi.vx@gmail.com>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -903,10 +903,6 @@ msgstr ""
msgid "Check running hooks with command: %s"
msgstr ""
#, c-format
msgid "%sNo binary specified"
msgstr "%sNení specifikována binárka"
#, c-format
msgid "%sCan't upgrade: WeeChat binary \"%s\" does not exist"
msgstr "%sNemohu aktualizovat: binární soubor WeeChat \"%s\" neexistuje"
@@ -917,6 +913,10 @@ msgid ""
msgstr ""
"%sNemohu aktualizovat: binární soubor WeeChat \"%s\" nemá přáva pro spuštění"
#, c-format
msgid "%sNo binary specified"
msgstr "%sNení specifikována binárka"
#, c-format
msgid "Upgrading WeeChat with binary file: \"%s\"..."
msgstr "Aktualizuji WeeChat s použitím binárního souboru: \"%s\"..."
@@ -3716,6 +3716,11 @@ msgstr ""
" -o: poslat čas běhu aktuálnímu bufferu jako vstup (anglický řetězec)\n"
"-ol: poslat čas běhu aktuálnímu bufferu jako vstup (přeložený řetězec)"
msgid ""
"raw[-v]: verbose mode: display information about upgrades of WeeChat with /"
"upgrade"
msgstr ""
#, fuzzy
msgid ""
"The default alias /v can be used to execute this command on all buffers "
+334 -327
View File
File diff suppressed because it is too large Load Diff
+10 -5
View File
@@ -22,7 +22,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2025-01-05 10:14+0100\n"
"POT-Creation-Date: 2025-01-07 20:32+0100\n"
"PO-Revision-Date: 2024-11-20 18:17+0100\n"
"Last-Translator: Santiago Forero <santiago@forero.xyz>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -912,10 +912,6 @@ msgstr ""
msgid "Check running hooks with command: %s"
msgstr ""
#, c-format
msgid "%sNo binary specified"
msgstr "%sNingún ejecutable especificado"
#, c-format
msgid "%sCan't upgrade: WeeChat binary \"%s\" does not exist"
msgstr "%sNo se puede actualizar: el ejecutable de WeeChat \"%s\" no existe"
@@ -927,6 +923,10 @@ msgstr ""
"%sNo se puede actualizar: el ejecutable de WeeChat \"%s\" no tiene permisos "
"de ejecución"
#, c-format
msgid "%sNo binary specified"
msgstr "%sNingún ejecutable especificado"
#, c-format
msgid "Upgrading WeeChat with binary file: \"%s\"..."
msgstr "Actualizando WeeChat con el archivo binario: \"%s\"..."
@@ -3784,6 +3784,11 @@ msgstr ""
" -o: enviar uptime al buffer actual como entrada (en inglés)\n"
"-ol: enviar uptime al buffer actual como entrada (en español)"
msgid ""
"raw[-v]: verbose mode: display information about upgrades of WeeChat with /"
"upgrade"
msgstr ""
#, fuzzy
msgid ""
"The default alias /v can be used to execute this command on all buffers "
+13 -6
View File
@@ -21,8 +21,8 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2025-01-05 10:14+0100\n"
"PO-Revision-Date: 2025-01-05 10:15+0100\n"
"POT-Creation-Date: 2025-01-07 20:32+0100\n"
"PO-Revision-Date: 2025-01-07 20:32+0100\n"
"Last-Translator: Sébastien Helleu <flashcode@flashtux.org>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
"Language: fr\n"
@@ -878,10 +878,6 @@ msgstr ""
msgid "Check running hooks with command: %s"
msgstr "Vérifiez les hooks qui tournent avec la commande: %s"
#, c-format
msgid "%sNo binary specified"
msgstr "%sPas de binaire spécifié"
#, c-format
msgid "%sCan't upgrade: WeeChat binary \"%s\" does not exist"
msgstr "%sImpossible de mettre à jour : le binaire WeeChat \"%s\" n'existe pas"
@@ -893,6 +889,10 @@ msgstr ""
"%sImpossible de mettre à jour : le binaire WeeChat \"%s\" n'a pas les droits "
"d'exécution"
#, c-format
msgid "%sNo binary specified"
msgstr "%sPas de binaire spécifié"
#, c-format
msgid "Upgrading WeeChat with binary file: \"%s\"..."
msgstr "Mise à jour de WeeChat avec le fichier binaire : \"%s\"..."
@@ -4051,6 +4051,13 @@ msgstr ""
"raw[-ol] : envoyer la version sur le tampon courant comme entrée (chaîne "
"traduite)"
msgid ""
"raw[-v]: verbose mode: display information about upgrades of WeeChat with /"
"upgrade"
msgstr ""
"raw[-v]: mode verbeux: afficher des informations sur les mises à jour de "
"WeeChat avec /upgrade"
msgid ""
"The default alias /v can be used to execute this command on all buffers "
"(otherwise the irc command /version is used on irc buffers)."
+10 -5
View File
@@ -20,7 +20,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2025-01-05 10:14+0100\n"
"POT-Creation-Date: 2025-01-07 20:32+0100\n"
"PO-Revision-Date: 2024-11-20 18:17+0100\n"
"Last-Translator: Andras Voroskoi <voroskoi@frugalware.org>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -889,10 +889,6 @@ msgstr ""
msgid "Check running hooks with command: %s"
msgstr ""
#, fuzzy, c-format
msgid "%sNo binary specified"
msgstr "Nincs aliasz definiálva.\n"
#, c-format
msgid "%sCan't upgrade: WeeChat binary \"%s\" does not exist"
msgstr ""
@@ -902,6 +898,10 @@ msgid ""
"%sCan't upgrade: WeeChat binary \"%s\" does not have execute permissions"
msgstr ""
#, fuzzy, c-format
msgid "%sNo binary specified"
msgstr "Nincs aliasz definiálva.\n"
#, fuzzy, c-format
msgid "Upgrading WeeChat with binary file: \"%s\"..."
msgstr "WeeChat frissítése...\n"
@@ -3541,6 +3541,11 @@ msgstr ""
msgid "raw[-ol]: send version to current buffer as input (translated string)"
msgstr ""
msgid ""
"raw[-v]: verbose mode: display information about upgrades of WeeChat with /"
"upgrade"
msgstr ""
msgid ""
"The default alias /v can be used to execute this command on all buffers "
"(otherwise the irc command /version is used on irc buffers)."
+10 -5
View File
@@ -20,7 +20,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2025-01-05 10:14+0100\n"
"POT-Creation-Date: 2025-01-07 20:32+0100\n"
"PO-Revision-Date: 2024-11-20 18:17+0100\n"
"Last-Translator: Esteban I. Ruiz Moreno <exio4.com@gmail.com>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -893,10 +893,6 @@ msgstr ""
msgid "Check running hooks with command: %s"
msgstr ""
#, fuzzy, c-format
msgid "%sNo binary specified"
msgstr "Nessuna barra definita"
#, c-format
msgid "%sCan't upgrade: WeeChat binary \"%s\" does not exist"
msgstr "%sImpossbile aggiornare: il binario di WeeChat \"%s\" non esiste"
@@ -908,6 +904,10 @@ msgstr ""
"%sImpossibile aggiornare: il binario di WeeChat \"%s\" non ha i permessi di "
"esecuzione"
#, fuzzy, c-format
msgid "%sNo binary specified"
msgstr "Nessuna barra definita"
#, c-format
msgid "Upgrading WeeChat with binary file: \"%s\"..."
msgstr "Aggiornamento di WeeChat con il file binario: \"%s\"..."
@@ -3737,6 +3737,11 @@ msgstr ""
" -o: invia l'uptime al buffer corrente come input (stringa in inglese)\n"
"-ol: invia l'uptime al buffer corrente come input (stringa tradotta)"
msgid ""
"raw[-v]: verbose mode: display information about upgrades of WeeChat with /"
"upgrade"
msgstr ""
#, fuzzy
msgid ""
"The default alias /v can be used to execute this command on all buffers "
+10 -5
View File
@@ -20,7 +20,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2025-01-05 10:14+0100\n"
"POT-Creation-Date: 2025-01-07 20:32+0100\n"
"PO-Revision-Date: 2024-11-20 18:17+0100\n"
"Last-Translator: AYANOKOUZI, Ryuunosuke <i38w7i3@yahoo.co.jp>\n"
"Language-Team: Japanese <https://github.com/l/weechat/tree/master/"
@@ -896,10 +896,6 @@ msgstr ""
msgid "Check running hooks with command: %s"
msgstr ""
#, c-format
msgid "%sNo binary specified"
msgstr "%sバイナリが指定されていません"
#, c-format
msgid "%sCan't upgrade: WeeChat binary \"%s\" does not exist"
msgstr "%sアップグレードできません: WeeChat バイナリ \"%s\" がありません"
@@ -910,6 +906,10 @@ msgid ""
msgstr ""
"%sアップグレードできません: WeeChat バイナリ \"%s\" の実行許可がありません"
#, c-format
msgid "%sNo binary specified"
msgstr "%sバイナリが指定されていません"
#, c-format
msgid "Upgrading WeeChat with binary file: \"%s\"..."
msgstr "バイナリファイル: \"%s\" で WeeChat のアップグレード中..."
@@ -3821,6 +3821,11 @@ msgstr ""
" -o: 連続稼働時間を現在のバッファの入力に送る (英語で)\n"
"-ol: 連続稼働時間を現在のバッファの入力に送る (翻訳済み)"
msgid ""
"raw[-v]: verbose mode: display information about upgrades of WeeChat with /"
"upgrade"
msgstr ""
#, fuzzy
#| msgid ""
#| " -o: send version to current buffer as input (English string)\n"
+10 -5
View File
@@ -22,7 +22,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2025-01-05 10:14+0100\n"
"POT-Creation-Date: 2025-01-07 20:32+0100\n"
"PO-Revision-Date: 2024-12-16 12:01+0100\n"
"Last-Translator: Krzysztof Korościk <soltys@soltys.info>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -888,10 +888,6 @@ msgstr ""
msgid "Check running hooks with command: %s"
msgstr ""
#, c-format
msgid "%sNo binary specified"
msgstr "%sNie określono binarki"
#, c-format
msgid "%sCan't upgrade: WeeChat binary \"%s\" does not exist"
msgstr "%sNie można uaktualnić: plik binarny WeeChat \"%s\" nie istnieje"
@@ -903,6 +899,10 @@ msgstr ""
"%sNie można uaktualnić: plik binarny WeeChat \"%s\" nie posiada uprawnień "
"do wykonania"
#, c-format
msgid "%sNo binary specified"
msgstr "%sNie określono binarki"
#, c-format
msgid "Upgrading WeeChat with binary file: \"%s\"..."
msgstr "Uaktualniam WeeChat z użyciem pliku: \"%s\"..."
@@ -4060,6 +4060,11 @@ msgid "raw[-ol]: send version to current buffer as input (translated string)"
msgstr ""
"raw[-ol]: wysyła wersję jako wejście do obecnego bufora (przetłumaczony ciąg)"
msgid ""
"raw[-v]: verbose mode: display information about upgrades of WeeChat with /"
"upgrade"
msgstr ""
msgid ""
"The default alias /v can be used to execute this command on all buffers "
"(otherwise the irc command /version is used on irc buffers)."
+10 -5
View File
@@ -20,7 +20,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2025-01-05 10:14+0100\n"
"POT-Creation-Date: 2025-01-07 20:32+0100\n"
"PO-Revision-Date: 2024-11-20 18:17+0100\n"
"Last-Translator: Vasco Almeida <vascomalmeida@sapo.pt>\n"
"Language-Team: Portuguese <>\n"
@@ -902,10 +902,6 @@ msgstr ""
msgid "Check running hooks with command: %s"
msgstr ""
#, c-format
msgid "%sNo binary specified"
msgstr "%sNenhum binário especificado"
#, c-format
msgid "%sCan't upgrade: WeeChat binary \"%s\" does not exist"
msgstr "%sNão é possível atualizar: o binário do WeeChat \"%s\" não existe"
@@ -917,6 +913,10 @@ msgstr ""
"%sNão é possível atualizar: o binário do WeeChat \"%s\" não tem permissões "
"de execução"
#, c-format
msgid "%sNo binary specified"
msgstr "%sNenhum binário especificado"
#, c-format
msgid "Upgrading WeeChat with binary file: \"%s\"..."
msgstr "A atualizar o WeeChat com o ficheiro binário: \"%s\"..."
@@ -3843,6 +3843,11 @@ msgstr ""
"-ol: enviar o tempo de atividade para o buffer atual como entrada (cadeia "
"traduzida)"
msgid ""
"raw[-v]: verbose mode: display information about upgrades of WeeChat with /"
"upgrade"
msgstr ""
#, fuzzy
#| msgid ""
#| " -o: send version to current buffer as input (English string)\n"
+10 -5
View File
@@ -21,7 +21,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2025-01-05 10:14+0100\n"
"POT-Creation-Date: 2025-01-07 20:32+0100\n"
"PO-Revision-Date: 2024-11-20 18:17+0100\n"
"Last-Translator: Érico Nogueira <ericonr@disroot.org>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -898,10 +898,6 @@ msgstr ""
msgid "Check running hooks with command: %s"
msgstr ""
#, fuzzy, c-format
msgid "%sNo binary specified"
msgstr "Nenhuma barra definida"
#, c-format
msgid "%sCan't upgrade: WeeChat binary \"%s\" does not exist"
msgstr "%sNão foi possível atualizar: binário do WeeChat \"%s\" não existe"
@@ -913,6 +909,10 @@ msgstr ""
"%sNão foi possível atualizar: binário do WeeChat \"%s\" não possui "
"permissões de execução"
#, fuzzy, c-format
msgid "%sNo binary specified"
msgstr "Nenhuma barra definida"
#, c-format
msgid "Upgrading WeeChat with binary file: \"%s\"..."
msgstr "Atualizando WeeChat com o arquivo binário: \"%s\"..."
@@ -3741,6 +3741,11 @@ msgstr ""
"-ol: envia o tempo de execução para o buffer atual como entrada (string "
"traduzida)"
msgid ""
"raw[-v]: verbose mode: display information about upgrades of WeeChat with /"
"upgrade"
msgstr ""
#, fuzzy
msgid ""
"The default alias /v can be used to execute this command on all buffers "
+10 -5
View File
@@ -21,7 +21,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2025-01-05 10:14+0100\n"
"POT-Creation-Date: 2025-01-07 20:32+0100\n"
"PO-Revision-Date: 2024-11-20 18:17+0100\n"
"Last-Translator: Aleksey V Zapparov AKA ixti <ixti@member.fsf.org>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -911,10 +911,6 @@ msgstr ""
msgid "Check running hooks with command: %s"
msgstr ""
#, fuzzy, c-format
msgid "%sNo binary specified"
msgstr "Сокращения не заданы.\n"
#, c-format
msgid "%sCan't upgrade: WeeChat binary \"%s\" does not exist"
msgstr ""
@@ -924,6 +920,10 @@ msgid ""
"%sCan't upgrade: WeeChat binary \"%s\" does not have execute permissions"
msgstr ""
#, fuzzy, c-format
msgid "%sNo binary specified"
msgstr "Сокращения не заданы.\n"
#, fuzzy, c-format
msgid "Upgrading WeeChat with binary file: \"%s\"..."
msgstr "Обновляю WeeChat...\n"
@@ -3565,6 +3565,11 @@ msgstr ""
msgid "raw[-ol]: send version to current buffer as input (translated string)"
msgstr ""
msgid ""
"raw[-v]: verbose mode: display information about upgrades of WeeChat with /"
"upgrade"
msgstr ""
msgid ""
"The default alias /v can be used to execute this command on all buffers "
"(otherwise the irc command /version is used on irc buffers)."
+10 -5
View File
@@ -20,7 +20,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2025-01-05 10:14+0100\n"
"POT-Creation-Date: 2025-01-07 20:32+0100\n"
"PO-Revision-Date: 2024-12-16 12:01+0100\n"
"Last-Translator: Ivan Pešić <ivan.pesic@gmail.com>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -869,10 +869,6 @@ msgstr ""
msgid "Check running hooks with command: %s"
msgstr ""
#, c-format
msgid "%sNo binary specified"
msgstr "%sНије наведен бинарни фајл"
#, c-format
msgid "%sCan't upgrade: WeeChat binary \"%s\" does not exist"
msgstr "%sНије могуће ажурирање: WeeChat бинарни фајл „%s” не постоји"
@@ -883,6 +879,10 @@ msgid ""
msgstr ""
"%sНије могуће ажурирање: WeeChat бинарни фајл „%s” нема права извршавања"
#, c-format
msgid "%sNo binary specified"
msgstr "%sНије наведен бинарни фајл"
#, c-format
msgid "Upgrading WeeChat with binary file: \"%s\"..."
msgstr "WeeChat се ажурира са бинарним фајлом: „%s”..."
@@ -3929,6 +3929,11 @@ msgstr "raw[-o]: шаље верзију као унос у текући баф
msgid "raw[-ol]: send version to current buffer as input (translated string)"
msgstr "raw[-ol]: шаље верзију као унос у текући бафер (преведени стринг)"
msgid ""
"raw[-v]: verbose mode: display information about upgrades of WeeChat with /"
"upgrade"
msgstr ""
msgid ""
"The default alias /v can be used to execute this command on all buffers "
"(otherwise the irc command /version is used on irc buffers)."
+10 -5
View File
@@ -20,7 +20,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2025-01-05 10:14+0100\n"
"POT-Creation-Date: 2025-01-07 20:32+0100\n"
"PO-Revision-Date: 2025-01-04 18:21+0100\n"
"Last-Translator: Emir SARI <emir_sari@icloud.com>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -862,10 +862,6 @@ msgstr ""
msgid "Check running hooks with command: %s"
msgstr "Şu komutla çalışan kancaları denetle: %s"
#, c-format
msgid "%sNo binary specified"
msgstr "%sBir ikili belirtilmemiş"
#, c-format
msgid "%sCan't upgrade: WeeChat binary \"%s\" does not exist"
msgstr "%sYükseltilemiyor: WeeChat ikilisi \"%s\" yok"
@@ -875,6 +871,10 @@ msgid ""
"%sCan't upgrade: WeeChat binary \"%s\" does not have execute permissions"
msgstr "%sYükseltilemiyor: WeeChat ikilisi \"%s\" yürütme izinlerine iye değil"
#, c-format
msgid "%sNo binary specified"
msgstr "%sBir ikili belirtilmemiş"
#, c-format
msgid "Upgrading WeeChat with binary file: \"%s\"..."
msgstr "WeeChat ikili dosya ile yükseltiliyor: \"%s\"..."
@@ -3801,6 +3801,11 @@ msgstr ""
" -o: açık kalma süresini geçerli arabelleğe girdi olarak gönder (İngilizce)\n"
"-ol: açık kalma süresini geçerli arabelleğe girdi olarak gönder (çevrilmiş)"
msgid ""
"raw[-v]: verbose mode: display information about upgrades of WeeChat with /"
"upgrade"
msgstr ""
#, fuzzy
#| msgid ""
#| " -o: send version to current buffer as input (English string)\n"
+10 -5
View File
@@ -21,7 +21,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2025-01-05 10:14+0100\n"
"POT-Creation-Date: 2025-01-07 20:32+0100\n"
"PO-Revision-Date: 2014-08-16 10:27+0200\n"
"Last-Translator: Sébastien Helleu <flashcode@flashtux.org>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -833,10 +833,6 @@ msgstr ""
msgid "Check running hooks with command: %s"
msgstr ""
#, c-format
msgid "%sNo binary specified"
msgstr ""
#, c-format
msgid "%sCan't upgrade: WeeChat binary \"%s\" does not exist"
msgstr ""
@@ -846,6 +842,10 @@ msgid ""
"%sCan't upgrade: WeeChat binary \"%s\" does not have execute permissions"
msgstr ""
#, c-format
msgid "%sNo binary specified"
msgstr ""
#, c-format
msgid "Upgrading WeeChat with binary file: \"%s\"..."
msgstr ""
@@ -3339,6 +3339,11 @@ msgstr ""
msgid "raw[-ol]: send version to current buffer as input (translated string)"
msgstr ""
msgid ""
"raw[-v]: verbose mode: display information about upgrades of WeeChat with /"
"upgrade"
msgstr ""
msgid ""
"The default alias /v can be used to execute this command on all buffers "
"(otherwise the irc command /version is used on irc buffers)."
+41 -16
View File
@@ -7338,6 +7338,7 @@ COMMAND_CALLBACK(unset)
void
command_upgrade_display (struct t_gui_buffer *buffer,
int send_to_buffer_as_input,
int translated_string)
{
char string[1024], str_first_start[128], str_last_start[128];
@@ -7399,11 +7400,18 @@ command_upgrade_display (struct t_gui_buffer *buffer,
}
}
(void) input_data (buffer,
string,
NULL,
0, /* split_newline */
0); /* user_data */
if (send_to_buffer_as_input)
{
(void) input_data (buffer,
string,
NULL,
0, /* split_newline */
0); /* user_data */
}
else
{
gui_chat_printf (NULL, "%s", string);
}
}
/*
@@ -7430,12 +7438,12 @@ COMMAND_CALLBACK(upgrade)
{
if (string_strcmp (argv[1], "-o") == 0)
{
command_upgrade_display (buffer, 0);
command_upgrade_display (buffer, 1, 0);
return WEECHAT_RC_OK;
}
if (string_strcmp (argv[1], "-ol") == 0)
{
command_upgrade_display (buffer, 1);
command_upgrade_display (buffer, 1, 1);
return WEECHAT_RC_OK;
}
if (string_strcmp (argv[1], "-yes") == 0)
@@ -7746,7 +7754,8 @@ void
command_version_display (struct t_gui_buffer *buffer,
int send_to_buffer_as_input,
int translated_string,
int display_git_version)
int display_git_version,
int display_upgrades)
{
char string[1024];
@@ -7776,6 +7785,9 @@ command_version_display (struct t_gui_buffer *buffer,
version_get_compilation_time (),
GUI_COLOR(GUI_COLOR_CHAT_DELIMITERS));
}
if (display_upgrades)
command_upgrade_display (buffer, send_to_buffer_as_input, translated_string);
}
/*
@@ -7784,7 +7796,7 @@ command_version_display (struct t_gui_buffer *buffer,
COMMAND_CALLBACK(version)
{
int send_to_buffer_as_input, translated_string;
int i, send_to_buffer_as_input, translated_string, display_upgrades;
/* make C compiler happy */
(void) pointer;
@@ -7793,20 +7805,32 @@ COMMAND_CALLBACK(version)
send_to_buffer_as_input = 0;
translated_string = 0;
display_upgrades = 0;
if (argc >= 2)
for (i = 1; i < argc; i++)
{
if (string_strcmp (argv[1], "-o") == 0)
if (string_strcmp (argv[i], "-o") == 0)
{
send_to_buffer_as_input = 1;
else if (string_strcmp (argv[1], "-ol") == 0)
translated_string = 0;
}
else if (string_strcmp (argv[i], "-ol") == 0)
{
send_to_buffer_as_input = 1;
translated_string = 1;
}
else if (string_strcmp (argv[i], "-v") == 0)
{
display_upgrades = 1;
}
}
command_version_display (buffer, send_to_buffer_as_input,
translated_string, 1);
command_version_display (
buffer,
send_to_buffer_as_input,
translated_string,
1, /* display_git_version */
display_upgrades);
return WEECHAT_RC_OK;
}
@@ -9858,15 +9882,16 @@ command_init ()
hook_command (
NULL, "version",
N_("show WeeChat version and compilation date"),
"[-o|-ol]",
"[-o|-ol] [-v]",
CMD_ARGS_DESC(
N_("raw[-o]: send version to current buffer as input (English string)"),
N_("raw[-ol]: send version to current buffer as input (translated string)"),
N_("raw[-v]: verbose mode: display information about upgrades of WeeChat with /upgrade"),
"",
N_("The default alias /v can be used to execute this command on "
"all buffers (otherwise the irc command /version is used on irc "
"buffers).")),
"-o|-ol",
"-o|-ol|-v|%*",
&command_version, NULL, NULL);
hook_command (
NULL, "wait",
+2 -1
View File
@@ -98,7 +98,8 @@ extern const char *command_help_option_color_values ();
extern void command_version_display (struct t_gui_buffer *buffer,
int send_to_buffer_as_input,
int translated_string,
int display_git_version);
int display_git_version,
int display_upgrades);
extern void command_init ();
extern void command_startup (int plugins_loaded);
+6 -1
View File
@@ -437,7 +437,12 @@ weechat_startup_message ()
}
if (CONFIG_BOOLEAN(config_startup_display_version))
{
command_version_display (NULL, 0, 0, 0);
command_version_display (
NULL, /* buffer */
0, /* send_to_buffer_as_input */
0, /* translated_string */
0, /* display_git_version */
(weechat_upgrade_count > 0) ? 1 : 0); /* display_upgrades */
}
if (CONFIG_BOOLEAN(config_startup_display_logo) ||
CONFIG_BOOLEAN(config_startup_display_version))