diff options
author | Sebastien Helleu <flashcode@flashtux.org> | 2010-02-02 15:39:04 +0100 |
---|---|---|
committer | Sebastien Helleu <flashcode@flashtux.org> | 2010-02-02 15:39:04 +0100 |
commit | 69b53c8f3db9e52f4bbc0bb2ce02c19568e9e695 (patch) | |
tree | 27d2e7fa71fcea2a068b804e150a1f6f471c8b45 | |
parent | fbc1c2a9b1a3045d0ee85f0b6041c18dc00ae9e3 (diff) | |
download | weechat-69b53c8f3db9e52f4bbc0bb2ce02c19568e9e695.zip |
Add IRC command /map
-rw-r--r-- | ChangeLog | 1 | ||||
-rw-r--r-- | doc/en/autogen/user/irc_commands.txt | 6 | ||||
-rw-r--r-- | doc/fr/autogen/user/irc_commands.txt | 6 | ||||
-rw-r--r-- | doc/it/autogen/user/irc_commands.txt | 6 | ||||
-rw-r--r-- | po/cs.po | 5 | ||||
-rw-r--r-- | po/de.po | 5 | ||||
-rw-r--r-- | po/es.po | 5 | ||||
-rw-r--r-- | po/fr.po | 7 | ||||
-rw-r--r-- | po/hu.po | 5 | ||||
-rw-r--r-- | po/it.po | 5 | ||||
-rw-r--r-- | po/pl.po | 5 | ||||
-rw-r--r-- | po/ru.po | 5 | ||||
-rw-r--r-- | po/weechat.pot | 5 | ||||
-rw-r--r-- | src/plugins/irc/irc-command.c | 28 |
14 files changed, 84 insertions, 10 deletions
@@ -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`:: ........................................ @@ -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 <golemj@gmail.com>\n" "Language-Team: weechat-dev <weechat-dev@nongnu.org>\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" @@ -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 <weechatter@arcor.de>\n" "Language-Team: weechat-dev <weechat-dev@nongnu.org>\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" @@ -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 <lambdae2@gmail.com>\n" "Language-Team: weechat-dev <weechat-dev@nongnu.org>\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" @@ -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 <flashcode@flashtux.org>\n" "Language-Team: weechat-dev <weechat-dev@nongnu.org>\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" @@ -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 <voroskoi@frugalware.org>\n" "Language-Team: weechat-dev <weechat-dev@nongnu.org>\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" @@ -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 <marcopaolone@gmail.com>\n" "Language-Team: weechat-dev <weechat-dev@nongnu.org>\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" @@ -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 <soltys@szluug.org>\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ł" @@ -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 <stlwrt@gmail.com>\n" "Language-Team: weechat-dev <weechat-dev@nongnu.org>\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 <EMAIL@ADDRESS>\n" "Language-Team: LANGUAGE <LL@li.org>\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 @@ -1977,6 +1977,29 @@ irc_command_lusers (void *data, struct t_gui_buffer *buffer, int argc, } /* + * 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"), |