fifo: add /fifo command

v2.8-utf8proc
Sébastien Helleu 2015-12-02 19:46:34 +01:00
parent 2a494227b4
commit 6f0151e128
36 changed files with 906 additions and 81 deletions

View File

@ -26,6 +26,7 @@ https://weechat.org/files/releasenotes/ReleaseNotes-devel.html[release notes]
* api: add function string_hex_dump()
* api: add argument "length" in function utf8_is_valid()
* alias: display completion in /alias list (issue #518)
* fifo: add /fifo command
* irc: use current channel and current server channels first in completions
"irc_server_channels" and "irc_channels" (task #12923, issue #392)
* irc: add support of "cap-notify" capability (issue #182, issue #477)

View File

@ -0,0 +1,29 @@
//
// This file is auto-generated by script docgen.py.
// DO NOT EDIT BY HAND!
//
[[command_fifo_fifo]]
[command]*`fifo`* fifo plugin configuration::
----
/fifo enable|disable|toggle
enable: enable FIFO pipe
disable: disable FIFO pipe
toggle: toggle FIFO pipe
FIFO pipe is used as remote control of WeeChat: you can send commands or text to the FIFO pipe from your shell.
By default the FIFO pipe is in ~/.weechat/weechat_fifo_xxx ("xxx" is the WeeChat PID).
The expected format is one of:
plugin.buffer *text or command here
*text or command here
For example to change your freenode nick:
echo 'irc.server.freenode */nick newnick' >~/.weechat/weechat_fifo_12345
Please read the user's guide for more info and examples.
Examples:
/fifo toggle
----

View File

@ -2151,6 +2151,11 @@ Falls man das Skript "auto_weechat_command" benennt ruft man es wie folgt auf:
$ ./auto_weechat_command 'irc.freenode.#weechat *Hallo'
----
[[fifo_commands]]
==== Befehle
include::autogen/user/fifo_commands.asciidoc[]
[[irc_plugin]]
=== IRC Erweiterung

View File

@ -0,0 +1,29 @@
//
// This file is auto-generated by script docgen.py.
// DO NOT EDIT BY HAND!
//
[[command_fifo_fifo]]
[command]*`fifo`* fifo plugin configuration::
----
/fifo enable|disable|toggle
enable: enable FIFO pipe
disable: disable FIFO pipe
toggle: toggle FIFO pipe
FIFO pipe is used as remote control of WeeChat: you can send commands or text to the FIFO pipe from your shell.
By default the FIFO pipe is in ~/.weechat/weechat_fifo_xxx ("xxx" is the WeeChat PID).
The expected format is one of:
plugin.buffer *text or command here
*text or command here
For example to change your freenode nick:
echo 'irc.server.freenode */nick newnick' >~/.weechat/weechat_fifo_12345
Please read the user's guide for more info and examples.
Examples:
/fifo toggle
----

View File

@ -202,6 +202,7 @@ WeeChat "core" is located in following directories:
| exec-config.c | Exec config options (file exec.conf)
| fifo/ | Fifo plugin
| fifo.c | Main fifo functions
| fifo-command.c | Fifo commands
| fifo-info.c | Fifo info/infolists/hdata
| guile/ | Guile (scheme) plugin
| weechat-guile.c | Main guile functions (load/unload scripts, execute guile code)

View File

@ -2098,6 +2098,11 @@ If the script is called "auto_weechat_command", you can run it with:
$ ./auto_weechat_command 'irc.freenode.#weechat *hello'
----
[[fifo_commands]]
==== Commands
include::autogen/user/fifo_commands.asciidoc[]
[[irc_plugin]]
=== IRC plugin

View File

@ -0,0 +1,29 @@
//
// This file is auto-generated by script docgen.py.
// DO NOT EDIT BY HAND!
//
[[command_fifo_fifo]]
[command]*`fifo`* configuration de l'extension fifo::
----
/fifo enable|disable|toggle
enable : activer le tube FIFO
disable : désactiver le tube FIFO
toggle : activer/désactiver le tube FIFO
Le tube FIFO est utilisé comme contrôle à distance de WeeChat : vous pouvez envoyer des commandes ou du texte au tube FIFO depuis votre shell.
Par défaut le tube FIFO est dans ~/.weechat/weechat_fifo_xxx ("xxx" est le PID de WeeChat).
Le format attendu est l'un des suivants :
plugin.buffer *texte ou commande ici
*texte ou commande ici
Par exemple pour changer votre pseudo sur freenode :
echo 'irc.server.freenode */nick autrepseudo' >~/.weechat/weechat_fifo_12345
Merci de lire le guide utilisateur pour plus d'information et des exemples.
Exemples :
/fifo toggle
----

View File

@ -203,6 +203,7 @@ Le cœur de WeeChat est situé dans les répertoires suivants :
| exec-config.c | Options de configuration pour Exec (fichier exec.conf)
| fifo/ | Extension Fifo
| fifo.c | Fonctions principales de Fifo
| fifo-command.c | Commandes pour Fifo
| fifo-info.c | Info/infolists/hdata pour Fifo
| guile/ | Extension Guile (scheme)
| weechat-guile.c | Fonctions principales pour Guile (chargement/déchargement des scripts, exécution de code Guile)

View File

@ -2168,6 +2168,11 @@ Si le script s'appelle "auto_weechat_command", vous pouvez le lancer ainsi :
$ ./auto_weechat_command 'irc.freenode.#weechat *bonjour'
----
[[fifo_commands]]
==== Commandes
include::autogen/user/fifo_commands.asciidoc[]
[[irc_plugin]]
=== Extension IRC

View File

@ -0,0 +1,29 @@
//
// This file is auto-generated by script docgen.py.
// DO NOT EDIT BY HAND!
//
[[command_fifo_fifo]]
[command]*`fifo`* fifo plugin configuration::
----
/fifo enable|disable|toggle
enable: enable FIFO pipe
disable: disable FIFO pipe
toggle: toggle FIFO pipe
FIFO pipe is used as remote control of WeeChat: you can send commands or text to the FIFO pipe from your shell.
By default the FIFO pipe is in ~/.weechat/weechat_fifo_xxx ("xxx" is the WeeChat PID).
The expected format is one of:
plugin.buffer *text or command here
*text or command here
For example to change your freenode nick:
echo 'irc.server.freenode */nick newnick' >~/.weechat/weechat_fifo_12345
Please read the user's guide for more info and examples.
Examples:
/fifo toggle
----

View File

@ -2207,6 +2207,11 @@ eseguito con:
$ ./auto_weechat_command 'irc.freenode.#weechat *ciao'
----
[[fifo_commands]]
==== Comandi
include::autogen/user/fifo_commands.asciidoc[]
[[irc_plugin]]
=== Plugin IRC

View File

@ -0,0 +1,29 @@
//
// This file is auto-generated by script docgen.py.
// DO NOT EDIT BY HAND!
//
[[command_fifo_fifo]]
[command]*`fifo`* fifo plugin configuration::
----
/fifo enable|disable|toggle
enable: enable FIFO pipe
disable: disable FIFO pipe
toggle: toggle FIFO pipe
FIFO pipe is used as remote control of WeeChat: you can send commands or text to the FIFO pipe from your shell.
By default the FIFO pipe is in ~/.weechat/weechat_fifo_xxx ("xxx" is the WeeChat PID).
The expected format is one of:
plugin.buffer *text or command here
*text or command here
For example to change your freenode nick:
echo 'irc.server.freenode */nick newnick' >~/.weechat/weechat_fifo_12345
Please read the user's guide for more info and examples.
Examples:
/fifo toggle
----

View File

@ -207,6 +207,8 @@ WeeChat "core" は以下のディレクトリに配置されています:
| exec-config.c | Exec 設定オプション (exec.conf ファイル)
| fifo/ | fifo プラグイン
| fifo.c | fifo の主要関数
// TRANSLATION MISSING
| fifo-command.c | Fifo commands
| fifo-info.c | fifo の情報/インフォリスト/hdata
| guile/ | guile (scheme) プラグイン
| weechat-guile.c | guile の主要関数 (スクリプトのロード/アンロード、guile コードの実行)

View File

@ -2101,6 +2101,11 @@ fi
$ ./auto_weechat_command 'irc.freenode.#weechat *hello'
----
[[fifo_commands]]
==== コマンド
include::autogen/user/fifo_commands.asciidoc[]
[[irc_plugin]]
=== IRC プラグイン

View File

@ -0,0 +1,29 @@
//
// This file is auto-generated by script docgen.py.
// DO NOT EDIT BY HAND!
//
[[command_fifo_fifo]]
[command]*`fifo`* fifo plugin configuration::
----
/fifo enable|disable|toggle
enable: enable FIFO pipe
disable: disable FIFO pipe
toggle: toggle FIFO pipe
FIFO pipe is used as remote control of WeeChat: you can send commands or text to the FIFO pipe from your shell.
By default the FIFO pipe is in ~/.weechat/weechat_fifo_xxx ("xxx" is the WeeChat PID).
The expected format is one of:
plugin.buffer *text or command here
*text or command here
For example to change your freenode nick:
echo 'irc.server.freenode */nick newnick' >~/.weechat/weechat_fifo_12345
Please read the user's guide for more info and examples.
Examples:
/fifo toggle
----

View File

@ -2119,6 +2119,11 @@ Nazwa skryptu to "auto_weechat_command", można go wykonać na przykład tak:
$ ./auto_weechat_command 'irc.freenode.#weechat *hello'
----
[[fifo_commands]]
==== Komendy
include::autogen/user/fifo_commands.asciidoc[]
[[irc_plugin]]
=== Wtyczka IRC

View File

@ -132,6 +132,8 @@
./src/plugins/exec/exec.h
./src/plugins/fifo/fifo.c
./src/plugins/fifo/fifo.h
./src/plugins/fifo/fifo-command.c
./src/plugins/fifo/fifo-command.h
./src/plugins/fifo/fifo-info.c
./src/plugins/fifo/fifo-info.h
./src/plugins/guile/weechat-guile-api.c

View File

@ -21,8 +21,8 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2015-11-12 16:20+0100\n"
"PO-Revision-Date: 2015-10-25 15:19+0100\n"
"POT-Creation-Date: 2015-12-02 19:24+0100\n"
"PO-Revision-Date: 2015-12-02 19:26+0100\n"
"Last-Translator: Ondřej Súkup <mimi.vx@gmail.com>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
"Language: cs\n"
@ -4993,9 +4993,9 @@ msgstr "%s%s: nemohu vytvořit rouru pro vzdálené ovládání (%s)"
msgid "%s: removing old fifo pipe \"%s\""
msgstr "%s: odstraňuji starou fifo rouru \"%s\""
#, c-format
msgid "%s: pipe opened"
msgstr "%s:roura otevřena"
#, fuzzy, c-format
msgid "%s: pipe opened (file: %s)"
msgstr "Myš je zapnuta"
#, c-format
msgid "%s%s: unable to open pipe (%s) for reading"
@ -5025,6 +5025,45 @@ msgstr "%s%s: chyba při znovunačtení roury, zavírám ji"
msgid "%s%s: error opening file, closing it"
msgstr "%s%s: chyba při otevírání souboru, zavírám ho"
#, fuzzy, c-format
msgid "%s: pipe is enabled (file: %s)"
msgstr "Myš je zapnuta"
#, fuzzy, c-format
msgid "%s: pipe is disabled"
msgstr "Myš je vypnuta"
#, fuzzy
msgid "fifo plugin configuration"
msgstr "konfigurace logovacího pluginu"
#, fuzzy
msgid "enable|disable|toggle"
msgstr "povol|zakaž|přepni [<zpoždění>]"
msgid ""
" enable: enable FIFO pipe\n"
"disable: disable FIFO pipe\n"
" toggle: toggle FIFO pipe\n"
"\n"
"FIFO pipe is used as remote control of WeeChat: you can send commands or "
"text to the FIFO pipe from your shell.\n"
"By default the FIFO pipe is in ~/.weechat/weechat_fifo_xxx (\"xxx\" is the "
"WeeChat PID).\n"
"\n"
"The expected format is one of:\n"
" plugin.buffer *text or command here\n"
" *text or command here\n"
"\n"
"For example to change your freenode nick:\n"
" echo 'irc.server.freenode */nick newnick' >~/.weechat/weechat_fifo_12345\n"
"\n"
"Please read the user's guide for more info and examples.\n"
"\n"
"Examples:\n"
" /fifo toggle"
msgstr ""
msgid "name of FIFO pipe"
msgstr "jméno FIFO roury"
@ -11207,6 +11246,3 @@ msgstr "%s%s: vypršel časový limit \"%s\" pro %s"
#, c-format
msgid "%s%s: unable to connect: unexpected error (%d)"
msgstr "%s%s: nemohu se připojit\" neočekávaná chyba (%d)"
#~ msgid "%s%s: error, buffer not found for pipe data"
#~ msgstr "%s%s: chyba, nenalezen buffer pro data roury"

View File

@ -19,8 +19,8 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2015-11-12 16:20+0100\n"
"PO-Revision-Date: 2015-11-12 16:23+0100\n"
"POT-Creation-Date: 2015-12-02 19:24+0100\n"
"PO-Revision-Date: 2015-12-02 19:26+0100\n"
"Last-Translator: Nils Görs <weechatter@arcor.de>\n"
"Language-Team: German <>\n"
"Language: de\n"
@ -5931,9 +5931,9 @@ msgstr "FIFO Pipe für Fernsteuerung"
msgid "%s: removing old fifo pipe \"%s\""
msgstr "%s: Entferne alte FIFO Pipe \"%s\""
#, c-format
msgid "%s: pipe opened"
msgstr "%s: Pipe ist geöffnet"
#, fuzzy, c-format
msgid "%s: pipe opened (file: %s)"
msgstr "Maus ist aktiv"
#, c-format
msgid "%s%s: unable to open pipe (%s) for reading"
@ -5964,6 +5964,47 @@ msgstr "%s%s: Pipe kann nicht gelesen werden (%d %s), wird nun geschlossen"
msgid "%s%s: error opening file, closing it"
msgstr "%s%s: Fehler beim öffnen der Datei, schließe Datei wieder"
#, fuzzy, c-format
msgid "%s: pipe is enabled (file: %s)"
msgstr "Maus ist aktiv"
#, fuzzy, c-format
msgid "%s: pipe is disabled"
msgstr "Maus ist inaktiv"
#, fuzzy
msgid "fifo plugin configuration"
msgstr ""
"Konfiguration für \"logger\" Erweiterung (dient zum protokollieren der "
"Buffer)"
#, fuzzy
msgid "enable|disable|toggle"
msgstr "enable|disable|toggle [<delay>]"
msgid ""
" enable: enable FIFO pipe\n"
"disable: disable FIFO pipe\n"
" toggle: toggle FIFO pipe\n"
"\n"
"FIFO pipe is used as remote control of WeeChat: you can send commands or "
"text to the FIFO pipe from your shell.\n"
"By default the FIFO pipe is in ~/.weechat/weechat_fifo_xxx (\"xxx\" is the "
"WeeChat PID).\n"
"\n"
"The expected format is one of:\n"
" plugin.buffer *text or command here\n"
" *text or command here\n"
"\n"
"For example to change your freenode nick:\n"
" echo 'irc.server.freenode */nick newnick' >~/.weechat/weechat_fifo_12345\n"
"\n"
"Please read the user's guide for more info and examples.\n"
"\n"
"Examples:\n"
" /fifo toggle"
msgstr ""
msgid "name of FIFO pipe"
msgstr "Name der FIFO-Pipe"

View File

@ -22,8 +22,8 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2015-11-12 16:20+0100\n"
"PO-Revision-Date: 2015-09-30 20:55+0200\n"
"POT-Creation-Date: 2015-12-02 19:24+0100\n"
"PO-Revision-Date: 2015-12-02 19:26+0100\n"
"Last-Translator: Elián Hanisch <lambdae2@gmail.com>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
"Language: es\n"
@ -5222,9 +5222,9 @@ msgstr "Tubería FIFO para control remoto"
msgid "%s: removing old fifo pipe \"%s\""
msgstr "%s: removiendo vieja tubería fifo \"%s\""
#, c-format
msgid "%s: pipe opened"
msgstr "%s: tubería abierto"
#, fuzzy, c-format
msgid "%s: pipe opened (file: %s)"
msgstr "Ratón activado"
#, c-format
msgid "%s%s: unable to open pipe (%s) for reading"
@ -5254,6 +5254,45 @@ msgstr "%s%s: error al leer la tubería (%d %s), cerrándolo"
msgid "%s%s: error opening file, closing it"
msgstr "%s%s: error al abrir el archivo, cerrándolo"
#, fuzzy, c-format
msgid "%s: pipe is enabled (file: %s)"
msgstr "Ratón activado"
#, fuzzy, c-format
msgid "%s: pipe is disabled"
msgstr "Ratón desactivado"
#, fuzzy
msgid "fifo plugin configuration"
msgstr "configuración del plugin de registro"
#, fuzzy
msgid "enable|disable|toggle"
msgstr "enable|disable|toggle [<retraso>]"
msgid ""
" enable: enable FIFO pipe\n"
"disable: disable FIFO pipe\n"
" toggle: toggle FIFO pipe\n"
"\n"
"FIFO pipe is used as remote control of WeeChat: you can send commands or "
"text to the FIFO pipe from your shell.\n"
"By default the FIFO pipe is in ~/.weechat/weechat_fifo_xxx (\"xxx\" is the "
"WeeChat PID).\n"
"\n"
"The expected format is one of:\n"
" plugin.buffer *text or command here\n"
" *text or command here\n"
"\n"
"For example to change your freenode nick:\n"
" echo 'irc.server.freenode */nick newnick' >~/.weechat/weechat_fifo_12345\n"
"\n"
"Please read the user's guide for more info and examples.\n"
"\n"
"Examples:\n"
" /fifo toggle"
msgstr ""
msgid "name of FIFO pipe"
msgstr "nombre de la tubería FIFO"
@ -11472,6 +11511,3 @@ msgstr "%s%s: tiempo de espera máximo para \"%s\" con %s"
#, fuzzy, c-format
msgid "%s%s: unable to connect: unexpected error (%d)"
msgstr "%s%s: no es posible conectarse al transmisor"
#~ msgid "%s%s: error, buffer not found for pipe data"
#~ msgstr "%s%s: error, buffer no encontrado para los datos de la tubería"

View File

@ -21,8 +21,8 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2015-11-12 16:20+0100\n"
"PO-Revision-Date: 2015-11-12 19:55+0100\n"
"POT-Creation-Date: 2015-12-02 19:24+0100\n"
"PO-Revision-Date: 2015-12-02 19:26+0100\n"
"Last-Translator: Sébastien Helleu <flashcode@flashtux.org>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
"Language: fr\n"
@ -5805,8 +5805,8 @@ msgid "%s: removing old fifo pipe \"%s\""
msgstr "%s : suppression du vieux tube \"%s\""
#, c-format
msgid "%s: pipe opened"
msgstr "%s : tube ouvert"
msgid "%s: pipe opened (file: %s)"
msgstr "%s : tube ouvert (fichier : %s)"
#, c-format
msgid "%s%s: unable to open pipe (%s) for reading"
@ -5838,6 +5838,64 @@ msgstr "%s%s : erreur en lecture du tube (%d %s), fermeture"
msgid "%s%s: error opening file, closing it"
msgstr "%s%s : erreur d'ouverture du fichier, fermeture"
#, c-format
msgid "%s: pipe is enabled (file: %s)"
msgstr "%s : le tube est activé (fichier : %s)"
#, c-format
msgid "%s: pipe is disabled"
msgstr "%s : le tube est désactivé"
msgid "fifo plugin configuration"
msgstr "configuration de l'extension fifo"
msgid "enable|disable|toggle"
msgstr "enable|disable|toggle"
msgid ""
" enable: enable FIFO pipe\n"
"disable: disable FIFO pipe\n"
" toggle: toggle FIFO pipe\n"
"\n"
"FIFO pipe is used as remote control of WeeChat: you can send commands or "
"text to the FIFO pipe from your shell.\n"
"By default the FIFO pipe is in ~/.weechat/weechat_fifo_xxx (\"xxx\" is the "
"WeeChat PID).\n"
"\n"
"The expected format is one of:\n"
" plugin.buffer *text or command here\n"
" *text or command here\n"
"\n"
"For example to change your freenode nick:\n"
" echo 'irc.server.freenode */nick newnick' >~/.weechat/weechat_fifo_12345\n"
"\n"
"Please read the user's guide for more info and examples.\n"
"\n"
"Examples:\n"
" /fifo toggle"
msgstr ""
" enable : activer le tube FIFO\n"
"disable : désactiver le tube FIFO\n"
" toggle : activer/désactiver le tube FIFO\n"
"\n"
"Le tube FIFO est utilisé comme contrôle à distance de WeeChat : vous pouvez "
"envoyer des commandes ou du texte au tube FIFO depuis votre shell.\n"
"Par défaut le tube FIFO est dans ~/.weechat/weechat_fifo_xxx (\"xxx\" est le "
"PID de WeeChat).\n"
"\n"
"Le format attendu est l'un des suivants :\n"
" plugin.buffer *texte ou commande ici\n"
" *texte ou commande ici\n"
"\n"
"Par exemple pour changer votre pseudo sur freenode :\n"
" echo 'irc.server.freenode */nick autrepseudo' >~/.weechat/"
"weechat_fifo_12345\n"
"\n"
"Merci de lire le guide utilisateur pour plus d'information et des exemples.\n"
"\n"
"Exemples :\n"
" /fifo toggle"
msgid "name of FIFO pipe"
msgstr "nom du tube FIFO"
@ -12463,6 +12521,3 @@ msgstr "%s%s : délai d'attente dépassé pour \"%s\" avec %s"
#, c-format
msgid "%s%s: unable to connect: unexpected error (%d)"
msgstr "%s%s : impossible de se connecter : erreur inattendue (%d)"
#~ msgid "%s%s: error, buffer not found for pipe data"
#~ msgstr "%s%s : erreur, tampon non trouvé pour les données du tube"

View File

@ -20,8 +20,8 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2015-11-12 16:20+0100\n"
"PO-Revision-Date: 2015-09-09 09:13+0200\n"
"POT-Creation-Date: 2015-12-02 19:24+0100\n"
"PO-Revision-Date: 2015-12-02 19:26+0100\n"
"Last-Translator: Andras Voroskoi <voroskoi@frugalware.org>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
"Language: hu\n"
@ -4568,8 +4568,8 @@ msgid "%s: removing old fifo pipe \"%s\""
msgstr "%s nincs elég memória az információs pult üzenethez\n"
#, fuzzy, c-format
msgid "%s: pipe opened"
msgstr "FIFO cső nyitva\n"
msgid "%s: pipe opened (file: %s)"
msgstr "a felhasználók le lettek tiltva"
#, fuzzy, c-format
msgid "%s%s: unable to open pipe (%s) for reading"
@ -4599,6 +4599,44 @@ msgstr "%s hiba a FIFO cső olvasása közben, bezárás\n"
msgid "%s%s: error opening file, closing it"
msgstr "%s hiba a FIFO cső olvasása közben, bezárás\n"
#, fuzzy, c-format
msgid "%s: pipe is enabled (file: %s)"
msgstr "a felhasználók le lettek tiltva"
#, fuzzy, c-format
msgid "%s: pipe is disabled"
msgstr "Nincs aliasz definiálva.\n"
#, fuzzy
msgid "fifo plugin configuration"
msgstr "Beállítások mentése a lemezre\n"
msgid "enable|disable|toggle"
msgstr ""
msgid ""
" enable: enable FIFO pipe\n"
"disable: disable FIFO pipe\n"
" toggle: toggle FIFO pipe\n"
"\n"
"FIFO pipe is used as remote control of WeeChat: you can send commands or "
"text to the FIFO pipe from your shell.\n"
"By default the FIFO pipe is in ~/.weechat/weechat_fifo_xxx (\"xxx\" is the "
"WeeChat PID).\n"
"\n"
"The expected format is one of:\n"
" plugin.buffer *text or command here\n"
" *text or command here\n"
"\n"
"For example to change your freenode nick:\n"
" echo 'irc.server.freenode */nick newnick' >~/.weechat/weechat_fifo_12345\n"
"\n"
"Please read the user's guide for more info and examples.\n"
"\n"
"Examples:\n"
" /fifo toggle"
msgstr ""
msgid "name of FIFO pipe"
msgstr ""
@ -10526,7 +10564,3 @@ msgstr "%s hiányzó argumentum a(z) \"%s\" opciónak\n"
#, fuzzy, c-format
msgid "%s%s: unable to connect: unexpected error (%d)"
msgstr "%s DCC: nem sikerült kapcsolódni a küldőhöz\n"
#, fuzzy
#~ msgid "%s%s: error, buffer not found for pipe data"
#~ msgstr "%s a \"%s\" szerver nem található (FIFO cső adat)\n"

View File

@ -20,8 +20,8 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2015-11-12 16:20+0100\n"
"PO-Revision-Date: 2015-09-30 20:55+0200\n"
"POT-Creation-Date: 2015-12-02 19:24+0100\n"
"PO-Revision-Date: 2015-12-02 19:26+0100\n"
"Last-Translator: Esteban I. Ruiz Moreno <exio4.com@gmail.com>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
"Language: it\n"
@ -5369,9 +5369,9 @@ msgstr "Pipe FIFO per il controllo remoto"
msgid "%s: removing old fifo pipe \"%s\""
msgstr "%s: rimozione della pipe fifo %s precedente"
#, c-format
msgid "%s: pipe opened"
msgstr "%s: pipe aperta"
#, fuzzy, c-format
msgid "%s: pipe opened (file: %s)"
msgstr "Mouse abilitato"
#, c-format
msgid "%s%s: unable to open pipe (%s) for reading"
@ -5402,6 +5402,45 @@ msgstr "%s%s: errore nella lettura della pipe (%d %s), chiusura"
msgid "%s%s: error opening file, closing it"
msgstr "%s%s: errore nella lettura del file, chiusura"
#, fuzzy, c-format
msgid "%s: pipe is enabled (file: %s)"
msgstr "Mouse abilitato"
#, fuzzy, c-format
msgid "%s: pipe is disabled"
msgstr "Mouse disabilitato"
#, fuzzy
msgid "fifo plugin configuration"
msgstr "configurazione del plugin logger"
#, fuzzy
msgid "enable|disable|toggle"
msgstr "enable|disable|toggle [<ritardo>]"
msgid ""
" enable: enable FIFO pipe\n"
"disable: disable FIFO pipe\n"
" toggle: toggle FIFO pipe\n"
"\n"
"FIFO pipe is used as remote control of WeeChat: you can send commands or "
"text to the FIFO pipe from your shell.\n"
"By default the FIFO pipe is in ~/.weechat/weechat_fifo_xxx (\"xxx\" is the "
"WeeChat PID).\n"
"\n"
"The expected format is one of:\n"
" plugin.buffer *text or command here\n"
" *text or command here\n"
"\n"
"For example to change your freenode nick:\n"
" echo 'irc.server.freenode */nick newnick' >~/.weechat/weechat_fifo_12345\n"
"\n"
"Please read the user's guide for more info and examples.\n"
"\n"
"Examples:\n"
" /fifo toggle"
msgstr ""
msgid "name of FIFO pipe"
msgstr "nome della pipe FIFO"
@ -11655,6 +11694,3 @@ msgstr "%s%s: timeout per \"%s\" con %s"
#, fuzzy, c-format
msgid "%s%s: unable to connect: unexpected error (%d)"
msgstr "%s%s: impossibile connettersi al mittente"
#~ msgid "%s%s: error, buffer not found for pipe data"
#~ msgstr "%s%s: errore, buffer non trovato per la pipe dati"

View File

@ -20,8 +20,8 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2015-11-12 16:20+0100\n"
"PO-Revision-Date: 2015-11-22 09:00+0900\n"
"POT-Creation-Date: 2015-12-02 19:24+0100\n"
"PO-Revision-Date: 2015-12-02 19:26+0100\n"
"Last-Translator: AYANOKOUZI, Ryuunosuke <i38w7i3@yahoo.co.jp>\n"
"Language-Team: Japanese <https://github.com/l/weechat/tree/translation_ja>\n"
"Language: ja\n"
@ -5545,9 +5545,9 @@ msgstr "リモート操作用の FIFO パイプ"
msgid "%s: removing old fifo pipe \"%s\""
msgstr "%s: 古い fifo パイプ \"%s\" の削除中"
#, c-format
msgid "%s: pipe opened"
msgstr "%s: パイプを開けました"
#, fuzzy, c-format
msgid "%s: pipe opened (file: %s)"
msgstr "マウスを有効化しました"
#, c-format
msgid "%s%s: unable to open pipe (%s) for reading"
@ -5577,6 +5577,45 @@ msgstr "%s%s: パイプ読み取り中にエラー (%d %s)、パイプを閉じ
msgid "%s%s: error opening file, closing it"
msgstr "%s%s: ファイルを開いている最中にエラー、ファイルを閉じています"
#, fuzzy, c-format
msgid "%s: pipe is enabled (file: %s)"
msgstr "マウスを有効化しました"
#, fuzzy, c-format
msgid "%s: pipe is disabled"
msgstr "マウスを無効化しました"
#, fuzzy
msgid "fifo plugin configuration"
msgstr "logger プラグイン設定"
#, fuzzy
msgid "enable|disable|toggle"
msgstr "enable|disable|toggle [<delay>]"
msgid ""
" enable: enable FIFO pipe\n"
"disable: disable FIFO pipe\n"
" toggle: toggle FIFO pipe\n"
"\n"
"FIFO pipe is used as remote control of WeeChat: you can send commands or "
"text to the FIFO pipe from your shell.\n"
"By default the FIFO pipe is in ~/.weechat/weechat_fifo_xxx (\"xxx\" is the "
"WeeChat PID).\n"
"\n"
"The expected format is one of:\n"
" plugin.buffer *text or command here\n"
" *text or command here\n"
"\n"
"For example to change your freenode nick:\n"
" echo 'irc.server.freenode */nick newnick' >~/.weechat/weechat_fifo_12345\n"
"\n"
"Please read the user's guide for more info and examples.\n"
"\n"
"Examples:\n"
" /fifo toggle"
msgstr ""
msgid "name of FIFO pipe"
msgstr "FIFO パイプの名前"
@ -11982,6 +12021,3 @@ msgstr "%s%s: \"%s\" のタイムアウト %s"
#, c-format
msgid "%s%s: unable to connect: unexpected error (%d)"
msgstr "%s%s: 接続できません: 未定義のエラー (%d)"
#~ msgid "%s%s: error, buffer not found for pipe data"
#~ msgstr "%s%s: エラー、パイプデータで指定されたバッファが見つかりません"

View File

@ -21,8 +21,8 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2015-11-12 16:20+0100\n"
"PO-Revision-Date: 2015-11-04 18:12+0100\n"
"POT-Creation-Date: 2015-12-02 19:24+0100\n"
"PO-Revision-Date: 2015-12-02 19:26+0100\n"
"Last-Translator: Krzysztof Korościk <soltys@szluug.org>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
"Language: pl\n"
@ -5671,9 +5671,9 @@ msgstr "kolejka FIFO dla zdalnego sterowania"
msgid "%s: removing old fifo pipe \"%s\""
msgstr "%s: usuwam stary strumień fifo \"%s\""
#, c-format
msgid "%s: pipe opened"
msgstr "%s: otwarto strumień"
#, fuzzy, c-format
msgid "%s: pipe opened (file: %s)"
msgstr "Obsługa myszy włączona"
#, c-format
msgid "%s%s: unable to open pipe (%s) for reading"
@ -5704,6 +5704,45 @@ msgstr "%s%s: błąd odczytu z kolejki (%d %s), zamykam ją"
msgid "%s%s: error opening file, closing it"
msgstr "%s%s: błąd podczas otwarcia pliku, zamykam go"
#, fuzzy, c-format
msgid "%s: pipe is enabled (file: %s)"
msgstr "Obsługa myszy włączona"
#, fuzzy, c-format
msgid "%s: pipe is disabled"
msgstr "Obsługa myszy wyłączona"
#, fuzzy
msgid "fifo plugin configuration"
msgstr "konfiguracja wtyczki logera"
#, fuzzy
msgid "enable|disable|toggle"
msgstr "enable|disable|toggle [<opóźnienie>]"
msgid ""
" enable: enable FIFO pipe\n"
"disable: disable FIFO pipe\n"
" toggle: toggle FIFO pipe\n"
"\n"
"FIFO pipe is used as remote control of WeeChat: you can send commands or "
"text to the FIFO pipe from your shell.\n"
"By default the FIFO pipe is in ~/.weechat/weechat_fifo_xxx (\"xxx\" is the "
"WeeChat PID).\n"
"\n"
"The expected format is one of:\n"
" plugin.buffer *text or command here\n"
" *text or command here\n"
"\n"
"For example to change your freenode nick:\n"
" echo 'irc.server.freenode */nick newnick' >~/.weechat/weechat_fifo_12345\n"
"\n"
"Please read the user's guide for more info and examples.\n"
"\n"
"Examples:\n"
" /fifo toggle"
msgstr ""
msgid "name of FIFO pipe"
msgstr "nazwa strumienia FIFO"
@ -12181,6 +12220,3 @@ msgstr "%s%s: przekroczono czas na \"%s\" z %s"
#, c-format
msgid "%s%s: unable to connect: unexpected error (%d)"
msgstr "%s%s: nie można połączyć: niespodziewany błąd (%d)"
#~ msgid "%s%s: error, buffer not found for pipe data"
#~ msgstr "%s%s: błąd, nie znaleziono buforu dla danych ze strumienia"

View File

@ -21,7 +21,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2015-11-12 16:20+0100\n"
"POT-Creation-Date: 2015-12-02 19:24+0100\n"
"PO-Revision-Date: 2015-09-30 20:56+0200\n"
"Last-Translator: Eduardo Elias <camponez@gmail.com>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@ -5162,9 +5162,9 @@ msgstr ""
msgid "%s: removing old fifo pipe \"%s\""
msgstr ""
#, c-format
msgid "%s: pipe opened"
msgstr ""
#, fuzzy, c-format
msgid "%s: pipe opened (file: %s)"
msgstr "Mouse está habilitado"
#, c-format
msgid "%s%s: unable to open pipe (%s) for reading"
@ -5194,6 +5194,45 @@ msgstr "%s%s: erro ao enviar dados ao cliente: %s"
msgid "%s%s: error opening file, closing it"
msgstr ""
#, fuzzy, c-format
msgid "%s: pipe is enabled (file: %s)"
msgstr "Mouse está habilitado"
#, fuzzy, c-format
msgid "%s: pipe is disabled"
msgstr "Mouse está desabilitado"
#, fuzzy
msgid "fifo plugin configuration"
msgstr "configuração do plugin de registro"
#, fuzzy
msgid "enable|disable|toggle"
msgstr "enable|disable|toggle [<atraso>]"
msgid ""
" enable: enable FIFO pipe\n"
"disable: disable FIFO pipe\n"
" toggle: toggle FIFO pipe\n"
"\n"
"FIFO pipe is used as remote control of WeeChat: you can send commands or "
"text to the FIFO pipe from your shell.\n"
"By default the FIFO pipe is in ~/.weechat/weechat_fifo_xxx (\"xxx\" is the "
"WeeChat PID).\n"
"\n"
"The expected format is one of:\n"
" plugin.buffer *text or command here\n"
" *text or command here\n"
"\n"
"For example to change your freenode nick:\n"
" echo 'irc.server.freenode */nick newnick' >~/.weechat/weechat_fifo_12345\n"
"\n"
"Please read the user's guide for more info and examples.\n"
"\n"
"Examples:\n"
" /fifo toggle"
msgstr ""
msgid "name of FIFO pipe"
msgstr ""

View File

@ -21,8 +21,8 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2015-11-12 16:20+0100\n"
"PO-Revision-Date: 2015-09-09 09:13+0200\n"
"POT-Creation-Date: 2015-12-02 19:24+0100\n"
"PO-Revision-Date: 2015-12-02 19:26+0100\n"
"Last-Translator: Aleksey V Zapparov AKA ixti <ixti@member.fsf.org>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
"Language: ru\n"
@ -4606,8 +4606,8 @@ msgid "%s: removing old fifo pipe \"%s\""
msgstr "%s недостаточно памяти для сообщения в строке информации\n"
#, fuzzy, c-format
msgid "%s: pipe opened"
msgstr "FIFO pipe открыт\n"
msgid "%s: pipe opened (file: %s)"
msgstr "команда users отключена"
#, fuzzy, c-format
msgid "%s%s: unable to open pipe (%s) for reading"
@ -4637,6 +4637,44 @@ msgstr "%s ошибка чтения FIFO pipe, закрываю его\n"
msgid "%s%s: error opening file, closing it"
msgstr "%s ошибка чтения FIFO pipe, закрываю его\n"
#, fuzzy, c-format
msgid "%s: pipe is enabled (file: %s)"
msgstr "команда users отключена"
#, fuzzy, c-format
msgid "%s: pipe is disabled"
msgstr "Сокращения не заданы.\n"
#, fuzzy
msgid "fifo plugin configuration"
msgstr "Сохраняю конфигурацию\n"
msgid "enable|disable|toggle"
msgstr ""
msgid ""
" enable: enable FIFO pipe\n"
"disable: disable FIFO pipe\n"
" toggle: toggle FIFO pipe\n"
"\n"
"FIFO pipe is used as remote control of WeeChat: you can send commands or "
"text to the FIFO pipe from your shell.\n"
"By default the FIFO pipe is in ~/.weechat/weechat_fifo_xxx (\"xxx\" is the "
"WeeChat PID).\n"
"\n"
"The expected format is one of:\n"
" plugin.buffer *text or command here\n"
" *text or command here\n"
"\n"
"For example to change your freenode nick:\n"
" echo 'irc.server.freenode */nick newnick' >~/.weechat/weechat_fifo_12345\n"
"\n"
"Please read the user's guide for more info and examples.\n"
"\n"
"Examples:\n"
" /fifo toggle"
msgstr ""
msgid "name of FIFO pipe"
msgstr ""
@ -10553,7 +10591,3 @@ msgstr "%s нет аргумента для параметра \"%s\"\n"
#, fuzzy, c-format
msgid "%s%s: unable to connect: unexpected error (%d)"
msgstr "%s DCC: не могу соединиться с отправителем\n"
#, fuzzy
#~ msgid "%s%s: error, buffer not found for pipe data"
#~ msgstr "%s сервер \"%s\" не найден (данные FIFO pipe)\n"

View File

@ -133,6 +133,8 @@ SET(WEECHAT_SOURCES
./src/plugins/exec/exec.h
./src/plugins/fifo/fifo.c
./src/plugins/fifo/fifo.h
./src/plugins/fifo/fifo-command.c
./src/plugins/fifo/fifo-command.h
./src/plugins/fifo/fifo-info.c
./src/plugins/fifo/fifo-info.h
./src/plugins/guile/weechat-guile-api.c

View File

@ -20,7 +20,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2015-11-12 16:20+0100\n"
"POT-Creation-Date: 2015-12-02 19:24+0100\n"
"PO-Revision-Date: 2015-03-10 21:33+0100\n"
"Last-Translator: Hasan Kiran <sunder67@hotmail.com>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@ -4162,9 +4162,9 @@ msgstr ""
msgid "%s: removing old fifo pipe \"%s\""
msgstr ""
#, c-format
msgid "%s: pipe opened"
msgstr ""
#, fuzzy, c-format
msgid "%s: pipe opened (file: %s)"
msgstr "Filtre \"%s\" etkin"
#, c-format
msgid "%s%s: unable to open pipe (%s) for reading"
@ -4194,6 +4194,44 @@ msgstr ""
msgid "%s%s: error opening file, closing it"
msgstr ""
#, fuzzy, c-format
msgid "%s: pipe is enabled (file: %s)"
msgstr "Filtre \"%s\" etkin"
#, fuzzy, c-format
msgid "%s: pipe is disabled"
msgstr "Filtre \"%s\" devre dışı"
#, fuzzy
msgid "fifo plugin configuration"
msgstr "aspell eklenti yapılandırma"
msgid "enable|disable|toggle"
msgstr ""
msgid ""
" enable: enable FIFO pipe\n"
"disable: disable FIFO pipe\n"
" toggle: toggle FIFO pipe\n"
"\n"
"FIFO pipe is used as remote control of WeeChat: you can send commands or "
"text to the FIFO pipe from your shell.\n"
"By default the FIFO pipe is in ~/.weechat/weechat_fifo_xxx (\"xxx\" is the "
"WeeChat PID).\n"
"\n"
"The expected format is one of:\n"
" plugin.buffer *text or command here\n"
" *text or command here\n"
"\n"
"For example to change your freenode nick:\n"
" echo 'irc.server.freenode */nick newnick' >~/.weechat/weechat_fifo_12345\n"
"\n"
"Please read the user's guide for more info and examples.\n"
"\n"
"Examples:\n"
" /fifo toggle"
msgstr ""
msgid "name of FIFO pipe"
msgstr ""

View File

@ -21,7 +21,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2015-11-12 16:20+0100\n"
"POT-Creation-Date: 2015-12-02 19:24+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"
@ -4148,7 +4148,7 @@ msgid "%s: removing old fifo pipe \"%s\""
msgstr ""
#, c-format
msgid "%s: pipe opened"
msgid "%s: pipe opened (file: %s)"
msgstr ""
#, c-format
@ -4179,6 +4179,43 @@ msgstr ""
msgid "%s%s: error opening file, closing it"
msgstr ""
#, c-format
msgid "%s: pipe is enabled (file: %s)"
msgstr ""
#, c-format
msgid "%s: pipe is disabled"
msgstr ""
msgid "fifo plugin configuration"
msgstr ""
msgid "enable|disable|toggle"
msgstr ""
msgid ""
" enable: enable FIFO pipe\n"
"disable: disable FIFO pipe\n"
" toggle: toggle FIFO pipe\n"
"\n"
"FIFO pipe is used as remote control of WeeChat: you can send commands or "
"text to the FIFO pipe from your shell.\n"
"By default the FIFO pipe is in ~/.weechat/weechat_fifo_xxx (\"xxx\" is the "
"WeeChat PID).\n"
"\n"
"The expected format is one of:\n"
" plugin.buffer *text or command here\n"
" *text or command here\n"
"\n"
"For example to change your freenode nick:\n"
" echo 'irc.server.freenode */nick newnick' >~/.weechat/weechat_fifo_12345\n"
"\n"
"Please read the user's guide for more info and examples.\n"
"\n"
"Examples:\n"
" /fifo toggle"
msgstr ""
msgid "name of FIFO pipe"
msgstr ""

View File

@ -19,6 +19,7 @@
add_library(fifo MODULE
fifo.c fifo.h
fifo-command.c fifo-command.h
fifo-info.c fifo-info.h)
set_target_properties(fifo PROPERTIES PREFIX "")

View File

@ -25,6 +25,8 @@ lib_LTLIBRARIES = fifo.la
fifo_la_SOURCES = fifo.c \
fifo.h \
fifo-command.c \
fifo-command.h \
fifo-info.c \
fifo-info.h
fifo_la_LDFLAGS = -module -no-undefined

View File

@ -0,0 +1,117 @@
/*
* fifo-command.c - fifo command
*
* Copyright (C) 2003-2015 Sébastien Helleu <flashcode@flashtux.org>
*
* This file is part of WeeChat, the extensible chat client.
*
* WeeChat is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
*
* WeeChat is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with WeeChat. If not, see <http://www.gnu.org/licenses/>.
*/
#include <stdlib.h>
#include "../weechat-plugin.h"
#include "fifo.h"
/*
* Callback for command "/fifo": manages FIFO pipe.
*/
int
fifo_command_fifo (void *data, struct t_gui_buffer *buffer, int argc,
char **argv, char **argv_eol)
{
/* make C compiler happy */
(void) data;
(void) buffer;
(void) argv_eol;
if (argc == 1)
{
if (fifo_fd != -1)
{
weechat_printf (NULL,
_("%s: pipe is enabled (file: %s)"),
FIFO_PLUGIN_NAME,
fifo_filename);
}
else
{
weechat_printf (NULL,
_("%s: pipe is disabled"), FIFO_PLUGIN_NAME);
}
return WEECHAT_RC_OK;
}
/* enable pipe */
if (weechat_strcasecmp (argv[1], "enable") == 0)
{
weechat_config_set_plugin (FIFO_OPTION_NAME, "on");
return WEECHAT_RC_OK;
}
/* disable pipe */
if (weechat_strcasecmp (argv[1], "disable") == 0)
{
weechat_config_set_plugin (FIFO_OPTION_NAME, "off");
return WEECHAT_RC_OK;
}
/* toggle pipe */
if (weechat_strcasecmp (argv[1], "toggle") == 0)
{
weechat_config_set_plugin (FIFO_OPTION_NAME,
(fifo_fd == -1) ? "on" : "off");
return WEECHAT_RC_OK;
}
WEECHAT_COMMAND_ERROR;
}
/*
* Hooks fifo command.
*/
void
fifo_command_init ()
{
weechat_hook_command (
"fifo",
N_("fifo plugin configuration"),
N_("enable|disable|toggle"),
N_(" enable: enable FIFO pipe\n"
"disable: disable FIFO pipe\n"
" toggle: toggle FIFO pipe\n"
"\n"
"FIFO pipe is used as remote control of WeeChat: you can send "
"commands or text to the FIFO pipe from your shell.\n"
"By default the FIFO pipe is in ~/.weechat/weechat_fifo_xxx "
"(\"xxx\" is the WeeChat PID).\n"
"\n"
"The expected format is one of:\n"
" plugin.buffer *text or command here\n"
" *text or command here\n"
"\n"
"For example to change your freenode nick:\n"
" echo 'irc.server.freenode */nick newnick' "
">~/.weechat/weechat_fifo_12345\n"
"\n"
"Please read the user's guide for more info and examples.\n"
"\n"
"Examples:\n"
" /fifo toggle"),
"enable|disable|toggle",
&fifo_command_fifo, NULL);
}

View File

@ -0,0 +1,25 @@
/*
* Copyright (C) 2003-2015 Sébastien Helleu <flashcode@flashtux.org>
*
* This file is part of WeeChat, the extensible chat client.
*
* WeeChat is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
*
* WeeChat is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with WeeChat. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef WEECHAT_FIFO_COMMAND_H
#define WEECHAT_FIFO_COMMAND_H 1
extern void fifo_command_init ();
#endif /* WEECHAT_FIFO_COMMAND_H */

View File

@ -32,6 +32,7 @@
#include "../weechat-plugin.h"
#include "fifo.h"
#include "fifo-command.h"
#include "fifo-info.h"
@ -158,8 +159,9 @@ fifo_create ()
if ((weechat_fifo_plugin->debug >= 1) || !fifo_quiet)
{
weechat_printf (NULL,
_("%s: pipe opened"),
FIFO_PLUGIN_NAME);
_("%s: pipe opened (file: %s)"),
FIFO_PLUGIN_NAME,
fifo_filename);
}
fifo_fd_hook = weechat_hook_fd (fifo_fd, 1, 0, 0,
&fifo_read, NULL);
@ -424,6 +426,8 @@ fifo_config_cb (void *data, const char *option, const char *value)
int
weechat_plugin_init (struct t_weechat_plugin *plugin, int argc, char *argv[])
{
char *str_option[256];
/* make C compiler happy */
(void) argc;
(void) argv;
@ -434,8 +438,11 @@ weechat_plugin_init (struct t_weechat_plugin *plugin, int argc, char *argv[])
fifo_create ();
weechat_hook_config ("plugins.var.fifo.fifo", &fifo_config_cb, NULL);
snprintf (str_option, sizeof (str_option),
"plugins.var.fifo.%s", FIFO_OPTION_NAME);
weechat_hook_config (str_option, &fifo_config_cb, NULL);
fifo_command_init ();
fifo_info_init ();
fifo_quiet = 0;

View File

@ -22,8 +22,10 @@
#define weechat_plugin weechat_fifo_plugin
#define FIFO_PLUGIN_NAME "fifo"
#define FIFO_OPTION_NAME "fifo"
extern struct t_weechat_plugin *weechat_fifo_plugin;
extern int fifo_fd;
extern char *fifo_filename;
#endif /* WEECHAT_FIFO_H */