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

Add IRC options to customize target buffer for messages (task #7381)

This commit is contained in:
Sebastien Helleu
2009-12-31 19:29:26 +01:00
parent 5663e69bc5
commit b493bc5c25
28 changed files with 1009 additions and 183 deletions
+1
View File
@@ -75,6 +75,7 @@ my %plugin_list = ("weechat" => "co", "alias" => "",
my @ignore_options = ("aspell\\.dict\\..*",
"charset\\.decode\\..*",
"charset\\.encode\\..*",
"irc\\.msgbuffer\\..*",
"irc\\.ctcp\\..*",
"irc\\.ignore\\..*",
"irc\\.server\\..*",
+5
View File
@@ -73,6 +73,11 @@
** type: integer
** values: buffer_plugin, buffer_name (default value: buffer_plugin)
* *irc.look.msgbuffer_fallback*
** description: default target buffer for msgbuffer options when target is private and that private buffer is not found
** type: integer
** values: current, server (default value: current)
* *irc.look.nick_completion_smart*
** description: smart completion for nicks (completes first with last speakers)
** type: integer
+7 -7
View File
@@ -4403,14 +4403,14 @@ Arguments:
* 'prefix': name of prefix:
[width="70%",cols="^2,^1,^3,5",options="header"]
[width="70%",cols="^2e,^1l,^3,5",options="header"]
|========================================
| Prefix | Value | Color | Description
| 'error' | `=!=` | yellow | error message
| 'network' | `--` | magenta | message from network
| 'action' | `*` | white | self action
| 'join' | `-->` | lightgreen | someone joins current chat
| 'quit' | `<--` | lightred | someone leaves current chat
| Prefix | Value | Color | Description
| error | =!= | yellow | error message
| network | -- | magenta | message from network
| action | * | white | self action
| join | --> | lightgreen | someone joins current chat
| quit | <-- | lightred | someone leaves current chat
|========================================
[NOTE]
+137 -38
View File
@@ -235,65 +235,65 @@ Screen is composed by following areas:
Bar 'status' has following default items:
[width="100%",cols="^3,^3,10",options="header"]
[width="100%",cols="^3,^3l,10",options="header"]
|========================================
| Item | Example | Description
| Item | Example | Description
| time | `[12:55]` |
| time | [12:55] |
time
| buffer_count | `[4]` |
| buffer_count | [4] |
number of opened buffers
| buffer_plugin | `[irc]` |
| buffer_plugin | [irc/freenode] |
plugin of current buffer (irc plugin can add IRC server name used by buffer)
| buffer_number | `3` |
| buffer_number | 3 |
current buffer number
| buffer_name | `freenode/#test(+n)` |
| buffer_name | #test(+n) |
current buffer name
| buffer_nicklist_count | `{5}` |
| buffer_nicklist_count | {5} |
number of nicks in nicklist
| buffer_filter | `*` |
| buffer_filter | * |
filtering indicator: `*` means some lines are filtered (hidden), empty value
means all lines are displayed
| lag | `[Lag: 2.5]` |
| lag | [Lag: 2.5] |
lag indicator, in seconds (hidden if lag is low)
| hotlist | `[Act: 4,2]` |
| hotlist | [Act: 4,2] |
list of buffers with activity (unread messages)
| completion | `abc(2) def(5)` |
| completion | abc(2) def(5) |
list of words for completion, with number of possible completions for each
word
| scroll | `-MORE(50)-` |
| scroll | -MORE(50)- |
scroll indicator, with number of lines below last line displayed
|========================================
Bar 'input' has following default items:
[width="100%",cols="^3,^6,8",options="header"]
[width="100%",cols="^3,^6m,8",options="header"]
|========================================
| Item | Example | Description
| input_paste | `[Paste 7 lines ? [ctrl-Y] Yes [ctrl-N] No]` |
| input_paste | [Paste 7 lines ? [ctrl-Y] Yes [ctrl-N] No] |
question to user for pasting lines
| input_prompt | `[nick]` |
| input_prompt | [nick] |
input prompt (nick for irc plugin)
| away | `(away)` |
| away | (away) |
away indicator
| input_search | `[Text search]` |
| input_search | [Text search] |
text search indicator
| input_text | `bla bla...` |
| input_text | bla bla... |
input text
|========================================
@@ -1054,33 +1054,132 @@ If you want to restore standard CTCP reply, then remove option:
Following codes can be used in strings and are automatically expanded by WeeChat
when replying to CTCP:
[width="100%",cols="^2,4,8",options="header"]
[width="100%",cols="^2l,4,8l",options="header"]
|========================================
| Code | Description | Value/example
| `$clientinfo` | list of supported CTCP | `ACTION DCC CLIENTINFO FINGER PING SOURCE TIME USERINFO VERSION`
| `$version` | WeeChat version | `0.3.0`
| `$compilation` | WeeChat compilation date | `Sep 13 2009`
| `$osinfo` | info about OS | `Linux 2.6.31 / i686`
| `$site` | WeeChat site | `http://www.weechat.org`
| `$download` | WeeChat site, download page | `http://www.weechat.org/download`
| `$time` | current date/time | `Sun Sep 13 15:48:31 2009`
| `$username` | username on IRC server | `nick`
| `$realname` | realname on IRC server | `My name`
| Code | Description | Value/example
| $clientinfo | list of supported CTCP | ACTION DCC CLIENTINFO FINGER PING SOURCE TIME USERINFO VERSION
| $version | WeeChat version | 0.3.0
| $compilation | WeeChat compilation date | Sep 13 2009
| $osinfo | info about OS | Linux 2.6.31 / i686
| $site | WeeChat site | http://www.weechat.org
| $download | WeeChat site, download page | http://www.weechat.org/download
| $time | current date/time | Sun Sep 13 15:48:31 2009
| $username | username on IRC server | nick
| $realname | realname on IRC server | My name
|========================================
If CTCP options are not defined (by default), CTCP replies are:
[width="100%",cols="^2,4,8",options="header"]
[width="100%",cols="^2,4l,8l",options="header"]
|========================================
| CTCP | Reply format | Example
| CLIENTINFO | `$clientinfo` | `ACTION DCC CLIENTINFO FINGER PING SOURCE TIME USERINFO VERSION`
| FINGER | `WeeChat $version` | `WeeChat 0.3.0`
| SOURCE | `$download` | `http://www.weechat.org/download`
| TIME | `$time` | `Sun Sep 13 15:48:31 2009`
| USERINFO | `$username ($realname)` | `nick (My name)`
| VERSION | `WeeChat $version ($compilation)` | `WeeChat 0.3.0 (Sep 13 2009)`
| CTCP | Reply format | Example
| CLIENTINFO | $clientinfo | ACTION DCC CLIENTINFO FINGER PING SOURCE TIME USERINFO VERSION
| FINGER | WeeChat $version | WeeChat 0.3.0
| SOURCE | $download | http://www.weechat.org/download
| TIME | $time | Sun Sep 13 15:48:31 2009
| USERINFO | $username ($realname) | nick (My name)
| VERSION | WeeChat $version ($compilation) | WeeChat 0.3.0 (Sep 13 2009)
|========================================
[[target_buffer]]
Target buffer for IRC messages
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
It is possible to customize target buffer for IRC messages (buffer used to
display message) with options `irc.msgbuffer.*`.
For some IRC messages (see list below), you can use value:
current::
current buffer (if it's IRC buffer, or on server buffer by default)
private::
private buffer for nick, or current/server buffer if not found (according
to option 'irc.look.msgbuffer_fallback')
weechat::
WeeChat "core" buffer
Default is server buffer (when option is not set).
Non-exhaustive list of IRC messages or alias that you can customize:
[width="50%",cols="^1m,^1m,3",options="header"]
|========================================
| message | alias | description
| invite | | invited on a channel
| notice | | notice
| wallops | | wallops
| 221 | | user mode string
| 275 | whois | whois (secure connection)
| 303 | | ison
| 305 | unaway | unaway
| 306 | away | away
| 307 | whois | whois (registered nick)
| 310 | whois | whois (help mode)
| 311 | whois | whois (user)
| 312 | whois | whois (server)
| 313 | whois | whois (operator)
| 314 | whowas | whowas
| 315 | who | who (end)
| 317 | whois | whois (idle)
| 318 | whois | whois (end)
| 319 | whois | whois (channels)
| 320 | whois | whois (identified user)
| 321 | list | list (start)
| 322 | list | list (channel)
| 323 | list | list (end)
| 326 | whois | whois (has oper privs)
| 327 | whois | whois (host)
| 330 | whois | whois (logged in as)
| 335 | whois | whois (is a bot on)
| 338 | whois | whois (host)
| 341 | | inviting
| 344 | reop | channel reop
| 345 | reop | channel reop (end)
| 351 | | server version
| 352 | who | who
| 369 | whowas | whowas (end)
| 378 | whois | whois (connecting from)
| 379 | whois | whois (using modes)
| 432 | | erroneous nickname
| 433 | | nickname already in use
| 438 | | not authorized to change nickname
| 671 | whois | whois (secure connection)
| 901 | | you are now logged in
|========================================
Other numeric commands can be customized as well.
Message can be prefixed by server name to be specific to an irc server
(for example: `freenode.whois`).
Some examples:
* display result of `/whois` on private buffer:
----------------------------------------
/set irc.msgbuffer.whois private
----------------------------------------
* restore default buffer for whois (server buffer):
----------------------------------------
/unset irc.msgbuffer.whois
----------------------------------------
* display invitation on current buffer, only for "freenode" server:
----------------------------------------
/set irc.msgbuffer.freenode.invite current
----------------------------------------
* display message "303" (ison) on WeeChat "core" buffer:
----------------------------------------
/set irc.msgbuffer.303 weechat
----------------------------------------
[[logger_plugin]]
Logger plugin
~~~~~~~~~~~~~
+5
View File
@@ -73,6 +73,11 @@
** type: entier
** valeurs: buffer_plugin, buffer_name (valeur par défaut: buffer_plugin)
* *irc.look.msgbuffer_fallback*
** description: tampon cible par défaut pour les options msgbuffer quand la cible est "private" et que le tampon privé n'est pas trouvé
** type: entier
** valeurs: current, server (valeur par défaut: current)
* *irc.look.nick_completion_smart*
** description: complétion intelligente pour les pseudos (complète d'abord avec les personnes qui ont parlé récemment)
** type: entier
+7 -7
View File
@@ -4452,14 +4452,14 @@ Paramètres :
* 'prefix' : nom du préfixe :
[width="70%",cols="^2,^1,^3,5",options="header"]
[width="70%",cols="^2e,^1l,^3,5",options="header"]
|========================================
| Préfixe | Valeur | Couleur | Description
| 'error' | `=!=` | jaune ("yellow") | message d'erreur
| 'network' | `--` | violet ("magenta") | message du réseau
| 'action' | `*` | blanc ("white") | action personnelle
| 'join' | `-->` | vert clair ("lightgreen") | quelqu'un a rejoint la discussion
| 'quit' | `<--` | rouge clair ("lightred") | quelqu'un a quitté la discussion
| Préfixe | Valeur | Couleur | Description
| error | =!= | jaune ("yellow") | message d'erreur
| network | -- | violet ("magenta") | message du réseau
| action | * | blanc ("white") | action personnelle
| join | --> | vert clair ("lightgreen") | quelqu'un a rejoint la discussion
| quit | <-- | rouge clair ("lightred") | quelqu'un a quitté la discussion
|========================================
[NOTE]
+139 -38
View File
@@ -240,68 +240,68 @@ L'écran est composé des zones suivantes :
La barre 'status' contient les objets (items) suivants par défaut :
[width="100%",cols="^3,^3,10",options="header"]
[width="100%",cols="^3,^3l,10",options="header"]
|========================================
| Objet (item) | Exemple | Description
| Objet (item) | Exemple | Description
| time | `[12:55]` |
| time | [12:55] |
heure
| buffer_count | `[4]` |
| buffer_count | [4] |
nombre de tampons ouverts
| buffer_plugin | `[irc/freenode]` |
| buffer_plugin | [irc/freenode] |
extension du tampon courant (l'extension irc peut afficher le nom du serveur
IRC auquel est rattaché ce tampon)
| buffer_number | `3` |
| buffer_number | 3 |
numéro du tampon courant
| buffer_name | `freenode/#test(+n)` |
| buffer_name | #test(+n) |
nom du tampon courant
| buffer_nicklist_count | `{5}` |
| buffer_nicklist_count | {5} |
nombre de pseudos dans la liste des pseudos
| buffer_filter | `*` |
| buffer_filter | * |
indicateur de filtrage : `*` signifie que des lignes sont filtrées (cachées),
une valeur vide signifie que toutes les lignes sont affichées
| lag | `[Lag: 2.5]` |
| lag | [Lag: 2.5] |
indicateur de "lag" (ralentissements réseau), en secondes (caché si le lag
est faible)
| hotlist | `[Act: 4,2]` |
| hotlist | [Act: 4,2] |
liste des tampons où il y a de l'activité (messages non lus)
| completion | `abc(2) def(5)` |
| completion | abc(2) def(5) |
liste des mots pour la complétion, avec le nombre de complétions possibles
pour chaque mot
| scroll | `-PLUS(50)-` |
| scroll | -PLUS(50)- |
indicateur de scroll, avec le nombre de lignes sous la dernière ligne
affichée
|========================================
La barre 'input' contient les objets (items) suivants par défaut :
[width="100%",cols="^3,^6,8",options="header"]
[width="100%",cols="^3,^6l,8",options="header"]
|========================================
| Objet (item) | Exemple | Description
| input_paste | `[Coller 7 lignes ? [ctrl-Y] Oui [ctrl-N] Non]` |
| input_paste | [Coller 7 lignes ? [ctrl-Y] Oui [ctrl-N] Non] |
question à l'utilisateur pour coller des lignes
| input_prompt | `[pseudo]` |
| input_prompt | [pseudo] |
prompt (pseudo pour l'extension irc)
| away | `(absent)` |
| away | (absent) |
indicateur d'absence
| input_search | `[Recherche texte]` |
| input_search | [Recherche texte] |
indicateur de recherche de texte
| input_text | `bla bla...` |
| input_text | bla bla... |
texte entré
|========================================
@@ -1090,33 +1090,134 @@ Si vous voulez restaurer la réponse CTCP standard, alors supprimez l'option :
Les codes suivants peuvent être utilisés dans les chaînes et sont
automatiquement remplacées par WeeChat lors de la réponse au CTCP :
[width="100%",cols="^2,4,8",options="header"]
[width="100%",cols="^2l,4,8l",options="header"]
|========================================
| Code | Description | Valeur / exemple
| `$clientinfo` | liste des CTCP supportés | `ACTION DCC CLIENTINFO FINGER PING SOURCE TIME USERINFO VERSION`
| `$version` | version de WeeChat | `0.3.0`
| `$compilation` | date de compi lation WeeChat | `Sep 13 2009`
| `$osinfo` | information sur l'OS | `Linux 2.6.31 / i686`
| `$site` | site WeeChat | `http://www.weechat.org`
| `$download` | site WeeChat, page téléchargement | `http://www.weechat.org/download`
| `$time` | date/heure courante | `Sun Sep 13 15:48:31 2009`
| `$username` | nom d'utilisateur sur le serveur | `pseudo`
| `$realname` | nom réel sur le serveur | `Mon nom`
| Code | Description | Valeur / exemple
| $clientinfo | liste des CTCP supportés | ACTION DCC CLIENTINFO FINGER PING SOURCE TIME USERINFO VERSION
| $version | version de WeeChat | 0.3.0
| $compilation | date de compi lation WeeChat | Sep 13 2009
| $osinfo | information sur l'OS | Linux 2.6.31 / i686
| $site | site WeeChat | http://www.weechat.org
| $download | site WeeChat, page téléchargement | http://www.weechat.org/download
| $time | date/heure courante | Sun Sep 13 15:48:31 2009
| $username | nom d'utilisateur sur le serveur | pseudo
| $realname | nom réel sur le serveur | Mon nom
|========================================
Si les options CTCP ne sont pas définies (par défaut), les réponses CTCP sont :
[width="100%",cols="^2,4,8",options="header"]
[width="100%",cols="^2,4l,8l",options="header"]
|========================================
| CTCP | Format de réponse | Exemple
| CLIENTINFO | `$clientinfo` | `ACTION DCC CLIENTINFO FINGER PING SOURCE TIME USERINFO VERSION`
| FINGER | `WeeChat $version` | `WeeChat 0.3.0`
| SOURCE | `$download` | `http://www.weechat.org/download`
| TIME | `$time` | `Sun Sep 13 15:48:31 2009`
| USERINFO | `$username ($realname)` | `pseudo (Mon nom)`
| VERSION | `WeeChat $version ($compilation)` | `WeeChat 0.3.0 (Sep 13 2009)`
| CTCP | Format de réponse | Exemple
| CLIENTINFO | $clientinfo | ACTION DCC CLIENTINFO FINGER PING SOURCE TIME USERINFO VERSION
| FINGER | WeeChat $version | WeeChat 0.3.0
| SOURCE | $download | http://www.weechat.org/download
| TIME | $time | Sun Sep 13 15:48:31 2009
| USERINFO | $username ($realname) | pseudo (Mon nom)
| VERSION | WeeChat $version ($compilation) | WeeChat 0.3.0 (Sep 13 2009)
|========================================
[[target_buffer]]
Tampon cible pour les messages IRC
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Il est possible de personnaliser le tampon cible pour les messages IRC (le
tampon utilisé pour afficher le message) avec les options `irc.msgbuffer.*`.
Pour certains messages IRC (voir la liste ci-dessous), vous pouvez utiliser
la valeur :
current::
tampon courant (si c'est un tampon IRC, sinon sur le tampon du serveur)
private::
tampon privé pour le pseudo, ou le tampon courant s'il n'est pas trouvé
(selon l'option 'irc.look.msgbuffer_fallback')
weechat::
tampon "core" WeeChat
Par défaut, le tampon du serveur est utilisé (quand l'option n'est pas définie).
Liste non exhaustive des messages ou alias que vous pouvez paramétrer :
[width="50%",cols="^1m,^1m,3",options="header"]
|========================================
| message | alias | description
| invite | | invité sur un canal
| notice | | notice
| wallops | | wallops
| 221 | | chaîne de mode utilisateur
| 275 | whois | whois (connexion sécurisée)
| 303 | | ison
| 305 | unaway | non absent
| 306 | away | absent
| 307 | whois | whois (pseudo enregistré)
| 310 | whois | whois (mode aide)
| 311 | whois | whois (utilisateur)
| 312 | whois | whois (serveur)
| 313 | whois | whois (opérateur)
| 314 | whowas | whowas
| 315 | who | who (fin)
| 317 | whois | whois (inactivité)
| 318 | whois | whois (fin)
| 319 | whois | whois (canaux)
| 320 | whois | whois (utilisateur identifié)
| 321 | list | list (début)
| 322 | list | list (canal)
| 323 | list | list (fin)
| 326 | whois | whois (a les privilèges oper)
| 327 | whois | whois (machine)
| 330 | whois | whois (identifié comme)
| 335 | whois | whois (est un robot sur)
| 338 | whois | whois (machine)
| 341 | | invitation
| 344 | reop | reop canal
| 345 | reop | reop canal (fin)
| 351 | | version du serveur
| 352 | who | who
| 369 | whowas | whowas (fin)
| 378 | whois | whois (connection depuis)
| 379 | whois | whois (utilise les modes)
| 432 | | pseudo erroné
| 433 | | pseudo déjà en cours d'utilisation
| 438 | | pas autorisé à changer de pseudo
| 671 | whois | whois (connexion sécurisée)
| 901 | | vous êtes maintenant identifié
|========================================
Les autres messages numériques peuvent être paramétrés de la même manière.
Le message peut être préfixé par le nom du serveur pour être spécifique à un
serveur IRC (par exemple: `freenode.whois`).
Quelques exemples:
* afficher le résultat de `/whois` sur le tampon privé:
----------------------------------------
/set irc.msgbuffer.whois private
----------------------------------------
* restaurer le tampon par défaut pour whois (tampon du serveur):
----------------------------------------
/unset irc.msgbuffer.whois
----------------------------------------
* afficher une invitation sur le tampon courant, pour le serveur "freenode"
seulement :
----------------------------------------
/set irc.msgbuffer.freenode.invite current
----------------------------------------
* afficher le message "303" (ison) sur le tampon "core" WeeChat:
----------------------------------------
/set irc.msgbuffer.303 weechat
----------------------------------------
[[logger_plugin]]
Extension Logger
~~~~~~~~~~~~~~~~
+5
View File
@@ -73,6 +73,11 @@
** tipo: intero
** valori: buffer_plugin, buffer_name (valore predefinito: buffer_plugin)
* *irc.look.msgbuffer_fallback*
** descrizione: default target buffer for msgbuffer options when target is private and that private buffer is not found
** tipo: intero
** valori: current, server (valore predefinito: current)
* *irc.look.nick_completion_smart*
** descrizione: completamento intelligente per i nick (usando prima chi ha parlato per ultimo)
** tipo: intero
+137 -38
View File
@@ -240,67 +240,67 @@ Lo schermo è composto dalle seguenti aree:
La barra 'stato' ha i seguenti elementi predefiniti:
[width="100%",cols="^3,^3,10",options="header"]
[width="100%",cols="^3,^3l,10",options="header"]
|=======================================
| Elemento | Esempio | Descrizione
| Elemento | Esempio | Descrizione
| time | `[12:55]` |
| time | [12:55] |
ora
| buffer_count | `[4]` |
| buffer_count | [4] |
numero di buffer aperti
| buffer_plugin | `[irc]` |
| buffer_plugin | [irc/freenode] |
plugin del buffer attivo (il plugin irc può aggiungere il nome del server irc
usato dal buffer)
| buffer_number | `3` |
| buffer_number | 3 |
numero del buffer corrente
| buffer_name | `freenode/#test(+n)` |
| buffer_name | #test(+n) |
nome del buffer attivo
| buffer_nicklist_count | `{5}` |
| buffer_nicklist_count | {5} |
numero di nick nella lista nick
| buffer_filter | `*` |
| buffer_filter | * |
indicatore filtraggio: `*` significa che alcune righe sono filtrate (nascoste),
valori vuoti indicano che tutte le righe sono visualizzate
| lag | `[Ritardo: 2.5]` |
| lag | [Ritardo: 2.5] |
indicatore ritardo, in secondi (nascosto se il ritardo è basso)
| hotlist | `[Attività: 4,2]` |
| hotlist | [Attività: 4,2] |
elenco dei buffer con attività (messaggi non letti)
| completion | `abc(2) def(5)` |
| completion | abc(2) def(5) |
elenco di parole per il completamento, con il numero di completamenti
possibili per ogni parola
| scroll | `-ANCORA(50)-` |
| scroll | -ANCORA(50)- |
indicatore di scorrimento, con il numero di righe sotto l'ultima
riga visualizzata
|=======================================
La barra 'input' ha i seguenti elementi predefiniti:
[width="100%",cols="^3,^6,8",options="header"]
[width="100%",cols="^3,^6l,8",options="header"]
|=======================================
| Elemento | Esempio | Descrizione
| input_paste | `[Incollare 7 righe ? [ctrl-Y] Sì [ctrl-N] No]` |
| input_paste | [Incollare 7 righe ? [ctrl-Y] Sì [ctrl-N] No] |
chiede all'utente se incollare le righe
| input_prompt | `[nick]` |
| input_prompt | [nick] |
prompt per l'input (nick per il plugin irc)
| away | `(assente)` |
| away | (assente) |
indicatore di assenza
| input_search | `[Ricerca testo]` |
| input_search | [Ricerca testo] |
indicatore di ricerca testo
| input_text | `bla bla...` |
| input_text | bla bla... |
testo in input
|=======================================
@@ -1078,34 +1078,133 @@ l'opzione:
I codici seguenti possono essere utilizzati nelle stringhe e vengono estese
automaticamente da WeeChat quando si risponde alle CTCP
[width="100%",cols="^2,4,8",options="header"]
[width="100%",cols="^2l,4,8l",options="header"]
|=======================================
| Codice | Descrizione | Valore/esempio
| `$clientinfo` | elenco di CTCP supportate | `ACTION DCC CLIENTINFO FINGER PING SOURCE TIME USERINFO VERSION`
| `$version` | versione di WeeChat | `0.3.0`
| `$compilation` | data di compilazione di WeeChat | `Sep 13 2009`
| `$osinfo` | informazioni sull'OS | `Linux 2.6.31 / i686`
| `$site` | sito di WeeChat | `http://www.weechat.org`
| `$download` | sito di WeeChat, pagina di download | `http://www.weechat.org/download`
| `$time` | data/ora correnti | `Sun Sep 13 15:48:31 2009`
| `$username` | nome utente sul server IRC | `nick`
| `$realname` | nome reale sul server IRC | `Mio nome`
| Codice | Descrizione | Valore/esempio
| $clientinfo | elenco di CTCP supportate | ACTION DCC CLIENTINFO FINGER PING SOURCE TIME USERINFO VERSION
| $version | versione di WeeChat | 0.3.0
| $compilation | data di compilazione di WeeChat | Sep 13 2009
| $osinfo | informazioni sull'OS | Linux 2.6.31 / i686
| $site | sito di WeeChat | http://www.weechat.org
| $download | sito di WeeChat, pagina di download | http://www.weechat.org/download
| $time | data/ora correnti | Sun Sep 13 15:48:31 2009
| $username | nome utente sul server IRC | nick
| $realname | nome reale sul server IRC | Mio nome
|=======================================
Se le opzioni CTCP non sono definite (comportamento predefinito),
le risposte CTCP sono:
[width="100%",cols="^2,4,8",options="header"]
[width="100%",cols="^2,4l,8l",options="header"]
|=======================================
| CTCP | Formato risposta | Esempio
| CLIENTINFO | `$clientinfo` | `ACTION DCC CLIENTINFO FINGER PING SOURCE TIME USERINFO VERSION`
| FINGER | `WeeChat $version` | `WeeChat 0.3.0`
| SOURCE | `$download` | `http://www.weechat.org/download`
| TIME | `$time` | `Sun Sep 13 15:48:31 2009`
| USERINFO | `$username ($realname)` | `nick (Mio nome)`
| VERSION | `WeeChat $version ($compilation)` | `WeeChat 0.3.0 (Sep 13 2009)`
| CTCP | Formato risposta | Esempio
| CLIENTINFO | $clientinfo | ACTION DCC CLIENTINFO FINGER PING SOURCE TIME USERINFO VERSION
| FINGER | WeeChat $version | WeeChat 0.3.0
| SOURCE | $download | http://www.weechat.org/download
| TIME | $time | Sun Sep 13 15:48:31 2009
| USERINFO | $username ($realname) | nick (Mio nome)
| VERSION | WeeChat $version ($compilation) | WeeChat 0.3.0 (Sep 13 2009)
|=======================================
[[target_buffer]]
Target buffer for IRC messages
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
It is possible to customize target buffer for IRC messages (buffer used to
display message) with options `irc.msgbuffer.*`.
For some IRC messages (see list below), you can use value:
current::
current buffer (if it's IRC buffer, or on server buffer by default)
private::
private buffer for nick, or current buffer if not found (according
to option 'irc.look.msgbuffer_fallback')
weechat::
WeeChat "core" buffer
Default is server buffer (when option is not set).
Non-exhaustive list of IRC messages or alias that you can customize:
[width="50%",cols="^1m,^1m,3",options="header"]
|========================================
| message | alias | description
| invite | | invited on a channel
| notice | | notice
| wallops | | wallops
| 221 | | user mode string
| 275 | whois | whois (secure connection)
| 303 | | ison
| 305 | unaway | unaway
| 306 | away | away
| 307 | whois | whois (registered nick)
| 310 | whois | whois (help mode)
| 311 | whois | whois (user)
| 312 | whois | whois (server)
| 313 | whois | whois (operator)
| 314 | whowas | whowas
| 315 | who | who (end)
| 317 | whois | whois (idle)
| 318 | whois | whois (end)
| 319 | whois | whois (channels)
| 320 | whois | whois (identified user)
| 321 | list | list (start)
| 322 | list | list (channel)
| 323 | list | list (end)
| 326 | whois | whois (has oper privs)
| 327 | whois | whois (host)
| 330 | whois | whois (logged in as)
| 335 | whois | whois (is a bot on)
| 338 | whois | whois (host)
| 341 | | inviting
| 344 | reop | channel reop
| 345 | reop | channel reop (end)
| 351 | | server version
| 352 | who | who
| 369 | whowas | whowas (end)
| 378 | whois | whois (connecting from)
| 379 | whois | whois (using modes)
| 432 | | erroneous nickname
| 433 | | nickname already in use
| 438 | | not authorized to change nickname
| 671 | whois | whois (secure connection)
| 901 | | you are now logged in
|========================================
Other numeric commands can be customized as well.
Message can be prefixed by server name to be specific to an irc server
(for example: `freenode.whois`).
Some examples:
* display result of `/whois` on private buffer:
----------------------------------------
/set irc.msgbuffer.whois private
----------------------------------------
* restore default buffer for whois (server buffer):
----------------------------------------
/unset irc.msgbuffer.whois
----------------------------------------
* display invitation on current buffer, only for "freenode" server:
----------------------------------------
/set irc.msgbuffer.freenode.invite current
----------------------------------------
* display message "303" (ison) on WeeChat "core" buffer:
----------------------------------------
/set irc.msgbuffer.303 weechat
----------------------------------------
[[logger_plugin]]
Plugin Logger
~~~~~~~~~~~~~