diff --git a/ChangeLog b/ChangeLog index fc544dadd..e6f11a506 100644 --- a/ChangeLog +++ b/ChangeLog @@ -19,6 +19,7 @@ Version 0.3.2 (under dev!) * irc: add options irc.look.smart_filter_join and irc.look.smart_filter_quit * irc: add option irc.look.display_channel_modes_hide_key to hide channel key in channel modes (bug #23961) +* irc: add command /map * irc: fix compilation with old GnuTLS versions (bug #28723) * logger: allow date format in logger options path and mask (task #9430) * xfer: fix crash when purging old xfer chats (bug #28764) diff --git a/doc/en/autogen/user/irc_commands.txt b/doc/en/autogen/user/irc_commands.txt index d1ef1e99b..f9ec99157 100644 --- a/doc/en/autogen/user/irc_commands.txt +++ b/doc/en/autogen/user/irc_commands.txt @@ -265,6 +265,12 @@ target: server for forwarding request ........................................ +• *`/map`*:: + +........................................ + show a graphical map of the IRC network +........................................ + • *`/me`* `message`:: ........................................ diff --git a/doc/fr/autogen/user/irc_commands.txt b/doc/fr/autogen/user/irc_commands.txt index aeb161530..b565e3975 100644 --- a/doc/fr/autogen/user/irc_commands.txt +++ b/doc/fr/autogen/user/irc_commands.txt @@ -265,6 +265,12 @@ cible: serveur pour faire suivre la requête ........................................ +• *`/map`*:: + +........................................ + afficher une carte graphique du réseau IRC +........................................ + • *`/me`* `message`:: ........................................ diff --git a/doc/it/autogen/user/irc_commands.txt b/doc/it/autogen/user/irc_commands.txt index 7d6da4c59..2f6b8f53f 100644 --- a/doc/it/autogen/user/irc_commands.txt +++ b/doc/it/autogen/user/irc_commands.txt @@ -264,6 +264,12 @@ destinazione: server per redirigere la richiesta ........................................ +• *`/map`*:: + +........................................ + show a graphical map of the IRC network +........................................ + • *`/me`* `messaggio`:: ........................................ diff --git a/po/cs.po b/po/cs.po index 8349020cb..bd2d809fc 100644 --- a/po/cs.po +++ b/po/cs.po @@ -6,7 +6,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat 0.3.2-dev\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2010-02-02 14:58+0100\n" +"POT-Creation-Date: 2010-02-02 15:34+0100\n" "PO-Revision-Date: 2010-01-23 11:56+0100\n" "Last-Translator: Jiri Golembiovsky \n" "Language-Team: weechat-dev \n" @@ -3316,6 +3316,9 @@ msgstr "" "maska: pouze servery odpovídající této masce\n" " cíl: server pro dopravující požadavek" +msgid "show a graphical map of the IRC network" +msgstr "" + msgid "send a CTCP action to the current channel" msgstr "poslat CTCP akci na aktuální kanál" diff --git a/po/de.po b/po/de.po index dfea2ce85..52c43bd52 100644 --- a/po/de.po +++ b/po/de.po @@ -10,7 +10,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat 0.3.2-dev\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2010-02-02 14:58+0100\n" +"POT-Creation-Date: 2010-02-02 15:34+0100\n" "PO-Revision-Date: 2010-01-26 22:35+0100\n" "Last-Translator: Nils G \n" "Language-Team: weechat-dev \n" @@ -3476,6 +3476,9 @@ msgstr "" " Maske: Nur Server, die diesem Muster entsprechen\n" "Ziel: Server, der die Anfrage weiterleiten soll" +msgid "show a graphical map of the IRC network" +msgstr "" + msgid "send a CTCP action to the current channel" msgstr "Eine CTCP ACTION an den aktuellen Channel senden" diff --git a/po/es.po b/po/es.po index 9cbd3b87a..aea51f61f 100644 --- a/po/es.po +++ b/po/es.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat 0.3.2-dev\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2010-02-02 14:58+0100\n" +"POT-Creation-Date: 2010-02-02 15:34+0100\n" "PO-Revision-Date: 2010-01-23 11:56+0100\n" "Last-Translator: Elián Hanisch \n" "Language-Team: weechat-dev \n" @@ -3400,6 +3400,9 @@ msgstr "" " máscara: servidores que coinciden sólo con la máscara\n" "objetivo: servidor a remitir la consulta" +msgid "show a graphical map of the IRC network" +msgstr "" + msgid "send a CTCP action to the current channel" msgstr "envía una acción CTCP al canal actual" diff --git a/po/fr.po b/po/fr.po index 2b7b7ee56..aa6d4bfd1 100644 --- a/po/fr.po +++ b/po/fr.po @@ -6,8 +6,8 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat 0.3.2-dev\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2010-02-02 14:58+0100\n" -"PO-Revision-Date: 2010-02-02 15:00+0100\n" +"POT-Creation-Date: 2010-02-02 15:34+0100\n" +"PO-Revision-Date: 2010-02-02 15:35+0100\n" "Last-Translator: FlashCode \n" "Language-Team: weechat-dev \n" "MIME-Version: 1.0\n" @@ -3424,6 +3424,9 @@ msgstr "" "masque: serveurs qui correspondent au masque seulement\n" " cible: serveur pour faire suivre la requête" +msgid "show a graphical map of the IRC network" +msgstr "afficher une carte graphique du réseau IRC" + msgid "send a CTCP action to the current channel" msgstr "envoyer une action CTCP au canal courant" diff --git a/po/hu.po b/po/hu.po index 7cad53c7d..56f5fdc5d 100644 --- a/po/hu.po +++ b/po/hu.po @@ -12,7 +12,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat 0.3.2-dev\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2010-02-02 14:58+0100\n" +"POT-Creation-Date: 2010-02-02 15:34+0100\n" "PO-Revision-Date: 2010-01-23 11:57+0100\n" "Last-Translator: Andras Voroskoi \n" "Language-Team: weechat-dev \n" @@ -3228,6 +3228,9 @@ msgstr "" "maszk: csak azok a szerverek amik megfelelnek a maszknak\n" " cél: a kérés továbbítására szolgáló szerver" +msgid "show a graphical map of the IRC network" +msgstr "" + msgid "send a CTCP action to the current channel" msgstr "CTCP parancs küldése az aktuális szobába" diff --git a/po/it.po b/po/it.po index fb5024c59..102818708 100644 --- a/po/it.po +++ b/po/it.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: Weechat 0.3.2-dev\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2010-02-02 14:58+0100\n" +"POT-Creation-Date: 2010-02-02 15:34+0100\n" "PO-Revision-Date: 2010-01-23 11:57+0100\n" "Last-Translator: Marco Paolone \n" "Language-Team: weechat-dev \n" @@ -3401,6 +3401,9 @@ msgstr "" " mask: server corrispondenti alla mask\n" "destinazione: server per redirigere la richiesta" +msgid "show a graphical map of the IRC network" +msgstr "" + msgid "send a CTCP action to the current channel" msgstr "invia un'azione CTCP al canale corrente" diff --git a/po/pl.po b/po/pl.po index 61ae5f767..3f303a3c2 100644 --- a/po/pl.po +++ b/po/pl.po @@ -9,7 +9,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat 0.3.2-dev\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2010-02-02 14:58+0100\n" +"POT-Creation-Date: 2010-02-02 15:34+0100\n" "PO-Revision-Date: 2010-01-23 11:57+0100\n" "Last-Translator: Krzysztof Koroscik \n" "Language-Team: Polish\n" @@ -3390,6 +3390,9 @@ msgstr "" " maska: tylko serwery pasujące do maski\n" "cel: serwer, do któego ma być przesłane rządanie" +msgid "show a graphical map of the IRC network" +msgstr "" + msgid "send a CTCP action to the current channel" msgstr "wysyła akcję CTCP na aktualny kanał" diff --git a/po/ru.po b/po/ru.po index 53364d237..ad0998a45 100644 --- a/po/ru.po +++ b/po/ru.po @@ -6,7 +6,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat 0.3.2-dev\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2010-02-02 14:58+0100\n" +"POT-Creation-Date: 2010-02-02 15:34+0100\n" "PO-Revision-Date: 2010-01-23 11:57+0100\n" "Last-Translator: Pavel Shevchuk \n" "Language-Team: weechat-dev \n" @@ -3237,6 +3237,9 @@ msgstr "" "маска: показывать только серверы, подходящие по маске\n" " цель: сервер для перенаправления запроса" +msgid "show a graphical map of the IRC network" +msgstr "" + msgid "send a CTCP action to the current channel" msgstr "отправить CTCP-действие на текущий канал" diff --git a/po/weechat.pot b/po/weechat.pot index adc462eb6..eaed9e8ae 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: 2010-02-02 14:58+0100\n" +"POT-Creation-Date: 2010-02-02 15:34+0100\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -2805,6 +2805,9 @@ msgid "" "target: server for forwarding request" msgstr "" +msgid "show a graphical map of the IRC network" +msgstr "" + msgid "send a CTCP action to the current channel" msgstr "" diff --git a/src/plugins/irc/irc-command.c b/src/plugins/irc/irc-command.c index 74e9df915..10e81d173 100644 --- a/src/plugins/irc/irc-command.c +++ b/src/plugins/irc/irc-command.c @@ -1976,6 +1976,29 @@ irc_command_lusers (void *data, struct t_gui_buffer *buffer, int argc, return WEECHAT_RC_OK; } +/* + * irc_command_map: show a graphical map of the IRC network + */ + +int +irc_command_map (void *data, struct t_gui_buffer *buffer, int argc, + char **argv, char **argv_eol) +{ + IRC_GET_SERVER(buffer); + IRC_COMMAND_CHECK_SERVER("map", 1); + + /* make C compiler happy */ + (void) data; + (void) argv; + + if (argc > 1) + irc_server_sendf (ptr_server, 0, "MAP %s", argv_eol[1]); + else + irc_server_sendf (ptr_server, 0, "MAP"); + + return WEECHAT_RC_OK; +} + /* * irc_command_me: send a ctcp action to the current channel */ @@ -4166,6 +4189,11 @@ irc_command_init () N_(" mask: servers matching the mask only\n" "target: server for forwarding request"), NULL, &irc_command_lusers, NULL); + weechat_hook_command ("map", + N_("show a graphical map of the IRC network"), + "", + "", + NULL, &irc_command_map, NULL); weechat_hook_command ("me", N_("send a CTCP action to the current channel"), N_("message"),