1
0
mirror of https://github.com/weechat/weechat.git synced 2026-07-04 13:25:41 +02:00

irc: add option irc.look.display_join_message (task #10895)

This commit is contained in:
Sebastien Helleu
2013-03-24 13:02:26 +01:00
parent e03310cb0d
commit a08603c24c
34 changed files with 541 additions and 207 deletions
+1
View File
@@ -45,6 +45,7 @@ Version 0.4.1 (under dev!)
list with arguments inside), guile >= 2.0 is now required (bug #38350)
* guile: fix crash on calls to callbacks during load of script (bug #38343)
* guile: fix compilation with guile 2.0
* irc: add option irc.look.display_join_message (task #10895)
* irc: fix default completion (like nicks) in commands /msg, /notice, /query and
/topic
* irc: fix prefix color for nick when the prefix is not in
+1 -1
View File
@@ -27,7 +27,7 @@
'modes' (string) +
'limit' (integer) +
'key' (string) +
'names_received' (integer) +
'join_msg_received' (hashtable) +
'checking_away' (integer) +
'away_message' (string) +
'has_quit_server' (integer) +
+5
View File
@@ -143,6 +143,11 @@
** Typ: boolesch
** Werte: on, off (Standardwert: `on`)
* [[option_irc.look.display_join_message]] *irc.look.display_join_message*
** Beschreibung: `comma-separated list of messages to display after joining a channel: 329 = channel creation date, 332 = topic, 333 = nick/date for topic, 366 = names on channel`
** Typ: Zeichenkette
** Werte: beliebige Zeichenkette (Standardwert: `"329,332,333,366"`)
* [[option_irc.look.display_old_topic]] *irc.look.display_old_topic*
** Beschreibung: `Zeige das alte Thema an, falls das Thema des Channels geändert wurde`
** Typ: boolesch
+16 -1
View File
@@ -609,7 +609,22 @@ Für weitere Hilfe: `/help filter` und `/help irc.look.smart_filter`
Wie kann ich Nachrichten filtern wenn ich einen IRC Channel betrete?
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Es folgen einige Tags die man zum filtern von Nachrichten nutzen kann:
// TRANSLATION MISSING
With WeeChat ≥ 0.4.1, you can disable some messages with option
'irc.look.display_join_message'.
// TRANSLATION MISSING
For example, to disable names (which is IRC message '366'):
----------------------------------------
/set irc.look.display_join_message "329,332,333"
----------------------------------------
[NOTE]
For help: `/help irc.look.display_join_message`
// TRANSLATION MISSING
Another solution is to filter messages on tag:
* 'irc_366': Auflistung der Namen die sich im Channel befinden
* 'irc_332,irc_333': Channel Topic/Datum
+1 -1
View File
@@ -27,7 +27,7 @@
'modes' (string) +
'limit' (integer) +
'key' (string) +
'names_received' (integer) +
'join_msg_received' (hashtable) +
'checking_away' (integer) +
'away_message' (string) +
'has_quit_server' (integer) +
+5
View File
@@ -143,6 +143,11 @@
** type: boolean
** values: on, off (default value: `on`)
* [[option_irc.look.display_join_message]] *irc.look.display_join_message*
** description: `comma-separated list of messages to display after joining a channel: 329 = channel creation date, 332 = topic, 333 = nick/date for topic, 366 = names on channel`
** type: string
** values: any string (default value: `"329,332,333,366"`)
* [[option_irc.look.display_old_topic]] *irc.look.display_old_topic*
** description: `display old topic when channel topic is changed`
** type: boolean
+13 -1
View File
@@ -579,7 +579,19 @@ For help: `/help filter` and `/help irc.look.smart_filter`
How can I filter some messages displayed when I join an IRC channel?
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Some tags you can use to filter messages:
With WeeChat ≥ 0.4.1, you can disable some messages with option
'irc.look.display_join_message'.
For example, to disable names (which is IRC message '366'):
----------------------------------------
/set irc.look.display_join_message "329,332,333"
----------------------------------------
[NOTE]
For help: `/help irc.look.display_join_message`
Another solution is to filter messages on tag:
* 'irc_366': names on channel
* 'irc_332,irc_333': channel topic/date
+1 -1
View File
@@ -27,7 +27,7 @@
'modes' (string) +
'limit' (integer) +
'key' (string) +
'names_received' (integer) +
'join_msg_received' (hashtable) +
'checking_away' (integer) +
'away_message' (string) +
'has_quit_server' (integer) +
+5
View File
@@ -143,6 +143,11 @@
** type: booléen
** valeurs: on, off (valeur par défaut: `on`)
* [[option_irc.look.display_join_message]] *irc.look.display_join_message*
** description: `liste de messages (séparés par des virgules) à afficher après avoir rejoint un canal: 329 = date de création du canal, 332 = titre, 333 = pseudo/date pour le titre, 366 = noms sur le canal`
** type: chaîne
** valeurs: toute chaîne (valeur par défaut: `"329,332,333,366"`)
* [[option_irc.look.display_old_topic]] *irc.look.display_old_topic*
** description: `afficher l'ancien titre lorsque le titre du canal est changé`
** type: booléen
+13 -1
View File
@@ -605,7 +605,19 @@ Pour l'aide : `/help filter` et `/help irc.look.smart_filter`
Comment puis-je filtrer certains messages affichés quand je rejoins un canal IRC ?
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Quelques étiquettes que vous pouvez utiliser pour filtrer des messages :
Avec WeeChat ≥ 0.4.1, vous pouvez désactiver des messages avec l'option
'irc.look.display_join_message'.
Par exemple, pour désactiver les noms (qui est le message IRC '366') :
----------------------------------------
/set irc.look.display_join_message "329,332,333"
----------------------------------------
[NOTE]
Pour l'aide : `/help irc.look.display_join_message`
Une autre solution est de filtrer les messages par l'étiquette :
* 'irc_366' : noms sur le canal
* 'irc_332,irc_333' : titre/date du canal
+1 -1
View File
@@ -27,7 +27,7 @@
'modes' (string) +
'limit' (integer) +
'key' (string) +
'names_received' (integer) +
'join_msg_received' (hashtable) +
'checking_away' (integer) +
'away_message' (string) +
'has_quit_server' (integer) +
+5
View File
@@ -143,6 +143,11 @@
** tipo: bool
** valori: on, off (valore predefinito: `on`)
* [[option_irc.look.display_join_message]] *irc.look.display_join_message*
** descrizione: `comma-separated list of messages to display after joining a channel: 329 = channel creation date, 332 = topic, 333 = nick/date for topic, 366 = names on channel`
** tipo: stringa
** valori: qualsiasi stringa (valore predefinito: `"329,332,333,366"`)
* [[option_irc.look.display_old_topic]] *irc.look.display_old_topic*
** descrizione: `visualizza l'argomento del canale precedente quando viene cambiato`
** tipo: bool
+16 -1
View File
@@ -600,7 +600,22 @@ Per aiuto: `/help filter` e `/help irc.look.smart_filter`
Come posso filtrare i messaggi visualizzati all'ingresso su un canale IRC?
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Ecco alcuni tag da poter utilizzare per filtrare i messaggi:
// TRANSLATION MISSING
With WeeChat ≥ 0.4.1, you can disable some messages with option
'irc.look.display_join_message'.
// TRANSLATION MISSING
For example, to disable names (which is IRC message '366'):
----------------------------------------
/set irc.look.display_join_message "329,332,333"
----------------------------------------
[NOTE]
For help: `/help irc.look.display_join_message`
// TRANSLATION MISSING
Another solution is to filter messages on tag:
* 'irc_366': nomi sui canali
* 'irc_332,irc_333': topic/data del canale
+1 -1
View File
@@ -27,7 +27,7 @@
'modes' (string) +
'limit' (integer) +
'key' (string) +
'names_received' (integer) +
'join_msg_received' (hashtable) +
'checking_away' (integer) +
'away_message' (string) +
'has_quit_server' (integer) +
+5
View File
@@ -143,6 +143,11 @@
** タイプ: ブール
** 値: on, off (デフォルト値: `on`)
* [[option_irc.look.display_join_message]] *irc.look.display_join_message*
** 説明: `comma-separated list of messages to display after joining a channel: 329 = channel creation date, 332 = topic, 333 = nick/date for topic, 366 = names on channel`
** タイプ: 文字列
** 値: 未制約文字列 (デフォルト値: `"329,332,333,366"`)
* [[option_irc.look.display_old_topic]] *irc.look.display_old_topic*
** 説明: `チャンネルトピックが変更された場合に、古いトピックを表示`
** タイプ: ブール
+16 -1
View File
@@ -539,7 +539,22 @@ of channels):
[[filter_irc_join_channel_messages]]
=== どうすれば IRC チャンネルに参加した際に表示される一部のメッセージをフィルタできますか。 ===
メッセージをフィルタするためにいくつかのタグが使えます:
// TRANSLATION MISSING
With WeeChat ≥ 0.4.1, you can disable some messages with option
'irc.look.display_join_message'.
// TRANSLATION MISSING
For example, to disable names (which is IRC message '366'):
----------------------------------------
/set irc.look.display_join_message "329,332,333"
----------------------------------------
[NOTE]
For help: `/help irc.look.display_join_message`
// TRANSLATION MISSING
Another solution is to filter messages on tag:
* 'irc_366': チャンネルにいるユーザの名前
* 'irc_332,irc_333': チャンネルのトピック/日時
+16 -1
View File
@@ -583,7 +583,22 @@ Więcej informacji: `/help filter` i `/help irc.look.smart_filter`
Jak mogę filtrować wyświetlane wiadomości podczas wejścia na kanał IRC?
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Tagi, które można użyć do filtrowania wiadomości:
// TRANSLATION MISSING
With WeeChat ≥ 0.4.1, you can disable some messages with option
'irc.look.display_join_message'.
// TRANSLATION MISSING
For example, to disable names (which is IRC message '366'):
----------------------------------------
/set irc.look.display_join_message "329,332,333"
----------------------------------------
[NOTE]
For help: `/help irc.look.display_join_message`
// TRANSLATION MISSING
Another solution is to filter messages on tag:
* 'irc_366': osoby na kanale
* 'irc_332,irc_333': temat/data kanału
+11 -1
View File
@@ -20,7 +20,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat 0.4.1-dev\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2013-03-17 22:01+0100\n"
"POT-Creation-Date: 2013-03-24 12:25+0100\n"
"PO-Revision-Date: 2013-03-16 17:49+0100\n"
"Last-Translator: Jiri Golembiovsky <golemj@gmail.com>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -5997,6 +5997,12 @@ msgstr "zobrazovat hosta ve vezprávách o připojení z lokálního klienta"
msgid "display host in part/quit messages"
msgstr "zobrazovat hosta ve zprávách o odchodu/ukončení"
msgid ""
"comma-separated list of messages to display after joining a channel: 329 = "
"channel creation date, 332 = topic, 333 = nick/date for topic, 366 = names "
"on channel"
msgstr ""
msgid "display old topic when channel topic is changed"
msgstr "zobrazit staré téma rozhovoru, když se téma změní"
@@ -9403,3 +9409,7 @@ msgstr ""
msgid "Constants"
msgstr ""
#, fuzzy
#~ msgid "display names when joining channel"
#~ msgstr "zobrazit speiální zprávy při změně dne"
+11 -1
View File
@@ -22,7 +22,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat 0.4.1-dev\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2013-03-17 22:01+0100\n"
"POT-Creation-Date: 2013-03-24 12:25+0100\n"
"PO-Revision-Date: 2013-03-17 08:20+0100\n"
"Last-Translator: Nils Görs <weechatter@arcor.de>\n"
"Language-Team: German <weechatter@arcor.de>\n"
@@ -6590,6 +6590,12 @@ msgstr "Zeigt den Host in join Nachrichten des lokalen Client an"
msgid "display host in part/quit messages"
msgstr "Zeigt den Host in einer part/quit Nachricht an"
msgid ""
"comma-separated list of messages to display after joining a channel: 329 = "
"channel creation date, 332 = topic, 333 = nick/date for topic, 366 = names "
"on channel"
msgstr ""
msgid "display old topic when channel topic is changed"
msgstr "Zeige das alte Thema an, falls das Thema des Channels geändert wurde"
@@ -10289,3 +10295,7 @@ msgstr "Type"
msgid "Constants"
msgstr "Konstanten"
#, fuzzy
#~ msgid "display names when joining channel"
#~ msgstr "bei einem Datumswechsel wird eine entsprechende Nachricht angezeigt"
+11 -1
View File
@@ -22,7 +22,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat 0.4.1-dev\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2013-03-17 22:01+0100\n"
"POT-Creation-Date: 2013-03-24 12:25+0100\n"
"PO-Revision-Date: 2013-03-17 08:20+0100\n"
"Last-Translator: Elián Hanisch <lambdae2@gmail.com>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -6220,6 +6220,12 @@ msgstr "muestra el host en mensajes de unión desde el cliente local"
msgid "display host in part/quit messages"
msgstr "muestra el host en mensajes de salida/abandono"
msgid ""
"comma-separated list of messages to display after joining a channel: 329 = "
"channel creation date, 332 = topic, 333 = nick/date for topic, 366 = names "
"on channel"
msgstr ""
msgid "display old topic when channel topic is changed"
msgstr "mostrar el tema anterior cuando se cambia el tema del canal"
@@ -9649,3 +9655,7 @@ msgstr "Tipo"
msgid "Constants"
msgstr "Constantes"
#, fuzzy
#~ msgid "display names when joining channel"
#~ msgstr "mostrar un mensaje especial cuando el día cambia"
+14 -2
View File
@@ -21,8 +21,8 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat 0.4.1-dev\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2013-03-17 22:01+0100\n"
"PO-Revision-Date: 2013-03-17 22:02+0100\n"
"POT-Creation-Date: 2013-03-24 12:58+0100\n"
"PO-Revision-Date: 2013-03-24 12:26+0100\n"
"Last-Translator: Sebastien Helleu <flashcode@flashtux.org>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
"Language: fr\n"
@@ -6405,6 +6405,15 @@ msgstr "afficher le nom d'hôte dans les messages join du client local"
msgid "display host in part/quit messages"
msgstr "afficher le nom d'hôte dans les messages part/quit"
msgid ""
"comma-separated list of messages to display after joining a channel: 329 = "
"channel creation date, 332 = topic, 333 = nick/date for topic, 366 = names "
"on channel"
msgstr ""
"liste de messages (séparés par des virgules) à afficher après avoir rejoint "
"un canal: 329 = date de création du canal, 332 = titre, 333 = pseudo/date "
"pour le titre, 366 = noms sur le canal"
msgid "display old topic when channel topic is changed"
msgstr "afficher l'ancien titre lorsque le titre du canal est changé"
@@ -10020,3 +10029,6 @@ msgstr "Type"
msgid "Constants"
msgstr "Constantes"
#~ msgid "display names when joining channel"
#~ msgstr "afficher les noms lorsqu'on rejoint un canal"
+11 -1
View File
@@ -20,7 +20,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat 0.4.1-dev\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2013-03-17 22:01+0100\n"
"POT-Creation-Date: 2013-03-24 12:25+0100\n"
"PO-Revision-Date: 2013-03-16 17:50+0100\n"
"Last-Translator: Andras Voroskoi <voroskoi@frugalware.org>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -5549,6 +5549,12 @@ msgstr "új üzenetet tartalmazó ablak színe"
msgid "display host in part/quit messages"
msgstr "alapértelmezett kilépő üzenet"
msgid ""
"comma-separated list of messages to display after joining a channel: 329 = "
"channel creation date, 332 = topic, 333 = nick/date for topic, 366 = names "
"on channel"
msgstr ""
msgid "display old topic when channel topic is changed"
msgstr ""
@@ -8872,3 +8878,7 @@ msgstr ""
msgid "Constants"
msgstr ""
#, fuzzy
#~ msgid "display names when joining channel"
#~ msgstr "speciális üzenet az aktuális nap megváltozásakor"
+11 -1
View File
@@ -20,7 +20,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat 0.4.1-dev\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2013-03-17 22:01+0100\n"
"POT-Creation-Date: 2013-03-24 12:25+0100\n"
"PO-Revision-Date: 2013-03-17 08:20+0100\n"
"Last-Translator: Marco Paolone <marcopaolone@gmail.com>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -6228,6 +6228,12 @@ msgstr "visualizza l'host nei messaggi di entrata dal client locale"
msgid "display host in part/quit messages"
msgstr "visualizza host nei messaggi di uscita/abbandono"
msgid ""
"comma-separated list of messages to display after joining a channel: 329 = "
"channel creation date, 332 = topic, 333 = nick/date for topic, 366 = names "
"on channel"
msgstr ""
msgid "display old topic when channel topic is changed"
msgstr "visualizza l'argomento del canale precedente quando viene cambiato"
@@ -9680,3 +9686,7 @@ msgstr "Tipo"
msgid "Constants"
msgstr "Costanti"
#, fuzzy
#~ msgid "display names when joining channel"
#~ msgstr "mostra un messaggio speciale al cambio di data"
+11 -1
View File
@@ -20,7 +20,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat 0.4.1-dev\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2013-03-17 22:01+0100\n"
"POT-Creation-Date: 2013-03-24 12:25+0100\n"
"PO-Revision-Date: 2013-03-17 08:20+0100\n"
"Last-Translator: AYANOKOUZI, Ryuunosuke <i38w7i3@yahoo.co.jp>\n"
"Language-Team: Japanese <https://github.com/l/WeeChat>\n"
@@ -6189,6 +6189,12 @@ msgstr "ローカルクライアントからの参加メッセージにホスト
msgid "display host in part/quit messages"
msgstr "退出/終了 メッセージにホスト名を表示"
msgid ""
"comma-separated list of messages to display after joining a channel: 329 = "
"channel creation date, 332 = topic, 333 = nick/date for topic, 366 = names "
"on channel"
msgstr ""
msgid "display old topic when channel topic is changed"
msgstr "チャンネルトピックが変更された場合に、古いトピックを表示"
@@ -9669,3 +9675,7 @@ msgstr "タイプ"
msgid "Constants"
msgstr "定数"
#, fuzzy
#~ msgid "display names when joining channel"
#~ msgstr "日付が変わった際に特殊メッセージを表示"
+11 -1
View File
@@ -21,7 +21,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat 0.4.1-dev\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2013-03-17 22:01+0100\n"
"POT-Creation-Date: 2013-03-24 12:25+0100\n"
"PO-Revision-Date: 2013-03-17 08:20+0100\n"
"Last-Translator: Krzysztof Korościk <soltys@szluug.org>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -6314,6 +6314,12 @@ msgstr "wyświetlaj host podczas wchodzenia na kanał"
msgid "display host in part/quit messages"
msgstr "pokazuj host w wiadomościach o opuszczeniu kanału/wyjściu z IRC"
msgid ""
"comma-separated list of messages to display after joining a channel: 329 = "
"channel creation date, 332 = topic, 333 = nick/date for topic, 366 = names "
"on channel"
msgstr ""
msgid "display old topic when channel topic is changed"
msgstr "wyświetl stary temat, kiedy zmieniany jest temat kanału"
@@ -9823,3 +9829,7 @@ msgstr "Typ"
msgid "Constants"
msgstr "Stałe"
#, fuzzy
#~ msgid "display names when joining channel"
#~ msgstr "wyświetlaj specjalną wiadomość, kiedy zmienia się dzień"
+11 -1
View File
@@ -21,7 +21,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat 0.4.1-dev\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2013-03-17 22:01+0100\n"
"POT-Creation-Date: 2013-03-24 12:25+0100\n"
"PO-Revision-Date: 2013-03-17 08:20+0100\n"
"Last-Translator: Sergio Durigan Junior <sergiosdj@gmail.com>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -5735,6 +5735,12 @@ msgstr ""
msgid "display host in part/quit messages"
msgstr ""
msgid ""
"comma-separated list of messages to display after joining a channel: 329 = "
"channel creation date, 332 = topic, 333 = nick/date for topic, 366 = names "
"on channel"
msgstr ""
msgid "display old topic when channel topic is changed"
msgstr "exibir tópico antigo quando o tópico do canal for alterado"
@@ -9035,3 +9041,7 @@ msgstr ""
msgid "Constants"
msgstr ""
#, fuzzy
#~ msgid "display names when joining channel"
#~ msgstr "mostra uma mensagem especial quando o dia muda"
+11 -1
View File
@@ -21,7 +21,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat 0.4.1-dev\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2013-03-17 22:01+0100\n"
"POT-Creation-Date: 2013-03-24 12:25+0100\n"
"PO-Revision-Date: 2013-03-16 17:50+0100\n"
"Last-Translator: Aleksey V Zapparov AKA ixti <ixti@member.fsf.org>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -5571,6 +5571,12 @@ msgstr "цвет текущего окна с сообщениями"
msgid "display host in part/quit messages"
msgstr "сообщение о выходе по-умолчанию"
msgid ""
"comma-separated list of messages to display after joining a channel: 329 = "
"channel creation date, 332 = topic, 333 = nick/date for topic, 366 = names "
"on channel"
msgstr ""
msgid "display old topic when channel topic is changed"
msgstr ""
@@ -8890,3 +8896,7 @@ msgstr ""
msgid "Constants"
msgstr ""
#, fuzzy
#~ msgid "display names when joining channel"
#~ msgstr "отображать специальное сообщение при смене дня"
+7 -1
View File
@@ -21,7 +21,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat 0.4.1-dev\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2013-03-17 22:01+0100\n"
"POT-Creation-Date: 2013-03-24 12:25+0100\n"
"PO-Revision-Date: 2013-02-14 18:20+0100\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -4828,6 +4828,12 @@ msgstr ""
msgid "display host in part/quit messages"
msgstr ""
msgid ""
"comma-separated list of messages to display after joining a channel: 329 = "
"channel creation date, 332 = topic, 333 = nick/date for topic, 366 = names "
"on channel"
msgstr ""
msgid "display old topic when channel topic is changed"
msgstr ""
+12 -4
View File
@@ -294,7 +294,11 @@ irc_channel_new (struct t_irc_server *server, int channel_type,
{
new_channel->key = NULL;
}
new_channel->names_received = 0;
new_channel->join_msg_received = weechat_hashtable_new (32,
WEECHAT_HASHTABLE_STRING,
WEECHAT_HASHTABLE_STRING,
NULL,
NULL);
new_channel->checking_away = 0;
new_channel->away_message = NULL;
new_channel->has_quit_server = 0;
@@ -1183,7 +1187,7 @@ irc_channel_hdata_channel_cb (void *data, const char *hdata_name)
WEECHAT_HDATA_VAR(struct t_irc_channel, modes, STRING, 0, NULL, NULL);
WEECHAT_HDATA_VAR(struct t_irc_channel, limit, INTEGER, 0, NULL, NULL);
WEECHAT_HDATA_VAR(struct t_irc_channel, key, STRING, 0, NULL, NULL);
WEECHAT_HDATA_VAR(struct t_irc_channel, names_received, INTEGER, 0, NULL, NULL);
WEECHAT_HDATA_VAR(struct t_irc_channel, join_msg_received, HASHTABLE, 0, NULL, NULL);
WEECHAT_HDATA_VAR(struct t_irc_channel, checking_away, INTEGER, 0, NULL, NULL);
WEECHAT_HDATA_VAR(struct t_irc_channel, away_message, STRING, 0, NULL, NULL);
WEECHAT_HDATA_VAR(struct t_irc_channel, has_quit_server, INTEGER, 0, NULL, NULL);
@@ -1278,7 +1282,8 @@ irc_channel_add_to_infolist (struct t_infolist *infolist,
return 0;
if (!weechat_infolist_new_var_string (ptr_item, "key", channel->key))
return 0;
if (!weechat_infolist_new_var_integer (ptr_item, "names_received", channel->names_received))
if (!weechat_infolist_new_var_string (ptr_item, "join_msg_received",
weechat_hashtable_get_string (channel->join_msg_received, "keys")))
return 0;
if (!weechat_infolist_new_var_integer (ptr_item, "checking_away", channel->checking_away))
return 0;
@@ -1360,7 +1365,10 @@ irc_channel_print_log (struct t_irc_channel *channel)
weechat_log_printf (" modes. . . . . . . . . . : '%s'", channel->modes);
weechat_log_printf (" limit. . . . . . . . . . : %d", channel->limit);
weechat_log_printf (" key. . . . . . . . . . . : '%s'", channel->key);
weechat_log_printf (" names_received . . . . . : %d", channel->names_received);
weechat_log_printf (" join_msg_received. . . . : 0x%lx (hashtable: '%s')",
channel->join_msg_received,
weechat_hashtable_get_string (channel->join_msg_received,
"keys_values"));
weechat_log_printf (" checking_away. . . . . . : %d", channel->checking_away);
weechat_log_printf (" away_message . . . . . . : '%s'", channel->away_message);
weechat_log_printf (" has_quit_server. . . . . : %d", channel->has_quit_server);
+3 -1
View File
@@ -47,7 +47,9 @@ struct t_irc_channel
char *modes; /* channel modes */
int limit; /* user limit (0 is limit not set) */
char *key; /* channel key (NULL if no key set) */
int names_received; /* names received (message 366) */
struct t_hashtable *join_msg_received; /* messages received after join: */
/* 366=names, 332/333=topic, */
/* 329=creation date */
int checking_away; /* = 1 if checking away with WHO cmd */
char *away_message; /* to display away only once in pv */
int has_quit_server; /* =1 if nick has quit (pv only), to */
File diff suppressed because it is too large Load Diff
+2
View File
@@ -115,6 +115,7 @@ extern struct t_config_option *irc_config_look_display_ctcp_unknown;
extern struct t_config_option *irc_config_look_display_host_join;
extern struct t_config_option *irc_config_look_display_host_join_local;
extern struct t_config_option *irc_config_look_display_host_quit;
extern struct t_config_option *irc_config_look_display_join_message;
extern struct t_config_option *irc_config_look_display_old_topic;
extern struct t_config_option *irc_config_look_display_pv_away_once;
extern struct t_config_option *irc_config_look_display_pv_back;
@@ -177,6 +178,7 @@ extern struct t_config_option *irc_config_server_default[];
extern char **irc_config_nick_colors;
extern int irc_config_num_nick_colors;
extern struct t_hashtable *irc_config_hashtable_display_join_message;
extern struct t_hashtable *irc_config_hashtable_nick_color_force;
extern struct t_hashtable *irc_config_hashtable_nick_prefixes;
extern struct t_hashtable *irc_config_hashtable_color_mirc_remap;
File diff suppressed because it is too large Load Diff
+17 -2
View File
@@ -284,10 +284,11 @@ irc_upgrade_read_cb (void *data,
int object_id,
struct t_infolist *infolist)
{
int flags, sock, size, i, index, nicks_count;
int flags, sock, size, i, index, nicks_count, num_items;
long number;
time_t join_time;
char *buf, option_name[64], **nicks, *nick_join, *pos, *error;
char **items;
const char *buffer_name, *str, *nick;
struct t_irc_nick *ptr_nick;
struct t_irc_redirect *ptr_redirect;
@@ -442,7 +443,21 @@ irc_upgrade_read_cb (void *data,
str = weechat_infolist_string (infolist, "key");
if (str)
irc_upgrade_current_channel->key = strdup (str);
irc_upgrade_current_channel->names_received = weechat_infolist_integer (infolist, "names_received");
str = weechat_infolist_string (infolist, "join_msg_received");
if (str)
{
items = weechat_string_split (str, ",", 0, 0,
&num_items);
if (items)
{
for (i = 0; i < num_items; i++)
{
weechat_hashtable_set (irc_upgrade_current_channel->join_msg_received,
items[i], "1");
}
weechat_string_free_split (items);
}
}
irc_upgrade_current_channel->checking_away = weechat_infolist_integer (infolist, "checking_away");
str = weechat_infolist_string (infolist, "away_message");
if (str)