summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--doc/de/autogen/infos.xml5
-rw-r--r--doc/en/autogen/infos.xml5
-rw-r--r--doc/fr/autogen/infos.xml5
-rw-r--r--po/cs.po5
-rw-r--r--po/de.po5
-rw-r--r--po/es.po5
-rw-r--r--po/fr.po9
-rw-r--r--po/hu.po5
-rw-r--r--po/pl.po5
-rw-r--r--po/ru.po5
-rw-r--r--po/weechat.pot5
-rw-r--r--src/plugins/irc/irc-info.c13
12 files changed, 63 insertions, 9 deletions
diff --git a/doc/de/autogen/infos.xml b/doc/de/autogen/infos.xml
index fb303729d..a24894f69 100644
--- a/doc/de/autogen/infos.xml
+++ b/doc/de/autogen/infos.xml
@@ -18,6 +18,11 @@
</row>
<row>
<entry>irc</entry>
+ <entry>irc_current_server</entry>
+ <entry>currently selected server (only if one buffer is used for all servers)</entry>
+</row>
+<row>
+ <entry>irc</entry>
<entry>irc_is_channel</entry>
<entry>1 if string is an IRC channel</entry>
</row>
diff --git a/doc/en/autogen/infos.xml b/doc/en/autogen/infos.xml
index fb303729d..a24894f69 100644
--- a/doc/en/autogen/infos.xml
+++ b/doc/en/autogen/infos.xml
@@ -18,6 +18,11 @@
</row>
<row>
<entry>irc</entry>
+ <entry>irc_current_server</entry>
+ <entry>currently selected server (only if one buffer is used for all servers)</entry>
+</row>
+<row>
+ <entry>irc</entry>
<entry>irc_is_channel</entry>
<entry>1 if string is an IRC channel</entry>
</row>
diff --git a/doc/fr/autogen/infos.xml b/doc/fr/autogen/infos.xml
index 436e16c5e..6d01431a8 100644
--- a/doc/fr/autogen/infos.xml
+++ b/doc/fr/autogen/infos.xml
@@ -18,6 +18,11 @@
</row>
<row>
<entry>irc</entry>
+ <entry>irc_current_server</entry>
+ <entry>serveur actuellement sélectionné (seulement si un tampon est utilisé pour tous les serveurs)</entry>
+</row>
+<row>
+ <entry>irc</entry>
<entry>irc_is_channel</entry>
<entry>1 si la chaîne est un canal IRC</entry>
</row>
diff --git a/po/cs.po b/po/cs.po
index c8effe147..922af27b6 100644
--- a/po/cs.po
+++ b/po/cs.po
@@ -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: 2009-05-02 22:43+0200\n"
+"POT-Creation-Date: 2009-05-03 09:40+0200\n"
"PO-Revision-Date: 2009-01-03 00:42+0100\n"
"Last-Translator: Jiri Golembiovsky <golemj@gmail.com>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -3864,6 +3864,9 @@ msgstr "zakázat přezdívky nebo hosty"
msgid "get buffer pointer for an IRC server/channel"
msgstr ""
+msgid "currently selected server (only if one buffer is used for all servers)"
+msgstr ""
+
#, fuzzy
msgid "list of IRC servers"
msgstr "heslo pro IRC server"
diff --git a/po/de.po b/po/de.po
index d8b940f18..f5a8fffd4 100644
--- a/po/de.po
+++ b/po/de.po
@@ -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: 2009-05-02 22:43+0200\n"
+"POT-Creation-Date: 2009-05-03 09:40+0200\n"
"PO-Revision-Date: 2009-01-03 00:42+0100\n"
"Last-Translator: Thomas Schuetz <i18n@internet-villa.de>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -3842,6 +3842,9 @@ msgstr "Nicknames oder Hosts sperren/verbannen"
msgid "get buffer pointer for an IRC server/channel"
msgstr ""
+msgid "currently selected server (only if one buffer is used for all servers)"
+msgstr ""
+
#, fuzzy
msgid "list of IRC servers"
msgstr "Port des IRC-Servers"
diff --git a/po/es.po b/po/es.po
index d3c051f95..7f89edf97 100644
--- a/po/es.po
+++ b/po/es.po
@@ -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: 2009-05-02 22:43+0200\n"
+"POT-Creation-Date: 2009-05-03 09:40+0200\n"
"PO-Revision-Date: 2009-01-03 00:42+0100\n"
"Last-Translator: Roberto González Cardenete <robert.glez@gmail.com>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -3829,6 +3829,9 @@ msgstr "banea usuarios o máquinas"
msgid "get buffer pointer for an IRC server/channel"
msgstr ""
+msgid "currently selected server (only if one buffer is used for all servers)"
+msgstr ""
+
#, fuzzy
msgid "list of IRC servers"
msgstr "puerto para el servidor IRC"
diff --git a/po/fr.po b/po/fr.po
index 3f1fb21e3..dee88f00f 100644
--- a/po/fr.po
+++ b/po/fr.po
@@ -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: 2009-05-02 22:43+0200\n"
-"PO-Revision-Date: 2009-05-02 22:44+0200\n"
+"POT-Creation-Date: 2009-05-03 09:40+0200\n"
+"PO-Revision-Date: 2009-05-03 09:41+0200\n"
"Last-Translator: FlashCode <flashcode@flashtux.org>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
"MIME-Version: 1.0\n"
@@ -3958,6 +3958,11 @@ msgstr "retourne le pseudo à partir d'un host IRC"
msgid "get buffer pointer for an IRC server/channel"
msgstr "retourne le pointeur vers le tampon pour un serveur/canal IRC"
+msgid "currently selected server (only if one buffer is used for all servers)"
+msgstr ""
+"serveur actuellement sélectionné (seulement si un tampon est utilisé pour "
+"tous les serveurs)"
+
msgid "list of IRC servers"
msgstr "liste des serveurs IRC"
diff --git a/po/hu.po b/po/hu.po
index b5f51878d..89e4dd9d3 100644
--- a/po/hu.po
+++ b/po/hu.po
@@ -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: 2009-05-02 22:43+0200\n"
+"POT-Creation-Date: 2009-05-03 09:40+0200\n"
"PO-Revision-Date: 2009-01-03 00:42+0100\n"
"Last-Translator: Andras Voroskoi <voroskoi@frugalware.org>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -3870,6 +3870,9 @@ msgstr "név vagy gép letiltása"
msgid "get buffer pointer for an IRC server/channel"
msgstr ""
+msgid "currently selected server (only if one buffer is used for all servers)"
+msgstr ""
+
#, fuzzy
msgid "list of IRC servers"
msgstr "IRC szerver portja"
diff --git a/po/pl.po b/po/pl.po
index 5dd3f7db8..85585122f 100644
--- a/po/pl.po
+++ b/po/pl.po
@@ -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: 2009-05-02 22:43+0200\n"
+"POT-Creation-Date: 2009-05-03 09:40+0200\n"
"PO-Revision-Date: 2009-04-29 08:07+0200\n"
"Last-Translator: <soltys@szluug.org>\n"
"Language-Team: Polish\n"
@@ -3320,6 +3320,9 @@ msgstr ""
msgid "get buffer pointer for an IRC server/channel"
msgstr ""
+msgid "currently selected server (only if one buffer is used for all servers)"
+msgstr ""
+
msgid "list of IRC servers"
msgstr ""
diff --git a/po/ru.po b/po/ru.po
index 3a82c99df..8745b384d 100644
--- a/po/ru.po
+++ b/po/ru.po
@@ -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: 2009-05-02 22:43+0200\n"
+"POT-Creation-Date: 2009-05-03 09:40+0200\n"
"PO-Revision-Date: 2009-01-03 00:42+0100\n"
"Last-Translator: Pavel Shevchuk <stlwrt@gmail.com>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -3863,6 +3863,9 @@ msgstr "банит ник или хост"
msgid "get buffer pointer for an IRC server/channel"
msgstr ""
+msgid "currently selected server (only if one buffer is used for all servers)"
+msgstr ""
+
#, fuzzy
msgid "list of IRC servers"
msgstr "порт IRC сервера"
diff --git a/po/weechat.pot b/po/weechat.pot
index ff8dae6c7..e32744003 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: 2009-05-02 22:43+0200\n"
+"POT-Creation-Date: 2009-05-03 09:40+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"
@@ -3286,6 +3286,9 @@ msgstr ""
msgid "get buffer pointer for an IRC server/channel"
msgstr ""
+msgid "currently selected server (only if one buffer is used for all servers)"
+msgstr ""
+
msgid "list of IRC servers"
msgstr ""
diff --git a/src/plugins/irc/irc-info.c b/src/plugins/irc/irc-info.c
index 8fa1a35c8..de55223c9 100644
--- a/src/plugins/irc/irc-info.c
+++ b/src/plugins/irc/irc-info.c
@@ -26,6 +26,7 @@
#include "../weechat-plugin.h"
#include "irc.h"
#include "irc-channel.h"
+#include "irc-config.h"
#include "irc-ignore.h"
#include "irc-nick.h"
#include "irc-protocol.h"
@@ -165,6 +166,14 @@ irc_info_get_info_cb (void *data, const char *info_name,
}
}
}
+ else if (weechat_strcasecmp (info_name, "irc_current_server") == 0)
+ {
+ if (weechat_config_boolean (irc_config_look_one_server_buffer)
+ && irc_current_server)
+ {
+ return irc_current_server->name;
+ }
+ }
return NULL;
}
@@ -382,6 +391,10 @@ irc_info_init ()
&irc_info_get_info_cb, NULL);
weechat_hook_info ("irc_buffer", N_("get buffer pointer for an IRC server/channel"),
&irc_info_get_info_cb, NULL);
+ weechat_hook_info ("irc_current_server",
+ N_("currently selected server (only if one buffer is "
+ "used for all servers)"),
+ &irc_info_get_info_cb, NULL);
/* infolist hooks */
weechat_hook_infolist ("irc_server", N_("list of IRC servers"),