summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2006-04-04 17:47:31 +0000
committerSebastien Helleu <flashcode@flashtux.org>2006-04-04 17:47:31 +0000
commit99d86d64ab1ff01a689f4082f85b4d174166a41e (patch)
treef929b33c5c456d2e5653aedaba8b63cfe716d287
parent94face39a68c45aa3ed8bbd4b75a722711458716 (diff)
downloadweechat-99d86d64ab1ff01a689f4082f85b4d174166a41e.zip
Added "+p" mode for channels, fixed mode display in status bar
-rw-r--r--ChangeLog3
-rw-r--r--po/es.po22
-rw-r--r--po/fr.po22
-rw-r--r--po/hu.po22
-rw-r--r--po/weechat.pot22
-rw-r--r--src/irc/irc-channel.c2
-rw-r--r--src/irc/irc-recv.c2
-rw-r--r--src/irc/irc.h3
-rw-r--r--weechat/ChangeLog3
-rw-r--r--weechat/po/es.po22
-rw-r--r--weechat/po/fr.po22
-rw-r--r--weechat/po/hu.po22
-rw-r--r--weechat/po/weechat.pot22
-rw-r--r--weechat/src/irc/irc-channel.c2
-rw-r--r--weechat/src/irc/irc-recv.c2
-rw-r--r--weechat/src/irc/irc.h3
16 files changed, 100 insertions, 96 deletions
diff --git a/ChangeLog b/ChangeLog
index b8cbadb8d..97a192ded 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,10 +1,11 @@
WeeChat - Wee Enhanced Environment for Chat
===========================================
-ChangeLog - 2006-04-02
+ChangeLog - 2006-04-04
Version 0.1.9 (under dev!):
+ * added "+p" mode for channels, fixed mode display in status bar
* added nick alignment options
* fixed /names command: now displays result when not on a channel
* fixed refresh bug (too many refresh) when terminal is resized
diff --git a/po/es.po b/po/es.po
index bf00e61b1..6aebdf774 100644
--- a/po/es.po
+++ b/po/es.po
@@ -6,7 +6,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat 0.1.9-cvs\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
-"POT-Creation-Date: 2006-04-03 17:58+0200\n"
+"POT-Creation-Date: 2006-04-04 09:29+0200\n"
"PO-Revision-Date: 2006-03-18 11:45+0100\n"
"Last-Translator: Roberto González Cardenete <robert.glez@gmail.com>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -1385,38 +1385,38 @@ msgstr "no es posible cambiar el modo para el resto de usuarios"
msgid "whois (secure connection)"
msgstr "quién es (conexión segura)"
-#: src/irc/irc-display.c:347
+#: src/irc/irc-display.c:354
#, c-format
msgid "%sServer: %s%s %s[%s%s%s]\n"
msgstr "%sServidor:%s%s %s[%s%s%s]\n"
-#: src/irc/irc-display.c:354
+#: src/irc/irc-display.c:361
msgid "connected"
msgstr "conectado"
-#: src/irc/irc-display.c:354
+#: src/irc/irc-display.c:361
msgid "not connected"
msgstr "no conectado"
-#: src/irc/irc-display.c:358 src/irc/irc-display.c:362
-#: src/irc/irc-display.c:371 src/irc/irc-display.c:373
+#: src/irc/irc-display.c:365 src/irc/irc-display.c:369
+#: src/irc/irc-display.c:378 src/irc/irc-display.c:380
msgid "on"
msgstr "activo"
-#: src/irc/irc-display.c:358 src/irc/irc-display.c:362
-#: src/irc/irc-display.c:371 src/irc/irc-display.c:373
+#: src/irc/irc-display.c:365 src/irc/irc-display.c:369
+#: src/irc/irc-display.c:378 src/irc/irc-display.c:380
msgid "off"
msgstr "inactivo"
-#: src/irc/irc-display.c:360
+#: src/irc/irc-display.c:367
msgid " (temporary server, will not be saved)"
msgstr " (servidor temporal, no será guardado)"
-#: src/irc/irc-display.c:365 src/irc/irc-display.c:396 src/irc/irc-recv.c:3417
+#: src/irc/irc-display.c:372 src/irc/irc-display.c:403 src/irc/irc-recv.c:3417
msgid "seconds"
msgstr "segundos"
-#: src/irc/irc-display.c:376
+#: src/irc/irc-display.c:383
msgid "(hidden)"
msgstr "(oculto)"
diff --git a/po/fr.po b/po/fr.po
index 67c6d18fb..09dcde721 100644
--- a/po/fr.po
+++ b/po/fr.po
@@ -6,7 +6,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat 0.1.9-cvs\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
-"POT-Creation-Date: 2006-04-03 17:58+0200\n"
+"POT-Creation-Date: 2006-04-04 09:29+0200\n"
"PO-Revision-Date: 2006-04-02 23:42+0200\n"
"Last-Translator: FlashCode <flashcode@flashtux.org>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -1376,38 +1376,38 @@ msgstr "impossible de changer le mode pour les autres utilisateurs"
msgid "whois (secure connection)"
msgstr "qui est (connexion sécurisée)"
-#: src/irc/irc-display.c:347
+#: src/irc/irc-display.c:354
#, c-format
msgid "%sServer: %s%s %s[%s%s%s]\n"
msgstr "%sServeur: %s%s %s[%s%s%s]\n"
-#: src/irc/irc-display.c:354
+#: src/irc/irc-display.c:361
msgid "connected"
msgstr "connecté"
-#: src/irc/irc-display.c:354
+#: src/irc/irc-display.c:361
msgid "not connected"
msgstr "non connecté"
-#: src/irc/irc-display.c:358 src/irc/irc-display.c:362
-#: src/irc/irc-display.c:371 src/irc/irc-display.c:373
+#: src/irc/irc-display.c:365 src/irc/irc-display.c:369
+#: src/irc/irc-display.c:378 src/irc/irc-display.c:380
msgid "on"
msgstr "activé"
-#: src/irc/irc-display.c:358 src/irc/irc-display.c:362
-#: src/irc/irc-display.c:371 src/irc/irc-display.c:373
+#: src/irc/irc-display.c:365 src/irc/irc-display.c:369
+#: src/irc/irc-display.c:378 src/irc/irc-display.c:380
msgid "off"
msgstr "désactivé"
-#: src/irc/irc-display.c:360
+#: src/irc/irc-display.c:367
msgid " (temporary server, will not be saved)"
msgstr " (serveur temporaire, ne sera pas sauvé)"
-#: src/irc/irc-display.c:365 src/irc/irc-display.c:396 src/irc/irc-recv.c:3417
+#: src/irc/irc-display.c:372 src/irc/irc-display.c:403 src/irc/irc-recv.c:3417
msgid "seconds"
msgstr "secondes"
-#: src/irc/irc-display.c:376
+#: src/irc/irc-display.c:383
msgid "(hidden)"
msgstr "(caché)"
diff --git a/po/hu.po b/po/hu.po
index 65237fa83..99bf467c8 100644
--- a/po/hu.po
+++ b/po/hu.po
@@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat 0.1.9-cvs\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
-"POT-Creation-Date: 2006-04-03 17:58+0200\n"
+"POT-Creation-Date: 2006-04-04 09:29+0200\n"
"PO-Revision-Date: 2006-03-18 11:46+0100\n"
"Last-Translator: Andras Voroskoi <voroskoi@frugalware.org>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -1386,38 +1386,38 @@ msgstr "más felhasználók üzemmódját nem módosíthatja"
msgid "whois (secure connection)"
msgstr ""
-#: src/irc/irc-display.c:347
+#: src/irc/irc-display.c:354
#, c-format
msgid "%sServer: %s%s %s[%s%s%s]\n"
msgstr "%s Szerver: %s%s %s[%s%s%s]\n"
-#: src/irc/irc-display.c:354
+#: src/irc/irc-display.c:361
msgid "connected"
msgstr "csatlakozva"
-#: src/irc/irc-display.c:354
+#: src/irc/irc-display.c:361
msgid "not connected"
msgstr "nincs csatlakozva"
-#: src/irc/irc-display.c:358 src/irc/irc-display.c:362
-#: src/irc/irc-display.c:371 src/irc/irc-display.c:373
+#: src/irc/irc-display.c:365 src/irc/irc-display.c:369
+#: src/irc/irc-display.c:378 src/irc/irc-display.c:380
msgid "on"
msgstr "be"
-#: src/irc/irc-display.c:358 src/irc/irc-display.c:362
-#: src/irc/irc-display.c:371 src/irc/irc-display.c:373
+#: src/irc/irc-display.c:365 src/irc/irc-display.c:369
+#: src/irc/irc-display.c:378 src/irc/irc-display.c:380
msgid "off"
msgstr "ki"
-#: src/irc/irc-display.c:360
+#: src/irc/irc-display.c:367
msgid " (temporary server, will not be saved)"
msgstr " (átmeneti szerver, nem lesz mentve)"
-#: src/irc/irc-display.c:365 src/irc/irc-display.c:396 src/irc/irc-recv.c:3417
+#: src/irc/irc-display.c:372 src/irc/irc-display.c:403 src/irc/irc-recv.c:3417
msgid "seconds"
msgstr "másodperc"
-#: src/irc/irc-display.c:376
+#: src/irc/irc-display.c:383
msgid "(hidden)"
msgstr "(rejtett)"
diff --git a/po/weechat.pot b/po/weechat.pot
index 5616ed4be..9db8bc223 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: 2006-04-03 17:58+0200\n"
+"POT-Creation-Date: 2006-04-04 09:29+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"
@@ -1262,38 +1262,38 @@ msgstr ""
msgid "whois (secure connection)"
msgstr ""
-#: src/irc/irc-display.c:347
+#: src/irc/irc-display.c:354
#, c-format
msgid "%sServer: %s%s %s[%s%s%s]\n"
msgstr ""
-#: src/irc/irc-display.c:354
+#: src/irc/irc-display.c:361
msgid "connected"
msgstr ""
-#: src/irc/irc-display.c:354
+#: src/irc/irc-display.c:361
msgid "not connected"
msgstr ""
-#: src/irc/irc-display.c:358 src/irc/irc-display.c:362
-#: src/irc/irc-display.c:371 src/irc/irc-display.c:373
+#: src/irc/irc-display.c:365 src/irc/irc-display.c:369
+#: src/irc/irc-display.c:378 src/irc/irc-display.c:380
msgid "on"
msgstr ""
-#: src/irc/irc-display.c:358 src/irc/irc-display.c:362
-#: src/irc/irc-display.c:371 src/irc/irc-display.c:373
+#: src/irc/irc-display.c:365 src/irc/irc-display.c:369
+#: src/irc/irc-display.c:378 src/irc/irc-display.c:380
msgid "off"
msgstr ""
-#: src/irc/irc-display.c:360
+#: src/irc/irc-display.c:367
msgid " (temporary server, will not be saved)"
msgstr ""
-#: src/irc/irc-display.c:365 src/irc/irc-display.c:396 src/irc/irc-recv.c:3417
+#: src/irc/irc-display.c:372 src/irc/irc-display.c:403 src/irc/irc-recv.c:3417
msgid "seconds"
msgstr ""
-#: src/irc/irc-display.c:376
+#: src/irc/irc-display.c:383
msgid "(hidden)"
msgstr ""
diff --git a/src/irc/irc-channel.c b/src/irc/irc-channel.c
index 5901eee65..718bb7df6 100644
--- a/src/irc/irc-channel.c
+++ b/src/irc/irc-channel.c
@@ -35,7 +35,7 @@
#include "../gui/gui.h"
-char *channel_modes = "iklmnst";
+char *channel_modes = "iklmnstp";
/*
diff --git a/src/irc/irc-recv.c b/src/irc/irc-recv.c
index 5c24a4732..db707d199 100644
--- a/src/irc/irc-recv.c
+++ b/src/irc/irc-recv.c
@@ -929,7 +929,7 @@ void irc_get_channel_modes (t_irc_server *server, t_irc_channel *ptr_channel,
_("removes private channel flag"),
NULL);
CHANNEL_SET_MODE(ptr_channel, (set_flag == '+'),
- CHANNEL_MODE_SECRET);
+ CHANNEL_MODE_PRIVATE);
break;
case 'q':
pos = NULL;
diff --git a/src/irc/irc.h b/src/irc/irc.h
index b56227a40..87687146e 100644
--- a/src/irc/irc.h
+++ b/src/irc/irc.h
@@ -84,7 +84,7 @@ struct t_irc_nick
#define CHANNEL_TYPE_CHANNEL 0
#define CHANNEL_TYPE_PRIVATE 1
-#define NUM_CHANNEL_MODES 7
+#define NUM_CHANNEL_MODES 8
#define CHANNEL_MODE_INVITE 0
#define CHANNEL_MODE_KEY 1
#define CHANNEL_MODE_LIMIT 2
@@ -92,6 +92,7 @@ struct t_irc_nick
#define CHANNEL_MODE_NO_MSG_OUT 4
#define CHANNEL_MODE_SECRET 5
#define CHANNEL_MODE_TOPIC 6
+#define CHANNEL_MODE_PRIVATE 7
#define CHANNEL_SET_MODE(channel, set, mode) \
if (set) \
channel->modes[mode] = channel_modes[mode]; \
diff --git a/weechat/ChangeLog b/weechat/ChangeLog
index b8cbadb8d..97a192ded 100644
--- a/weechat/ChangeLog
+++ b/weechat/ChangeLog
@@ -1,10 +1,11 @@
WeeChat - Wee Enhanced Environment for Chat
===========================================
-ChangeLog - 2006-04-02
+ChangeLog - 2006-04-04
Version 0.1.9 (under dev!):
+ * added "+p" mode for channels, fixed mode display in status bar
* added nick alignment options
* fixed /names command: now displays result when not on a channel
* fixed refresh bug (too many refresh) when terminal is resized
diff --git a/weechat/po/es.po b/weechat/po/es.po
index bf00e61b1..6aebdf774 100644
--- a/weechat/po/es.po
+++ b/weechat/po/es.po
@@ -6,7 +6,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat 0.1.9-cvs\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
-"POT-Creation-Date: 2006-04-03 17:58+0200\n"
+"POT-Creation-Date: 2006-04-04 09:29+0200\n"
"PO-Revision-Date: 2006-03-18 11:45+0100\n"
"Last-Translator: Roberto González Cardenete <robert.glez@gmail.com>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -1385,38 +1385,38 @@ msgstr "no es posible cambiar el modo para el resto de usuarios"
msgid "whois (secure connection)"
msgstr "quién es (conexión segura)"
-#: src/irc/irc-display.c:347
+#: src/irc/irc-display.c:354
#, c-format
msgid "%sServer: %s%s %s[%s%s%s]\n"
msgstr "%sServidor:%s%s %s[%s%s%s]\n"
-#: src/irc/irc-display.c:354
+#: src/irc/irc-display.c:361
msgid "connected"
msgstr "conectado"
-#: src/irc/irc-display.c:354
+#: src/irc/irc-display.c:361
msgid "not connected"
msgstr "no conectado"
-#: src/irc/irc-display.c:358 src/irc/irc-display.c:362
-#: src/irc/irc-display.c:371 src/irc/irc-display.c:373
+#: src/irc/irc-display.c:365 src/irc/irc-display.c:369
+#: src/irc/irc-display.c:378 src/irc/irc-display.c:380
msgid "on"
msgstr "activo"
-#: src/irc/irc-display.c:358 src/irc/irc-display.c:362
-#: src/irc/irc-display.c:371 src/irc/irc-display.c:373
+#: src/irc/irc-display.c:365 src/irc/irc-display.c:369
+#: src/irc/irc-display.c:378 src/irc/irc-display.c:380
msgid "off"
msgstr "inactivo"
-#: src/irc/irc-display.c:360
+#: src/irc/irc-display.c:367
msgid " (temporary server, will not be saved)"
msgstr " (servidor temporal, no será guardado)"
-#: src/irc/irc-display.c:365 src/irc/irc-display.c:396 src/irc/irc-recv.c:3417
+#: src/irc/irc-display.c:372 src/irc/irc-display.c:403 src/irc/irc-recv.c:3417
msgid "seconds"
msgstr "segundos"
-#: src/irc/irc-display.c:376
+#: src/irc/irc-display.c:383
msgid "(hidden)"
msgstr "(oculto)"
diff --git a/weechat/po/fr.po b/weechat/po/fr.po
index 67c6d18fb..09dcde721 100644
--- a/weechat/po/fr.po
+++ b/weechat/po/fr.po
@@ -6,7 +6,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat 0.1.9-cvs\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
-"POT-Creation-Date: 2006-04-03 17:58+0200\n"
+"POT-Creation-Date: 2006-04-04 09:29+0200\n"
"PO-Revision-Date: 2006-04-02 23:42+0200\n"
"Last-Translator: FlashCode <flashcode@flashtux.org>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -1376,38 +1376,38 @@ msgstr "impossible de changer le mode pour les autres utilisateurs"
msgid "whois (secure connection)"
msgstr "qui est (connexion sécurisée)"
-#: src/irc/irc-display.c:347
+#: src/irc/irc-display.c:354
#, c-format
msgid "%sServer: %s%s %s[%s%s%s]\n"
msgstr "%sServeur: %s%s %s[%s%s%s]\n"
-#: src/irc/irc-display.c:354
+#: src/irc/irc-display.c:361
msgid "connected"
msgstr "connecté"
-#: src/irc/irc-display.c:354
+#: src/irc/irc-display.c:361
msgid "not connected"
msgstr "non connecté"
-#: src/irc/irc-display.c:358 src/irc/irc-display.c:362
-#: src/irc/irc-display.c:371 src/irc/irc-display.c:373
+#: src/irc/irc-display.c:365 src/irc/irc-display.c:369
+#: src/irc/irc-display.c:378 src/irc/irc-display.c:380
msgid "on"
msgstr "activé"
-#: src/irc/irc-display.c:358 src/irc/irc-display.c:362
-#: src/irc/irc-display.c:371 src/irc/irc-display.c:373
+#: src/irc/irc-display.c:365 src/irc/irc-display.c:369
+#: src/irc/irc-display.c:378 src/irc/irc-display.c:380
msgid "off"
msgstr "désactivé"
-#: src/irc/irc-display.c:360
+#: src/irc/irc-display.c:367
msgid " (temporary server, will not be saved)"
msgstr " (serveur temporaire, ne sera pas sauvé)"
-#: src/irc/irc-display.c:365 src/irc/irc-display.c:396 src/irc/irc-recv.c:3417
+#: src/irc/irc-display.c:372 src/irc/irc-display.c:403 src/irc/irc-recv.c:3417
msgid "seconds"
msgstr "secondes"
-#: src/irc/irc-display.c:376
+#: src/irc/irc-display.c:383
msgid "(hidden)"
msgstr "(caché)"
diff --git a/weechat/po/hu.po b/weechat/po/hu.po
index 65237fa83..99bf467c8 100644
--- a/weechat/po/hu.po
+++ b/weechat/po/hu.po
@@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat 0.1.9-cvs\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
-"POT-Creation-Date: 2006-04-03 17:58+0200\n"
+"POT-Creation-Date: 2006-04-04 09:29+0200\n"
"PO-Revision-Date: 2006-03-18 11:46+0100\n"
"Last-Translator: Andras Voroskoi <voroskoi@frugalware.org>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -1386,38 +1386,38 @@ msgstr "más felhasználók üzemmódját nem módosíthatja"
msgid "whois (secure connection)"
msgstr ""
-#: src/irc/irc-display.c:347
+#: src/irc/irc-display.c:354
#, c-format
msgid "%sServer: %s%s %s[%s%s%s]\n"
msgstr "%s Szerver: %s%s %s[%s%s%s]\n"
-#: src/irc/irc-display.c:354
+#: src/irc/irc-display.c:361
msgid "connected"
msgstr "csatlakozva"
-#: src/irc/irc-display.c:354
+#: src/irc/irc-display.c:361
msgid "not connected"
msgstr "nincs csatlakozva"
-#: src/irc/irc-display.c:358 src/irc/irc-display.c:362
-#: src/irc/irc-display.c:371 src/irc/irc-display.c:373
+#: src/irc/irc-display.c:365 src/irc/irc-display.c:369
+#: src/irc/irc-display.c:378 src/irc/irc-display.c:380
msgid "on"
msgstr "be"
-#: src/irc/irc-display.c:358 src/irc/irc-display.c:362
-#: src/irc/irc-display.c:371 src/irc/irc-display.c:373
+#: src/irc/irc-display.c:365 src/irc/irc-display.c:369
+#: src/irc/irc-display.c:378 src/irc/irc-display.c:380
msgid "off"
msgstr "ki"
-#: src/irc/irc-display.c:360
+#: src/irc/irc-display.c:367
msgid " (temporary server, will not be saved)"
msgstr " (átmeneti szerver, nem lesz mentve)"
-#: src/irc/irc-display.c:365 src/irc/irc-display.c:396 src/irc/irc-recv.c:3417
+#: src/irc/irc-display.c:372 src/irc/irc-display.c:403 src/irc/irc-recv.c:3417
msgid "seconds"
msgstr "másodperc"
-#: src/irc/irc-display.c:376
+#: src/irc/irc-display.c:383
msgid "(hidden)"
msgstr "(rejtett)"
diff --git a/weechat/po/weechat.pot b/weechat/po/weechat.pot
index 5616ed4be..9db8bc223 100644
--- a/weechat/po/weechat.pot
+++ b/weechat/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: 2006-04-03 17:58+0200\n"
+"POT-Creation-Date: 2006-04-04 09:29+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"
@@ -1262,38 +1262,38 @@ msgstr ""
msgid "whois (secure connection)"
msgstr ""
-#: src/irc/irc-display.c:347
+#: src/irc/irc-display.c:354
#, c-format
msgid "%sServer: %s%s %s[%s%s%s]\n"
msgstr ""
-#: src/irc/irc-display.c:354
+#: src/irc/irc-display.c:361
msgid "connected"
msgstr ""
-#: src/irc/irc-display.c:354
+#: src/irc/irc-display.c:361
msgid "not connected"
msgstr ""
-#: src/irc/irc-display.c:358 src/irc/irc-display.c:362
-#: src/irc/irc-display.c:371 src/irc/irc-display.c:373
+#: src/irc/irc-display.c:365 src/irc/irc-display.c:369
+#: src/irc/irc-display.c:378 src/irc/irc-display.c:380
msgid "on"
msgstr ""
-#: src/irc/irc-display.c:358 src/irc/irc-display.c:362
-#: src/irc/irc-display.c:371 src/irc/irc-display.c:373
+#: src/irc/irc-display.c:365 src/irc/irc-display.c:369
+#: src/irc/irc-display.c:378 src/irc/irc-display.c:380
msgid "off"
msgstr ""
-#: src/irc/irc-display.c:360
+#: src/irc/irc-display.c:367
msgid " (temporary server, will not be saved)"
msgstr ""
-#: src/irc/irc-display.c:365 src/irc/irc-display.c:396 src/irc/irc-recv.c:3417
+#: src/irc/irc-display.c:372 src/irc/irc-display.c:403 src/irc/irc-recv.c:3417
msgid "seconds"
msgstr ""
-#: src/irc/irc-display.c:376
+#: src/irc/irc-display.c:383
msgid "(hidden)"
msgstr ""
diff --git a/weechat/src/irc/irc-channel.c b/weechat/src/irc/irc-channel.c
index 5901eee65..718bb7df6 100644
--- a/weechat/src/irc/irc-channel.c
+++ b/weechat/src/irc/irc-channel.c
@@ -35,7 +35,7 @@
#include "../gui/gui.h"
-char *channel_modes = "iklmnst";
+char *channel_modes = "iklmnstp";
/*
diff --git a/weechat/src/irc/irc-recv.c b/weechat/src/irc/irc-recv.c
index 5c24a4732..db707d199 100644
--- a/weechat/src/irc/irc-recv.c
+++ b/weechat/src/irc/irc-recv.c
@@ -929,7 +929,7 @@ void irc_get_channel_modes (t_irc_server *server, t_irc_channel *ptr_channel,
_("removes private channel flag"),
NULL);
CHANNEL_SET_MODE(ptr_channel, (set_flag == '+'),
- CHANNEL_MODE_SECRET);
+ CHANNEL_MODE_PRIVATE);
break;
case 'q':
pos = NULL;
diff --git a/weechat/src/irc/irc.h b/weechat/src/irc/irc.h
index b56227a40..87687146e 100644
--- a/weechat/src/irc/irc.h
+++ b/weechat/src/irc/irc.h
@@ -84,7 +84,7 @@ struct t_irc_nick
#define CHANNEL_TYPE_CHANNEL 0
#define CHANNEL_TYPE_PRIVATE 1
-#define NUM_CHANNEL_MODES 7
+#define NUM_CHANNEL_MODES 8
#define CHANNEL_MODE_INVITE 0
#define CHANNEL_MODE_KEY 1
#define CHANNEL_MODE_LIMIT 2
@@ -92,6 +92,7 @@ struct t_irc_nick
#define CHANNEL_MODE_NO_MSG_OUT 4
#define CHANNEL_MODE_SECRET 5
#define CHANNEL_MODE_TOPIC 6
+#define CHANNEL_MODE_PRIVATE 7
#define CHANNEL_SET_MODE(channel, set, mode) \
if (set) \
channel->modes[mode] = channel_modes[mode]; \