diff options
author | Sebastien Helleu <flashcode@flashtux.org> | 2008-05-11 12:38:30 +0200 |
---|---|---|
committer | Sebastien Helleu <flashcode@flashtux.org> | 2008-05-11 12:38:30 +0200 |
commit | baeea17773f4c4123d006969eeaf71ae61a7acff (patch) | |
tree | c1e06dc2fc21c1b35c6e7c02c44e9ae60995deca | |
parent | 53ad9cddc1852bf7ebfed44a79f08a47a89015b9 (diff) | |
download | weechat-baeea17773f4c4123d006969eeaf71ae61a7acff.zip |
Add "list" and "listfull" options to /xfer command
-rw-r--r-- | po/cs.po | 43 | ||||
-rw-r--r-- | po/de.po | 43 | ||||
-rw-r--r-- | po/es.po | 63 | ||||
-rw-r--r-- | po/fr.po | 52 | ||||
-rw-r--r-- | po/hu.po | 43 | ||||
-rw-r--r-- | po/ru.po | 43 | ||||
-rw-r--r-- | po/weechat.pot | 33 | ||||
-rw-r--r-- | src/plugins/xfer/xfer-command.c | 127 |
8 files changed, 407 insertions, 40 deletions
@@ -6,7 +6,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat 0.2.7-dev\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2008-05-07 15:25+0200\n" +"POT-Creation-Date: 2008-05-11 12:09+0200\n" "PO-Revision-Date: 2007-09-06 12:44+0200\n" "Last-Translator: Jiri Golembiovsky <golemj@gmail.com>\n" "Language-Team: weechat-dev <weechat-dev@nongnu.org>\n" @@ -4387,6 +4387,40 @@ msgstr "%s chyba posílání dat k \"%s\" přes DCC CHAT\n" msgid "Connected to %s (%d.%d.%d.%d) via xfer chat" msgstr "Připojeno na %s%s %s(%s%d.%d.%d.%d.%s)%s přes DCC rozhovor\n" +#, fuzzy +msgid "Xfer list:" +msgstr "vyčisti hotlist" + +#, c-format +msgid "" +"%3d. %s (%s), file: \"%s\" (local: \"%s\"), %s %s, status: %s%s%s (%lu %%)" +msgstr "" + +#, c-format +msgid "%3d. %s, chat with %s (local nick: %s), started on %s, status: %s%s" +msgstr "" + +#, c-format +msgid "" +" plugin: %s (id: %s), file: %lu bytes (position: %lu), address: %d.%d.%d." +"%d (port %d)" +msgstr "" + +#, c-format +msgid " fast_send: %s, blocksize: %d, started on %s" +msgstr "" + +#, fuzzy +msgid "yes" +msgstr "bajtů" + +msgid "no" +msgstr "" + +#, fuzzy +msgid "No xfer" +msgstr "žádný server.\n" + msgid "xfer control" msgstr "" @@ -4543,6 +4577,10 @@ msgid "%s%s: timeout for \"%s\" with %s" msgstr "%s chybí argument pro volbu \"%s\"\n" #, fuzzy +#~ msgid "to" +#~ msgstr "nahoře" + +#, fuzzy #~ msgid "%sOption \"%s\" not found" #~ msgstr "%s plugin \"%s\" nenalezen\n" @@ -6072,9 +6110,6 @@ msgstr "%s chybí argument pro volbu \"%s\"\n" #~ msgid "local" #~ msgstr "lokální" -#~ msgid "top" -#~ msgstr "nahoře" - #~ msgid "bottom" #~ msgstr "dole" @@ -9,7 +9,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat 0.2.7-dev\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2008-05-07 15:25+0200\n" +"POT-Creation-Date: 2008-05-11 12:09+0200\n" "PO-Revision-Date: 2007-09-06 12:44+0200\n" "Last-Translator: Thomas Schuetz <i18n@internet-villa.de>\n" "Language-Team: weechat-dev <weechat-dev@nongnu.org>\n" @@ -4372,6 +4372,40 @@ msgstr "%s Fehler beim Senden von Daten an \"%s\" via DCC CHAT\n" msgid "Connected to %s (%d.%d.%d.%d) via xfer chat" msgstr "DCC Chat mit %s%s %s(%s%d.%d.%d.%d%s)%s aufgebaut\n" +#, fuzzy +msgid "Xfer list:" +msgstr "Hotlist leeren" + +#, c-format +msgid "" +"%3d. %s (%s), file: \"%s\" (local: \"%s\"), %s %s, status: %s%s%s (%lu %%)" +msgstr "" + +#, c-format +msgid "%3d. %s, chat with %s (local nick: %s), started on %s, status: %s%s" +msgstr "" + +#, c-format +msgid "" +" plugin: %s (id: %s), file: %lu bytes (position: %lu), address: %d.%d.%d." +"%d (port %d)" +msgstr "" + +#, c-format +msgid " fast_send: %s, blocksize: %d, started on %s" +msgstr "" + +#, fuzzy +msgid "yes" +msgstr "Bytes" + +msgid "no" +msgstr "" + +#, fuzzy +msgid "No xfer" +msgstr "Kein Server.\n" + msgid "xfer control" msgstr "" @@ -4532,6 +4566,10 @@ msgid "%s%s: timeout for \"%s\" with %s" msgstr "%s fehlende Argumente für die \"--dir\"-Option\n" #, fuzzy +#~ msgid "to" +#~ msgstr "top" + +#, fuzzy #~ msgid "%sOption \"%s\" not found" #~ msgstr "%s Plugin \"%s\" nicht gefunden\n" @@ -6077,9 +6115,6 @@ msgstr "%s fehlende Argumente für die \"--dir\"-Option\n" #~ msgid "local" #~ msgstr "local" -#~ msgid "top" -#~ msgstr "top" - #~ msgid "bottom" #~ msgstr "bottom" @@ -6,7 +6,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat 0.2.7-dev\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2008-05-07 15:25+0200\n" +"POT-Creation-Date: 2008-05-11 12:09+0200\n" "PO-Revision-Date: 2007-09-19 12:09+0200\n" "Last-Translator: Roberto González Cardenete <robert.glez@gmail.com>\n" "Language-Team: weechat-dev <weechat-dev@nongnu.org>\n" @@ -1104,8 +1104,8 @@ msgstr "marca de tiempo para la fecha mostrada cuando el dÃa cambió" #, fuzzy msgid "use a marker (line or char) on buffers to show first unread line" msgstr "" -"usar un marcador en los servidores/canales para mostrar la primera lÃnea " -"sin leer" +"usar un marcador en los servidores/canales para mostrar la primera lÃnea sin " +"leer" #, c-format msgid "" @@ -1597,8 +1597,8 @@ msgid "" "support.\n" "Be careful, private info may be in these files.\n" msgstr "" -"Por favor, envÃa %s/%s, %s/%s y los mensajes de arriba a los " -"desarrolladores de Weechat para el soporte.\n" +"Por favor, envÃa %s/%s, %s/%s y los mensajes de arriba a los desarrolladores " +"de Weechat para el soporte.\n" "Sé cuidadoso, puede que haya información privada en estos ficheros.\n" #, c-format @@ -4378,6 +4378,40 @@ msgstr "%s error enviando datos al \"%s\" con DCC CHAT\n" msgid "Connected to %s (%d.%d.%d.%d) via xfer chat" msgstr "Conectado a %s%s %s(%s%d.%d.%d.%d%s)%s a través de una charla DCC\n" +#, fuzzy +msgid "Xfer list:" +msgstr "limpiar hotlist" + +#, c-format +msgid "" +"%3d. %s (%s), file: \"%s\" (local: \"%s\"), %s %s, status: %s%s%s (%lu %%)" +msgstr "" + +#, c-format +msgid "%3d. %s, chat with %s (local nick: %s), started on %s, status: %s%s" +msgstr "" + +#, c-format +msgid "" +" plugin: %s (id: %s), file: %lu bytes (position: %lu), address: %d.%d.%d." +"%d (port %d)" +msgstr "" + +#, c-format +msgid " fast_send: %s, blocksize: %d, started on %s" +msgstr "" + +#, fuzzy +msgid "yes" +msgstr "bytes" + +msgid "no" +msgstr "" + +#, fuzzy +msgid "No xfer" +msgstr "Ningún servidor.\n" + msgid "xfer control" msgstr "" @@ -4541,6 +4575,10 @@ msgid "%s%s: timeout for \"%s\" with %s" msgstr "%s falta un argumento para la opción --dir\n" #, fuzzy +#~ msgid "to" +#~ msgstr "operador" + +#, fuzzy #~ msgid "%sOption \"%s\" not found" #~ msgstr "%s plugin \"%s\" no encontrado\n" @@ -5305,8 +5343,8 @@ msgstr "%s falta un argumento para la opción --dir\n" #~ "maximum number of lines in history for one server/channel/private window " #~ "(0 = unlimited)" #~ msgstr "" -#~ "número máximo de lÃneas en el histórico para un servidor/canal/" -#~ "privado (0 = ilimitado)" +#~ "número máximo de lÃneas en el histórico para un servidor/canal/privado " +#~ "(0 = ilimitado)" #, fuzzy #~ msgid "log messages from plugins" @@ -5500,8 +5538,8 @@ msgstr "%s falta un argumento para la opción --dir\n" #~ "max size for aligning nick and other messages (should be >= to " #~ "look_align_size)" #~ msgstr "" -#~ "tamaño máximo para la alineación de nick y otros mensajes (deberÃa " -#~ "ser >= a look_align_size)" +#~ "tamaño máximo para la alineación de nick y otros mensajes (deberÃa ser " +#~ ">= a look_align_size)" #~ msgid "server name not found" #~ msgstr "nombre de servidor no encontrado" @@ -6095,10 +6133,6 @@ msgstr "%s falta un argumento para la opción --dir\n" #~ msgstr "Nuevo ignore:" #, fuzzy -#~ msgid "top" -#~ msgstr "operador" - -#, fuzzy #~ msgid "Open panels:\n" #~ msgstr "Búfers abiertos:\n" @@ -6295,8 +6329,7 @@ msgstr "%s falta un argumento para la opción --dir\n" #~ msgid "color for chan owner symbol (specific to unrealircd)" #~ msgstr "" -#~ "color para el sÃmbolo de propietario de canal (especificado en " -#~ "unrealircd)" +#~ "color para el sÃmbolo de propietario de canal (especificado en unrealircd)" #~ msgid "color for chan admin symbol" #~ msgstr "color para el sÃmbolo de administrador de canal" @@ -6,8 +6,8 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat 0.2.7-dev\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2008-05-07 15:25+0200\n" -"PO-Revision-Date: 2008-05-07 15:26+0200\n" +"POT-Creation-Date: 2008-05-11 12:09+0200\n" +"PO-Revision-Date: 2008-05-11 12:08+0200\n" "Last-Translator: FlashCode <flashcode@flashtux.org>\n" "Language-Team: weechat-dev <weechat-dev@nongnu.org>\n" "MIME-Version: 1.0\n" @@ -864,9 +864,12 @@ msgid "" "According to option, it's reset (for standard options) or removed (for " "optional settings, like server values)." msgstr "" -"option: nom d'une option (peut commencer ou se terminer par \"*\" pour réinitialiser plusieurs options, à utiliser avec prudence !)\n" +"option: nom d'une option (peut commencer ou se terminer par \"*\" pour " +"réinitialiser plusieurs options, à utiliser avec prudence !)\n" "\n" -"Selon l'option, elle est réinitialisée (pour les options standards) ou supprimée (pour les options facultatives, comme les valeurs pour les serveurs)." +"Selon l'option, elle est réinitialisée (pour les options standards) ou " +"supprimée (pour les options facultatives, comme les valeurs pour les " +"serveurs)." msgid "upgrade WeeChat without disconnecting from servers" msgstr "mettre à jour WeeChat sans se déconnecter des serveurs" @@ -4319,6 +4322,41 @@ msgstr "%s%s: erreur d'envoi de données à \"%s\" via discussion xfer" msgid "Connected to %s (%d.%d.%d.%d) via xfer chat" msgstr "Connecté à %s (%d.%d.%d.%d) via discussion xfer" +msgid "Xfer list:" +msgstr "Liste Xfer:" + +#, c-format +msgid "" +"%3d. %s (%s), file: \"%s\" (local: \"%s\"), %s %s, status: %s%s%s (%lu %%)" +msgstr "" +"%3d. %s (%s), fichier: \"%s\" (local: \"%s\"), %s %s, statut: %s%s%s (%lu %%)" + +#, c-format +msgid "%3d. %s, chat with %s (local nick: %s), started on %s, status: %s%s" +msgstr "" +"%3d. %s, discussion avec %s (pseudo local: %s), démarrée le %s, statut: %s%s" + +#, c-format +msgid "" +" plugin: %s (id: %s), file: %lu bytes (position: %lu), address: %d.%d.%d." +"%d (port %d)" +msgstr "" +" extension: %s (id: %s), fichier: %lu octets (position: %lu), addresse: %" +"d.%d.%d.%d (port %d)" + +#, c-format +msgid " fast_send: %s, blocksize: %d, started on %s" +msgstr " envoi rapide: %s, taille de bloc: %d, démarré le %s" + +msgid "yes" +msgstr "oui" + +msgid "no" +msgstr "non" + +msgid "No xfer" +msgstr "Pas de xfer" + msgid "xfer control" msgstr "contrôle xfer" @@ -4468,6 +4506,12 @@ msgstr "%s%s: impossible de positionner l'option \"nonblock\" pour la socket" msgid "%s%s: timeout for \"%s\" with %s" msgstr "%s%s: délai d'attente dépassé pour \"%s\" avec %s" +#~ msgid "to" +#~ msgstr "vers" + +#~ msgid "from" +#~ msgstr "de" + #~ msgid "%sOption \"%s\" not found" #~ msgstr "%sOption \"%s\" non trouvée" @@ -12,7 +12,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat 0.2.7-dev\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2008-05-07 15:25+0200\n" +"POT-Creation-Date: 2008-05-11 12:09+0200\n" "PO-Revision-Date: 2007-10-10 18:07+0200\n" "Last-Translator: Andras Voroskoi <voroskoi@frugalware.org>\n" "Language-Team: weechat-dev <weechat-dev@nongnu.org>\n" @@ -4392,6 +4392,40 @@ msgstr "" "Csatlakozás a %s%s %s(%s%d.%d.%d.%d%s)%s partnerhez DCC beszélgetésen " "keresztül\n" +#, fuzzy +msgid "Xfer list:" +msgstr "hotlist törlése" + +#, c-format +msgid "" +"%3d. %s (%s), file: \"%s\" (local: \"%s\"), %s %s, status: %s%s%s (%lu %%)" +msgstr "" + +#, c-format +msgid "%3d. %s, chat with %s (local nick: %s), started on %s, status: %s%s" +msgstr "" + +#, c-format +msgid "" +" plugin: %s (id: %s), file: %lu bytes (position: %lu), address: %d.%d.%d." +"%d (port %d)" +msgstr "" + +#, c-format +msgid " fast_send: %s, blocksize: %d, started on %s" +msgstr "" + +#, fuzzy +msgid "yes" +msgstr "byte" + +msgid "no" +msgstr "" + +#, fuzzy +msgid "No xfer" +msgstr "Nincs szerver.\n" + msgid "xfer control" msgstr "" @@ -4547,6 +4581,10 @@ msgid "%s%s: timeout for \"%s\" with %s" msgstr "%s hiányzó argumentum a(z) \"%s\" opciónak\n" #, fuzzy +#~ msgid "to" +#~ msgstr "legfelső" + +#, fuzzy #~ msgid "%sOption \"%s\" not found" #~ msgstr "%s a \"%s\" modul nem található\n" @@ -6072,9 +6110,6 @@ msgstr "%s hiányzó argumentum a(z) \"%s\" opciónak\n" #~ msgid "local" #~ msgstr "helyi" -#~ msgid "top" -#~ msgstr "legfelső" - #~ msgid "bottom" #~ msgstr "legalsó" @@ -6,7 +6,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat 0.2.7-dev\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2008-05-07 15:25+0200\n" +"POT-Creation-Date: 2008-05-11 12:09+0200\n" "PO-Revision-Date: 2007-09-06 12:44+0200\n" "Last-Translator: Pavel Shevchuk <stlwrt@gmail.com>\n" "Language-Team: weechat-dev <weechat-dev@nongnu.org>\n" @@ -4375,6 +4375,40 @@ msgstr "%s ошибка при отправке данных \"%s\" через D msgid "Connected to %s (%d.%d.%d.%d) via xfer chat" msgstr "Соединён с %s%s %s(%s%d.%d.%d.%d%s)%s DCC-чатом\n" +#, fuzzy +msgid "Xfer list:" +msgstr "очистить хотлист" + +#, c-format +msgid "" +"%3d. %s (%s), file: \"%s\" (local: \"%s\"), %s %s, status: %s%s%s (%lu %%)" +msgstr "" + +#, c-format +msgid "%3d. %s, chat with %s (local nick: %s), started on %s, status: %s%s" +msgstr "" + +#, c-format +msgid "" +" plugin: %s (id: %s), file: %lu bytes (position: %lu), address: %d.%d.%d." +"%d (port %d)" +msgstr "" + +#, c-format +msgid " fast_send: %s, blocksize: %d, started on %s" +msgstr "" + +#, fuzzy +msgid "yes" +msgstr "байтов" + +msgid "no" +msgstr "" + +#, fuzzy +msgid "No xfer" +msgstr "Нет сервера.\n" + msgid "xfer control" msgstr "" @@ -4532,6 +4566,10 @@ msgid "%s%s: timeout for \"%s\" with %s" msgstr "%s нет аргумента для параметра \"%s\"\n" #, fuzzy +#~ msgid "to" +#~ msgstr "сверху" + +#, fuzzy #~ msgid "%sOption \"%s\" not found" #~ msgstr "%s plugin \"%s\" не найден\n" @@ -6075,9 +6113,6 @@ msgstr "%s нет аргумента для параметра \"%s\"\n" #~ msgid "local" #~ msgstr "локальная" -#~ msgid "top" -#~ msgstr "сверху" - #~ msgid "bottom" #~ msgstr "внизу" diff --git a/po/weechat.pot b/po/weechat.pot index 1428f468a..c8782ce4a 100644 --- a/po/weechat.pot +++ b/po/weechat.pot @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2008-05-07 15:25+0200\n" +"POT-Creation-Date: 2008-05-11 12:09+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" "Language-Team: LANGUAGE <LL@li.org>\n" @@ -3805,6 +3805,37 @@ msgstr "" msgid "Connected to %s (%d.%d.%d.%d) via xfer chat" msgstr "" +msgid "Xfer list:" +msgstr "" + +#, c-format +msgid "" +"%3d. %s (%s), file: \"%s\" (local: \"%s\"), %s %s, status: %s%s%s (%lu %%)" +msgstr "" + +#, c-format +msgid "%3d. %s, chat with %s (local nick: %s), started on %s, status: %s%s" +msgstr "" + +#, c-format +msgid "" +" plugin: %s (id: %s), file: %lu bytes (position: %lu), address: %d.%d.%d." +"%d (port %d)" +msgstr "" + +#, c-format +msgid " fast_send: %s, blocksize: %d, started on %s" +msgstr "" + +msgid "yes" +msgstr "" + +msgid "no" +msgstr "" + +msgid "No xfer" +msgstr "" + msgid "xfer control" msgstr "" diff --git a/src/plugins/xfer/xfer-command.c b/src/plugins/xfer/xfer-command.c index 771b144b1..f7a211699 100644 --- a/src/plugins/xfer/xfer-command.c +++ b/src/plugins/xfer/xfer-command.c @@ -21,13 +21,122 @@ #include <stdlib.h> #include <string.h> +#include <time.h> #include "../weechat-plugin.h" #include "xfer.h" #include "xfer-buffer.h" +#include "xfer-config.h" /* + * xfer_command_xfer_list: list xfer + */ + +void +xfer_command_xfer_list (int full) +{ + struct t_xfer *ptr_xfer; + int i; + char date[128]; + unsigned long pct_complete; + struct tm *date_tmp; + + if (xfer_list) + { + weechat_printf (NULL, ""); + weechat_printf (NULL, _("Xfer list:")); + i = 1; + for (ptr_xfer = xfer_list; ptr_xfer; ptr_xfer = ptr_xfer->next_xfer) + { + /* xfer info */ + if (XFER_IS_FILE(ptr_xfer->type)) + { + if (ptr_xfer->size == 0) + { + if (ptr_xfer->status == XFER_STATUS_DONE) + pct_complete = 100; + else + pct_complete = 0; + } + else + pct_complete = (unsigned long)(((float)(ptr_xfer->pos)/(float)(ptr_xfer->size)) * 100); + + weechat_printf (NULL, + _("%3d. %s (%s), file: \"%s\" (local: " + "\"%s\"), %s %s, status: %s%s%s " + "(%lu %%)"), + i, + xfer_type_string[ptr_xfer->type], + xfer_protocol_string[ptr_xfer->protocol], + ptr_xfer->filename, + ptr_xfer->local_filename, + (XFER_IS_SEND(ptr_xfer->type)) ? + _("sent to") : _("received from"), + ptr_xfer->remote_nick, + weechat_color ( + weechat_config_string ( + xfer_config_color_status[ptr_xfer->status])), + _(xfer_status_string[ptr_xfer->status]), + weechat_color ("chat"), + pct_complete); + } + else + { + date_tmp = localtime (&(ptr_xfer->start_time)); + strftime (date, sizeof (date), + "%a, %d %b %Y %H:%M:%S", date_tmp); + weechat_printf (NULL, + _("%3d. %s, chat with %s (local nick: %s), " + "started on %s, status: %s%s"), + i, + xfer_type_string[ptr_xfer->type], + ptr_xfer->remote_nick, + ptr_xfer->local_nick, + date, + weechat_color( + weechat_config_string( + xfer_config_color_status[ptr_xfer->status])), + _(xfer_status_string[ptr_xfer->status])); + } + + if (full) + { + /* second line of xfer info */ + if (XFER_IS_FILE(ptr_xfer->type)) + { + weechat_printf (NULL, + _(" plugin: %s (id: %s), file: %lu " + "bytes (position: %lu), address: " + "%d.%d.%d.%d (port %d)"), + ptr_xfer->plugin_name, + ptr_xfer->plugin_id, + ptr_xfer->size, + ptr_xfer->pos, + ptr_xfer->address >> 24, + (ptr_xfer->address >> 16) & 0xff, + (ptr_xfer->address >> 8) & 0xff, + ptr_xfer->address & 0xff, + ptr_xfer->port); + date_tmp = localtime (&(ptr_xfer->start_transfer)); + strftime (date, sizeof (date), + "%a, %d %b %Y %H:%M:%S", date_tmp); + weechat_printf (NULL, + _(" fast_send: %s, blocksize: %d, " + "started on %s"), + (ptr_xfer->fast_send) ? _("yes") : _("no"), + ptr_xfer->blocksize, + date); + } + } + i++; + } + } + else + weechat_printf (NULL, _("No xfer")); +} + +/* * xfer_command_xfer: command /xfer */ @@ -38,9 +147,19 @@ xfer_command_xfer (void *data, struct t_gui_buffer *buffer, int argc, /* make C compiler happy */ (void) data; (void) buffer; - (void) argc; - (void) argv; (void) argv_eol; + + if ((argc > 1) && (weechat_strcasecmp (argv[1], "list") == 0)) + { + xfer_command_xfer_list (0); + return WEECHAT_RC_OK; + } + + if ((argc > 1) && (weechat_strcasecmp (argv[1], "listfull") == 0)) + { + xfer_command_xfer_list (1); + return WEECHAT_RC_OK; + } if (!xfer_buffer) xfer_buffer_open (); @@ -63,7 +182,7 @@ xfer_command_xfer (void *data, struct t_gui_buffer *buffer, int argc, } } } - + xfer_buffer_refresh (NULL); return WEECHAT_RC_OK; @@ -80,5 +199,5 @@ xfer_command_init () N_("xfer control"), "", _("Open buffer with xfer list"), - NULL, &xfer_command_xfer, NULL); + "list|listfull", &xfer_command_xfer, NULL); } |