summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog2
-rw-r--r--doc/de/autogen/user/weechat_commands.txt28
-rw-r--r--doc/en/autogen/user/weechat_commands.txt6
-rw-r--r--doc/fr/autogen/user/weechat_commands.txt6
-rw-r--r--doc/it/autogen/user/weechat_commands.txt26
-rw-r--r--doc/ja/autogen/user/weechat_commands.txt22
-rw-r--r--doc/pl/autogen/user/weechat_commands.txt26
-rw-r--r--po/cs.po12
-rw-r--r--po/de.po12
-rw-r--r--po/es.po12
-rw-r--r--po/fr.po20
-rw-r--r--po/hu.po10
-rw-r--r--po/it.po12
-rw-r--r--po/ja.po12
-rw-r--r--po/pl.po12
-rw-r--r--po/pt_BR.po12
-rw-r--r--po/ru.po10
-rw-r--r--po/tr.po10
-rw-r--r--po/weechat.pot10
-rw-r--r--src/core/wee-command.c36
20 files changed, 162 insertions, 134 deletions
diff --git a/ChangeLog b/ChangeLog
index 8844c3f24..0f2ef2a40 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -13,6 +13,8 @@ http://weechat.org/files/releasenotes/ReleaseNotes-devel.html[release notes]
== Version 0.4.4 (under dev)
+* core: mute all buffers by default in command /mute (replace option -all by
+ -core)
* core: save and restore mute state in command /mute (bug #41748)
* core: fix memory leak when removing a hdata
* core: fix memory leak in evaluation of sub-conditions
diff --git a/doc/de/autogen/user/weechat_commands.txt b/doc/de/autogen/user/weechat_commands.txt
index 61d3245b0..290aa40b6 100644
--- a/doc/de/autogen/user/weechat_commands.txt
+++ b/doc/de/autogen/user/weechat_commands.txt
@@ -525,23 +525,23 @@ Beispiele:
[command]*`mute`* Führt einen Befehl ohne Textausgabe aus::
----
-/mute [-current | -buffer <name> | -all] <command>
+/mute [-core | -current | -buffer <name>] <command>
--current: Ausgabe im aktuellen Buffer wird unterdrückt
- -buffer: Ausgabe im ausgewählten Buffer wird unterdrückt
- name: vollständiger Buffername (Beispiel: "irc.server.freenode", "irc.freenode.#weechat")
- -all: Ausgabe wird für ALLE Buffer unterdrückt
- command: Ein Befehl der ohne Textausgabe ausgeführt werden soll (das Präfix, '/', wird automatisch hinzugefügt, falls es dem Befehl nicht vorangestellt wurde)
+ -core: no output on WeeChat core buffer
+-current: no output on current buffer
+ -buffer: no output on specified buffer
+ name: full buffer name (examples: "irc.server.freenode", "irc.freenode.#weechat")
+ command: command to execute silently (a '/' is automatically added if not found at beginning of command)
-Wird kein Buffer ausgewählt (-current, -buffer oder -all), dann wird lediglich die Textausgabe im WeeChat Core Buffer unterdrückt.
+If no target is specified (-core, -current or -buffer), then default is to mute all buffers.
-Beispiele:
- Speichern der Konfiguration:
- /mute save
- Nachricht in den aktuellen Channel senden:
- /mute -current msg * hi!
- Nachricht an den #weechat Channel senden:
- /mute -buffer irc.freenode.#weechat msg #weechat hi!
+Examples:
+ config save:
+ /mute save
+ message to current IRC channel:
+ /mute -current msg * hi!
+ message to #weechat channel:
+ /mute -buffer irc.freenode.#weechat msg #weechat hi!
----
[[command_weechat_plugin]]
diff --git a/doc/en/autogen/user/weechat_commands.txt b/doc/en/autogen/user/weechat_commands.txt
index 8b4bfd3f2..46ecba0f3 100644
--- a/doc/en/autogen/user/weechat_commands.txt
+++ b/doc/en/autogen/user/weechat_commands.txt
@@ -525,15 +525,15 @@ Examples:
[command]*`mute`* execute a command silently::
----
-/mute [-current | -buffer <name> | -all] <command>
+/mute [-core | -current | -buffer <name>] <command>
+ -core: no output on WeeChat core buffer
-current: no output on current buffer
-buffer: no output on specified buffer
name: full buffer name (examples: "irc.server.freenode", "irc.freenode.#weechat")
- -all: no output on ALL buffers
command: command to execute silently (a '/' is automatically added if not found at beginning of command)
-If no target is specified (-current, -buffer or -all), then default is to mute WeeChat core buffer only.
+If no target is specified (-core, -current or -buffer), then default is to mute all buffers.
Examples:
config save:
diff --git a/doc/fr/autogen/user/weechat_commands.txt b/doc/fr/autogen/user/weechat_commands.txt
index 9e3731b3b..34e536eae 100644
--- a/doc/fr/autogen/user/weechat_commands.txt
+++ b/doc/fr/autogen/user/weechat_commands.txt
@@ -525,15 +525,15 @@ Exemples:
[command]*`mute`* exécuter une commande silencieusement::
----
-/mute [-current | -buffer <nom> | -all] <commande>
+/mute [-core | -current | -buffer <nom>] <commande>
+ -core: pas d'affichage sur le tampon core WeeChat
-current: pas d'affichage sur le tampon courant
-buffer: pas d'affichage sur le tampon spécifié
nom: nom complet du tampon (exemples: "irc.server.freenode", "irc.freenode.#weechat")
- -all: pas d'affichage sur TOUS les tampons
commande: commande à exécuter silencieusement (un '/' est automatiquement ajouté s'il n'est pas trouvé au début de la commande)
-Si aucune cible n'est spécifiée (-current, -buffer ou -all), alors par défaut seul le tampon core WeeChat sera silencieux.
+Si aucune cible n'est spécifiée (-core, -current ou -buffer), alors par défaut tous les tampons seront silencieux.
Exemples:
sauvegarde configuration:
diff --git a/doc/it/autogen/user/weechat_commands.txt b/doc/it/autogen/user/weechat_commands.txt
index c1684e8ae..9c9a068ac 100644
--- a/doc/it/autogen/user/weechat_commands.txt
+++ b/doc/it/autogen/user/weechat_commands.txt
@@ -525,23 +525,23 @@ Esempi:
[command]*`mute`* esegue un comando in silenzio::
----
-/mute [-current | -buffer <nome> | -all] <comando>
+/mute [-core | -current | -buffer <name>] <command>
--current: nessun output sul buffer corrente
- -buffer: nessun output sul buffer specificato
- nome: nome completo del buffer (esempi: "irc.server.freenode", "irc.freenode.#weechat")
- -all: nessun output su TUTTI i buffer
- command: comando da eseguire in silenzio (una '/' viene aggiunta automaticamente all'inizio del comando se non trovata)
+ -core: no output on WeeChat core buffer
+-current: no output on current buffer
+ -buffer: no output on specified buffer
+ name: full buffer name (examples: "irc.server.freenode", "irc.freenode.#weechat")
+ command: command to execute silently (a '/' is automatically added if not found at beginning of command)
-Se non viene specificata una destinazione (-current, -buffer o -all), la destinazione predefinita è il buffer core di WeeChat.
+If no target is specified (-core, -current or -buffer), then default is to mute all buffers.
-Esempi:
- salva la configurazione:
+Examples:
+ config save:
/mute save
- messaggio sul canale IRC corrente:
- /mute -current msg * ciao!
- messaggio sul canale #weechat:
- /mute -buffer irc.freenode.#weechat msg #weechat ciao!
+ message to current IRC channel:
+ /mute -current msg * hi!
+ message to #weechat channel:
+ /mute -buffer irc.freenode.#weechat msg #weechat hi!
----
[[command_weechat_plugin]]
diff --git a/doc/ja/autogen/user/weechat_commands.txt b/doc/ja/autogen/user/weechat_commands.txt
index 0ab2e2f8d..3c4ff3d84 100644
--- a/doc/ja/autogen/user/weechat_commands.txt
+++ b/doc/ja/autogen/user/weechat_commands.txt
@@ -525,22 +525,22 @@ disable: マウスの無効化
[command]*`mute`* 静かにコマンドを実行::
----
-/mute [-current | -buffer <name> | -all] <command>
+/mute [-core | -current | -buffer <name>] <command>
--current: 現在のバッファへの出力を禁止
- -buffer: 指定したバッファへの出力を禁止
- name: 完全なバッファの名前 (例: "irc.server.freenode"、"irc.freenode.#weechat")
- -all: 全てのバッファへの出力を禁止
- command: 静かに実行するコマンド (最初に '/' が無い場合は自動的に追加されます)
+ -core: no output on WeeChat core buffer
+-current: no output on current buffer
+ -buffer: no output on specified buffer
+ name: full buffer name (examples: "irc.server.freenode", "irc.freenode.#weechat")
+ command: command to execute silently (a '/' is automatically added if not found at beginning of command)
-ターゲット (-current、-buffer、-all) が指定されなかった場合、デフォルトでは WeeChat コアバッファへの出力のみが抑制されます。
+If no target is specified (-core, -current or -buffer), then default is to mute all buffers.
-例:
- save を行う:
+Examples:
+ config save:
/mute save
- 現在の IRC チャンネルへのメッセージ:
+ message to current IRC channel:
/mute -current msg * hi!
- #weechat チャンネルへのメッセージ:
+ message to #weechat channel:
/mute -buffer irc.freenode.#weechat msg #weechat hi!
----
diff --git a/doc/pl/autogen/user/weechat_commands.txt b/doc/pl/autogen/user/weechat_commands.txt
index fd7c75567..23e1c6870 100644
--- a/doc/pl/autogen/user/weechat_commands.txt
+++ b/doc/pl/autogen/user/weechat_commands.txt
@@ -525,23 +525,23 @@ Przykłady:
[command]*`mute`* wykonuje komendę po cichu::
----
-/mute [-current | -buffer <nazwa> | -all] <komenda>
+/mute [-core | -current | -buffer <name>] <command>
--current: bez wyjścia na obecnym kanale
- -buffer: bez wyjścia w podanym buforze
- nazwa: pełna nazwa bufora (przykłady: "irc.server.freenode", "irc.freenode.#weechat")
- -all: bez wyjścia we WSZYSTKICH buforach
- komenda: komenda do cichego wykonania ( '/' jest dodawane automatycznie jeśli nie znalezione na początku komendy)
+ -core: no output on WeeChat core buffer
+-current: no output on current buffer
+ -buffer: no output on specified buffer
+ name: full buffer name (examples: "irc.server.freenode", "irc.freenode.#weechat")
+ command: command to execute silently (a '/' is automatically added if not found at beginning of command)
-Jeżeli nie podano celu (-current, -buffer lub -all), wtedy domyślnie jest wyciszany tylko bufor rdzenia WeeChat.
+If no target is specified (-core, -current or -buffer), then default is to mute all buffers.
-Przykłady:
- zapisanie konfiguracji:
+Examples:
+ config save:
/mute save
- wiadomość do obecnego kanału IRC:
- /mute -current msg * hej!
- wiadomość na kanał #weechat:
- /mute -buffer irc.freenode.#weechat msg #weechat hej!
+ message to current IRC channel:
+ /mute -current msg * hi!
+ message to #weechat channel:
+ /mute -buffer irc.freenode.#weechat msg #weechat hi!
----
[[command_weechat_plugin]]
diff --git a/po/cs.po b/po/cs.po
index b4d7ef7f9..09a76aba9 100644
--- a/po/cs.po
+++ b/po/cs.po
@@ -20,7 +20,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
-"POT-Creation-Date: 2014-03-04 11:15+0100\n"
+"POT-Creation-Date: 2014-03-04 15:46+0100\n"
"PO-Revision-Date: 2014-03-04 11:20+0100\n"
"Last-Translator: Jiri Golembiovsky <golemj@gmail.com>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -1827,20 +1827,22 @@ msgstr ""
msgid "execute a command silently"
msgstr "vykonat příkaz v tichosti"
-msgid "[-current | -buffer <name> | -all] <command>"
+#, fuzzy
+msgid "[-core | -current | -buffer <name>] <command>"
msgstr "[-current | -buffer <jméno> | -all] <příkaz>"
+#, fuzzy
msgid ""
+" -core: no output on WeeChat core buffer\n"
"-current: no output on current buffer\n"
" -buffer: no output on specified buffer\n"
" name: full buffer name (examples: \"irc.server.freenode\", \"irc."
"freenode.#weechat\")\n"
-" -all: no output on ALL buffers\n"
" command: command to execute silently (a '/' is automatically added if not "
"found at beginning of command)\n"
"\n"
-"If no target is specified (-current, -buffer or -all), then default is to "
-"mute WeeChat core buffer only.\n"
+"If no target is specified (-core, -current or -buffer), then default is to "
+"mute all buffers.\n"
"\n"
"Examples:\n"
" config save:\n"
diff --git a/po/de.po b/po/de.po
index 69cceca6d..db15ea9d3 100644
--- a/po/de.po
+++ b/po/de.po
@@ -22,7 +22,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
-"POT-Creation-Date: 2014-03-04 11:15+0100\n"
+"POT-Creation-Date: 2014-03-04 15:46+0100\n"
"PO-Revision-Date: 2014-03-04 11:21+0100\n"
"Last-Translator: Nils Görs <weechatter@arcor.de>\n"
"Language-Team: German <weechatter@arcor.de>\n"
@@ -2053,20 +2053,22 @@ msgstr ""
msgid "execute a command silently"
msgstr "Führt einen Befehl ohne Textausgabe aus"
-msgid "[-current | -buffer <name> | -all] <command>"
+#, fuzzy
+msgid "[-core | -current | -buffer <name>] <command>"
msgstr "[-current | -buffer <name> | -all] <command>"
+#, fuzzy
msgid ""
+" -core: no output on WeeChat core buffer\n"
"-current: no output on current buffer\n"
" -buffer: no output on specified buffer\n"
" name: full buffer name (examples: \"irc.server.freenode\", \"irc."
"freenode.#weechat\")\n"
-" -all: no output on ALL buffers\n"
" command: command to execute silently (a '/' is automatically added if not "
"found at beginning of command)\n"
"\n"
-"If no target is specified (-current, -buffer or -all), then default is to "
-"mute WeeChat core buffer only.\n"
+"If no target is specified (-core, -current or -buffer), then default is to "
+"mute all buffers.\n"
"\n"
"Examples:\n"
" config save:\n"
diff --git a/po/es.po b/po/es.po
index d647cd417..bce65fac8 100644
--- a/po/es.po
+++ b/po/es.po
@@ -22,7 +22,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
-"POT-Creation-Date: 2014-03-04 11:15+0100\n"
+"POT-Creation-Date: 2014-03-04 15:46+0100\n"
"PO-Revision-Date: 2014-03-04 11:21+0100\n"
"Last-Translator: Elián Hanisch <lambdae2@gmail.com>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -1929,20 +1929,22 @@ msgstr ""
msgid "execute a command silently"
msgstr "ejecuta un comando silenciosamente"
-msgid "[-current | -buffer <name> | -all] <command>"
+#, fuzzy
+msgid "[-core | -current | -buffer <name>] <command>"
msgstr "[-current | -buffer <nombre> | -all] <comando>"
+#, fuzzy
msgid ""
+" -core: no output on WeeChat core buffer\n"
"-current: no output on current buffer\n"
" -buffer: no output on specified buffer\n"
" name: full buffer name (examples: \"irc.server.freenode\", \"irc."
"freenode.#weechat\")\n"
-" -all: no output on ALL buffers\n"
" command: command to execute silently (a '/' is automatically added if not "
"found at beginning of command)\n"
"\n"
-"If no target is specified (-current, -buffer or -all), then default is to "
-"mute WeeChat core buffer only.\n"
+"If no target is specified (-core, -current or -buffer), then default is to "
+"mute all buffers.\n"
"\n"
"Examples:\n"
" config save:\n"
diff --git a/po/fr.po b/po/fr.po
index eaeb98d19..e055c15f7 100644
--- a/po/fr.po
+++ b/po/fr.po
@@ -21,8 +21,8 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
-"POT-Creation-Date: 2014-03-04 11:15+0100\n"
-"PO-Revision-Date: 2014-03-04 11:21+0100\n"
+"POT-Creation-Date: 2014-03-04 15:46+0100\n"
+"PO-Revision-Date: 2014-03-04 16:09+0100\n"
"Last-Translator: Sébastien Helleu <flashcode@flashtux.org>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
"Language: fr\n"
@@ -2008,20 +2008,20 @@ msgstr ""
msgid "execute a command silently"
msgstr "exécuter une commande silencieusement"
-msgid "[-current | -buffer <name> | -all] <command>"
-msgstr "[-current | -buffer <nom> | -all] <commande>"
+msgid "[-core | -current | -buffer <name>] <command>"
+msgstr "[-core | -current | -buffer <nom>] <commande>"
msgid ""
+" -core: no output on WeeChat core buffer\n"
"-current: no output on current buffer\n"
" -buffer: no output on specified buffer\n"
" name: full buffer name (examples: \"irc.server.freenode\", \"irc."
"freenode.#weechat\")\n"
-" -all: no output on ALL buffers\n"
" command: command to execute silently (a '/' is automatically added if not "
"found at beginning of command)\n"
"\n"
-"If no target is specified (-current, -buffer or -all), then default is to "
-"mute WeeChat core buffer only.\n"
+"If no target is specified (-core, -current or -buffer), then default is to "
+"mute all buffers.\n"
"\n"
"Examples:\n"
" config save:\n"
@@ -2031,16 +2031,16 @@ msgid ""
" message to #weechat channel:\n"
" /mute -buffer irc.freenode.#weechat msg #weechat hi!"
msgstr ""
+" -core: pas d'affichage sur le tampon core WeeChat\n"
"-current: pas d'affichage sur le tampon courant\n"
" -buffer: pas d'affichage sur le tampon spécifié\n"
" nom: nom complet du tampon (exemples: \"irc.server.freenode\", \"irc."
"freenode.#weechat\")\n"
-" -all: pas d'affichage sur TOUS les tampons\n"
"commande: commande à exécuter silencieusement (un '/' est automatiquement "
"ajouté s'il n'est pas trouvé au début de la commande)\n"
"\n"
-"Si aucune cible n'est spécifiée (-current, -buffer ou -all), alors par "
-"défaut seul le tampon core WeeChat sera silencieux.\n"
+"Si aucune cible n'est spécifiée (-core, -current ou -buffer), alors par "
+"défaut tous les tampons seront silencieux.\n"
"\n"
"Exemples:\n"
" sauvegarde configuration:\n"
diff --git a/po/hu.po b/po/hu.po
index 1472b30b6..3dbcc6449 100644
--- a/po/hu.po
+++ b/po/hu.po
@@ -20,7 +20,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
-"POT-Creation-Date: 2014-03-04 11:15+0100\n"
+"POT-Creation-Date: 2014-03-04 15:46+0100\n"
"PO-Revision-Date: 2014-03-04 11:21+0100\n"
"Last-Translator: Andras Voroskoi <voroskoi@frugalware.org>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -1628,20 +1628,20 @@ msgstr ""
msgid "execute a command silently"
msgstr "%s belső parancsok:\n"
-msgid "[-current | -buffer <name> | -all] <command>"
+msgid "[-core | -current | -buffer <name>] <command>"
msgstr ""
msgid ""
+" -core: no output on WeeChat core buffer\n"
"-current: no output on current buffer\n"
" -buffer: no output on specified buffer\n"
" name: full buffer name (examples: \"irc.server.freenode\", \"irc."
"freenode.#weechat\")\n"
-" -all: no output on ALL buffers\n"
" command: command to execute silently (a '/' is automatically added if not "
"found at beginning of command)\n"
"\n"
-"If no target is specified (-current, -buffer or -all), then default is to "
-"mute WeeChat core buffer only.\n"
+"If no target is specified (-core, -current or -buffer), then default is to "
+"mute all buffers.\n"
"\n"
"Examples:\n"
" config save:\n"
diff --git a/po/it.po b/po/it.po
index 9c2f2386f..6bb32cb7f 100644
--- a/po/it.po
+++ b/po/it.po
@@ -20,7 +20,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
-"POT-Creation-Date: 2014-03-04 11:15+0100\n"
+"POT-Creation-Date: 2014-03-04 15:46+0100\n"
"PO-Revision-Date: 2014-03-04 11:21+0100\n"
"Last-Translator: Esteban I. Ruiz Moreno <exio4.com@gmail.com>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -1968,20 +1968,22 @@ msgstr ""
msgid "execute a command silently"
msgstr "esegue un comando in silenzio"
-msgid "[-current | -buffer <name> | -all] <command>"
+#, fuzzy
+msgid "[-core | -current | -buffer <name>] <command>"
msgstr "[-current | -buffer <nome> | -all] <comando>"
+#, fuzzy
msgid ""
+" -core: no output on WeeChat core buffer\n"
"-current: no output on current buffer\n"
" -buffer: no output on specified buffer\n"
" name: full buffer name (examples: \"irc.server.freenode\", \"irc."
"freenode.#weechat\")\n"
-" -all: no output on ALL buffers\n"
" command: command to execute silently (a '/' is automatically added if not "
"found at beginning of command)\n"
"\n"
-"If no target is specified (-current, -buffer or -all), then default is to "
-"mute WeeChat core buffer only.\n"
+"If no target is specified (-core, -current or -buffer), then default is to "
+"mute all buffers.\n"
"\n"
"Examples:\n"
" config save:\n"
diff --git a/po/ja.po b/po/ja.po
index 599f2d79c..cfd7b88c5 100644
--- a/po/ja.po
+++ b/po/ja.po
@@ -20,7 +20,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
-"POT-Creation-Date: 2014-03-04 11:15+0100\n"
+"POT-Creation-Date: 2014-03-04 15:46+0100\n"
"PO-Revision-Date: 2014-03-04 11:21+0100\n"
"Last-Translator: AYANOKOUZI, Ryuunosuke <i38w7i3@yahoo.co.jp>\n"
"Language-Team: Japanese <https://github.com/l/WeeChat>\n"
@@ -1952,20 +1952,22 @@ msgstr ""
msgid "execute a command silently"
msgstr "静かにコマンドを実行"
-msgid "[-current | -buffer <name> | -all] <command>"
+#, fuzzy
+msgid "[-core | -current | -buffer <name>] <command>"
msgstr "[-current | -buffer <name> | -all] <command>"
+#, fuzzy
msgid ""
+" -core: no output on WeeChat core buffer\n"
"-current: no output on current buffer\n"
" -buffer: no output on specified buffer\n"
" name: full buffer name (examples: \"irc.server.freenode\", \"irc."
"freenode.#weechat\")\n"
-" -all: no output on ALL buffers\n"
" command: command to execute silently (a '/' is automatically added if not "
"found at beginning of command)\n"
"\n"
-"If no target is specified (-current, -buffer or -all), then default is to "
-"mute WeeChat core buffer only.\n"
+"If no target is specified (-core, -current or -buffer), then default is to "
+"mute all buffers.\n"
"\n"
"Examples:\n"
" config save:\n"
diff --git a/po/pl.po b/po/pl.po
index fff1f29a5..33f5b6422 100644
--- a/po/pl.po
+++ b/po/pl.po
@@ -21,7 +21,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
-"POT-Creation-Date: 2014-03-04 11:15+0100\n"
+"POT-Creation-Date: 2014-03-04 15:46+0100\n"
"PO-Revision-Date: 2014-03-04 11:21+0100\n"
"Last-Translator: Krzysztof Korościk <soltys@szluug.org>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -1996,20 +1996,22 @@ msgstr ""
msgid "execute a command silently"
msgstr "wykonuje komendę po cichu"
-msgid "[-current | -buffer <name> | -all] <command>"
+#, fuzzy
+msgid "[-core | -current | -buffer <name>] <command>"
msgstr "[-current | -buffer <nazwa> | -all] <komenda>"
+#, fuzzy
msgid ""
+" -core: no output on WeeChat core buffer\n"
"-current: no output on current buffer\n"
" -buffer: no output on specified buffer\n"
" name: full buffer name (examples: \"irc.server.freenode\", \"irc."
"freenode.#weechat\")\n"
-" -all: no output on ALL buffers\n"
" command: command to execute silently (a '/' is automatically added if not "
"found at beginning of command)\n"
"\n"
-"If no target is specified (-current, -buffer or -all), then default is to "
-"mute WeeChat core buffer only.\n"
+"If no target is specified (-core, -current or -buffer), then default is to "
+"mute all buffers.\n"
"\n"
"Examples:\n"
" config save:\n"
diff --git a/po/pt_BR.po b/po/pt_BR.po
index dbc4d4812..ce27bb2f5 100644
--- a/po/pt_BR.po
+++ b/po/pt_BR.po
@@ -21,7 +21,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
-"POT-Creation-Date: 2014-03-04 11:15+0100\n"
+"POT-Creation-Date: 2014-03-04 15:46+0100\n"
"PO-Revision-Date: 2014-03-04 11:21+0100\n"
"Last-Translator: Sergio Durigan Junior <sergiosdj@gmail.com>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -1909,20 +1909,22 @@ msgstr ""
msgid "execute a command silently"
msgstr "executa um comando silenciosamente"
-msgid "[-current | -buffer <name> | -all] <command>"
+#, fuzzy
+msgid "[-core | -current | -buffer <name>] <command>"
msgstr "[-current | -buffer <nome> | -all] <comando>"
+#, fuzzy
msgid ""
+" -core: no output on WeeChat core buffer\n"
"-current: no output on current buffer\n"
" -buffer: no output on specified buffer\n"
" name: full buffer name (examples: \"irc.server.freenode\", \"irc."
"freenode.#weechat\")\n"
-" -all: no output on ALL buffers\n"
" command: command to execute silently (a '/' is automatically added if not "
"found at beginning of command)\n"
"\n"
-"If no target is specified (-current, -buffer or -all), then default is to "
-"mute WeeChat core buffer only.\n"
+"If no target is specified (-core, -current or -buffer), then default is to "
+"mute all buffers.\n"
"\n"
"Examples:\n"
" config save:\n"
diff --git a/po/ru.po b/po/ru.po
index 47b0a0a4a..6495a1767 100644
--- a/po/ru.po
+++ b/po/ru.po
@@ -21,7 +21,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
-"POT-Creation-Date: 2014-03-04 11:15+0100\n"
+"POT-Creation-Date: 2014-03-04 15:46+0100\n"
"PO-Revision-Date: 2014-03-04 11:21+0100\n"
"Last-Translator: Aleksey V Zapparov AKA ixti <ixti@member.fsf.org>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -1651,20 +1651,20 @@ msgstr ""
msgid "execute a command silently"
msgstr "Внутренние команды %s:\n"
-msgid "[-current | -buffer <name> | -all] <command>"
+msgid "[-core | -current | -buffer <name>] <command>"
msgstr ""
msgid ""
+" -core: no output on WeeChat core buffer\n"
"-current: no output on current buffer\n"
" -buffer: no output on specified buffer\n"
" name: full buffer name (examples: \"irc.server.freenode\", \"irc."
"freenode.#weechat\")\n"
-" -all: no output on ALL buffers\n"
" command: command to execute silently (a '/' is automatically added if not "
"found at beginning of command)\n"
"\n"
-"If no target is specified (-current, -buffer or -all), then default is to "
-"mute WeeChat core buffer only.\n"
+"If no target is specified (-core, -current or -buffer), then default is to "
+"mute all buffers.\n"
"\n"
"Examples:\n"
" config save:\n"
diff --git a/po/tr.po b/po/tr.po
index 2933efee3..7c1a6f588 100644
--- a/po/tr.po
+++ b/po/tr.po
@@ -20,7 +20,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
-"POT-Creation-Date: 2014-03-04 11:15+0100\n"
+"POT-Creation-Date: 2014-03-04 15:46+0100\n"
"PO-Revision-Date: 2014-02-16 11:21+0100\n"
"Last-Translator: Hasan Kiran <sunder67@hotmail.com>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -1469,20 +1469,20 @@ msgstr ""
msgid "execute a command silently"
msgstr ""
-msgid "[-current | -buffer <name> | -all] <command>"
+msgid "[-core | -current | -buffer <name>] <command>"
msgstr ""
msgid ""
+" -core: no output on WeeChat core buffer\n"
"-current: no output on current buffer\n"
" -buffer: no output on specified buffer\n"
" name: full buffer name (examples: \"irc.server.freenode\", \"irc."
"freenode.#weechat\")\n"
-" -all: no output on ALL buffers\n"
" command: command to execute silently (a '/' is automatically added if not "
"found at beginning of command)\n"
"\n"
-"If no target is specified (-current, -buffer or -all), then default is to "
-"mute WeeChat core buffer only.\n"
+"If no target is specified (-core, -current or -buffer), then default is to "
+"mute all buffers.\n"
"\n"
"Examples:\n"
" config save:\n"
diff --git a/po/weechat.pot b/po/weechat.pot
index 6636714cf..439bb7f10 100644
--- a/po/weechat.pot
+++ b/po/weechat.pot
@@ -21,7 +21,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat 0.4.1-dev\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
-"POT-Creation-Date: 2014-03-04 11:15+0100\n"
+"POT-Creation-Date: 2014-03-04 15:46+0100\n"
"PO-Revision-Date: 2013-02-14 18:20+0100\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -1472,20 +1472,20 @@ msgstr ""
msgid "execute a command silently"
msgstr ""
-msgid "[-current | -buffer <name> | -all] <command>"
+msgid "[-core | -current | -buffer <name>] <command>"
msgstr ""
msgid ""
+" -core: no output on WeeChat core buffer\n"
"-current: no output on current buffer\n"
" -buffer: no output on specified buffer\n"
" name: full buffer name (examples: \"irc.server.freenode\", \"irc."
"freenode.#weechat\")\n"
-" -all: no output on ALL buffers\n"
" command: command to execute silently (a '/' is automatically added if not "
"found at beginning of command)\n"
"\n"
-"If no target is specified (-current, -buffer or -all), then default is to "
-"mute WeeChat core buffer only.\n"
+"If no target is specified (-core, -current or -buffer), then default is to "
+"mute all buffers.\n"
"\n"
"Examples:\n"
" config save:\n"
diff --git a/src/core/wee-command.c b/src/core/wee-command.c
index b4b706b8d..e29d4cd03 100644
--- a/src/core/wee-command.c
+++ b/src/core/wee-command.c
@@ -3755,12 +3755,20 @@ COMMAND_CALLBACK(mute)
gui_chat_mute_old = gui_chat_mute;
gui_chat_mute_buffer_old = gui_chat_mute_buffer;
- mute_mode = GUI_CHAT_MUTE_BUFFER;
- mute_buffer = gui_buffer_search_main ();
+ mute_mode = GUI_CHAT_MUTE_ALL_BUFFERS;
+ mute_buffer = NULL;
+
ptr_command = argv_eol[1];
- if (string_strcasecmp (argv[1], "-current") == 0)
+ if (string_strcasecmp (argv[1], "-core") == 0)
+ {
+ mute_mode = GUI_CHAT_MUTE_BUFFER;
+ mute_buffer = gui_buffer_search_main ();
+ ptr_command = argv_eol[2];
+ }
+ else if (string_strcasecmp (argv[1], "-current") == 0)
{
+ mute_mode = GUI_CHAT_MUTE_BUFFER;
mute_buffer = buffer;
ptr_command = argv_eol[2];
}
@@ -3770,13 +3778,18 @@ COMMAND_CALLBACK(mute)
return WEECHAT_RC_ERROR;
ptr_buffer = gui_buffer_search_by_full_name (argv[2]);
if (ptr_buffer)
+ {
+ mute_mode = GUI_CHAT_MUTE_BUFFER;
mute_buffer = ptr_buffer;
+ }
ptr_command = argv_eol[3];
}
else if (string_strcasecmp (argv[1], "-all") == 0)
{
- mute_mode = GUI_CHAT_MUTE_ALL_BUFFERS;
- mute_buffer = NULL;
+ /*
+ * action ignored in WeeChat >= 0.4.4 (mute on all buffers is default)
+ * (kept for compatibility with old versions)
+ */
ptr_command = argv_eol[2];
}
@@ -7086,17 +7099,17 @@ command_init ()
hook_command (
NULL, "mute",
N_("execute a command silently"),
- N_("[-current | -buffer <name> | -all] <command>"),
- N_("-current: no output on current buffer\n"
+ N_("[-core | -current | -buffer <name>] <command>"),
+ N_(" -core: no output on WeeChat core buffer\n"
+ "-current: no output on current buffer\n"
" -buffer: no output on specified buffer\n"
" name: full buffer name (examples: \"irc.server.freenode\", "
"\"irc.freenode.#weechat\")\n"
- " -all: no output on ALL buffers\n"
" command: command to execute silently (a '/' is automatically added "
"if not found at beginning of command)\n"
"\n"
- "If no target is specified (-current, -buffer or -all), then default "
- "is to mute WeeChat core buffer only.\n"
+ "If no target is specified (-core, -current or -buffer), then "
+ "default is to mute all buffers.\n"
"\n"
"Examples:\n"
" config save:\n"
@@ -7105,9 +7118,8 @@ command_init ()
" /mute -current msg * hi!\n"
" message to #weechat channel:\n"
" /mute -buffer irc.freenode.#weechat msg #weechat hi!"),
- "-current %(commands)|%*"
+ "-core|-current %(commands)|%*"
" || -buffer %(buffers_plugins_names) %(commands)|%*"
- " || -all %(commands)|%*"
" || %(commands)|%*",
&command_mute, NULL);
hook_command (