mirror of
https://github.com/weechat/weechat.git
synced 2026-06-28 13:56:37 +02:00
irc: add alias "whois" for target buffer of messages 401/402 (closes #54)
This commit is contained in:
@@ -97,6 +97,7 @@ http://weechat.org/files/releasenotes/ReleaseNotes-devel.html[release notes]
|
||||
* alias: change default command for alias /beep to "/print -beep"
|
||||
* exec: add exec plugin: new command /exec and file exec.conf
|
||||
* guile: fix module used after unload of a script
|
||||
* irc: add alias "whois" for target buffer of messages 401/402 (closes #54)
|
||||
* irc: add tag with host ("host_xxx") in IRC messages displayed (task #12018)
|
||||
* irc: allow many fingerprints in server option ssl_fingerprint (closes #49)
|
||||
* irc: rename option irc.look.item_channel_modes_hide_key to
|
||||
|
||||
@@ -2480,6 +2480,10 @@ Unvollständige Liste der IRC Nachrichten bzw. Alias die angepasst werden könne
|
||||
| 369 | whowas | whowas (Ende)
|
||||
| 378 | whois | whois (Verbindung von)
|
||||
| 379 | whois | whois (genutzte Modi)
|
||||
// TRANSLATION MISSING
|
||||
| 401 | whois | no such nick/channel
|
||||
// TRANSLATION MISSING
|
||||
| 402 | whois | no such server
|
||||
| 432 | | fehlerhafter Nickname
|
||||
| 433 | | Nickname wird schon verwendet
|
||||
| 438 | | nicht autorisiert um Nicknamen zu ändern
|
||||
|
||||
@@ -2429,6 +2429,8 @@ Non-comprehensive list of IRC messages or alias that you can customize:
|
||||
| 369 | whowas | whowas (end)
|
||||
| 378 | whois | whois (connecting from)
|
||||
| 379 | whois | whois (using modes)
|
||||
| 401 | whois | no such nick/channel
|
||||
| 402 | whois | no such server
|
||||
| 432 | | erroneous nickname
|
||||
| 433 | | nickname already in use
|
||||
| 438 | | not authorized to change nickname
|
||||
|
||||
@@ -2509,6 +2509,8 @@ Liste non exhaustive des messages ou alias que vous pouvez paramétrer :
|
||||
| 369 | whowas | whowas (fin)
|
||||
| 378 | whois | whois (connexion depuis)
|
||||
| 379 | whois | whois (utilise les modes)
|
||||
| 401 | whois | pas de tel pseudo/canal
|
||||
| 402 | whois | pas de tel serveur
|
||||
| 432 | | pseudo erroné
|
||||
| 433 | | pseudo déjà en cours d'utilisation
|
||||
| 438 | | pas autorisé à changer de pseudo
|
||||
|
||||
@@ -2536,6 +2536,10 @@ personalizzare:
|
||||
| 369 | whowas | whowas (fine)
|
||||
| 378 | whois | whois (connesso da)
|
||||
| 379 | whois | whois (usa le modalità)
|
||||
// TRANSLATION MISSING
|
||||
| 401 | whois | no such nick/channel
|
||||
// TRANSLATION MISSING
|
||||
| 402 | whois | no such server
|
||||
| 432 | | nick errato
|
||||
| 433 | | nick già utilizzato
|
||||
| 438 | | non autorizzato a cambiare nick
|
||||
|
||||
@@ -2428,6 +2428,10 @@ weechat::
|
||||
| 369 | whowas | whowas (終了)
|
||||
| 378 | whois | whois (接続元)
|
||||
| 379 | whois | whois (モード)
|
||||
// TRANSLATION MISSING
|
||||
| 401 | whois | no such nick/channel
|
||||
// TRANSLATION MISSING
|
||||
| 402 | whois | no such server
|
||||
| 432 | | erroneous ニックネーム
|
||||
| 433 | | ニックネームが使用されています
|
||||
| 438 | | ニックネームを変更する権限がありません
|
||||
|
||||
@@ -2453,6 +2453,10 @@ Niepełna lista wiadomości IRC lub aliasów jakie można dostosować:
|
||||
| 369 | whowas | whowas (koniec)
|
||||
| 378 | whois | whois (łączy się z)
|
||||
| 379 | whois | whois (używa trybów)
|
||||
// TRANSLATION MISSING
|
||||
| 401 | whois | no such nick/channel
|
||||
// TRANSLATION MISSING
|
||||
| 402 | whois | no such server
|
||||
| 432 | | błędna nazwa użytkownika
|
||||
| 433 | | nazwa użytkownika już zajęta
|
||||
| 438 | | brak uprawnień do zmiany nicka
|
||||
|
||||
@@ -508,21 +508,26 @@ IRC_PROTOCOL_CALLBACK(generic_error)
|
||||
|
||||
ptr_buffer = (ptr_channel) ? ptr_channel->buffer : server->buffer;
|
||||
|
||||
weechat_printf_date_tags (irc_msgbuffer_get_target_buffer (server, NULL,
|
||||
command, NULL,
|
||||
ptr_buffer),
|
||||
date,
|
||||
irc_protocol_tags (command, NULL, NULL, NULL),
|
||||
"%s%s%s%s%s%s",
|
||||
weechat_prefix ("network"),
|
||||
(ptr_channel && chan_nick
|
||||
&& (irc_server_strcasecmp (server, chan_nick,
|
||||
ptr_channel->name) == 0)) ?
|
||||
IRC_COLOR_CHAT_CHANNEL : "",
|
||||
(chan_nick) ? chan_nick : "",
|
||||
IRC_COLOR_RESET,
|
||||
(chan_nick) ? ": " : "",
|
||||
args);
|
||||
weechat_printf_date_tags (
|
||||
irc_msgbuffer_get_target_buffer (
|
||||
server,
|
||||
NULL,
|
||||
command,
|
||||
((strcmp (command, "401") == 0) || (strcmp (command, "402") == 0)) ?
|
||||
"whois" : NULL,
|
||||
ptr_buffer),
|
||||
date,
|
||||
irc_protocol_tags (command, NULL, NULL, NULL),
|
||||
"%s%s%s%s%s%s",
|
||||
weechat_prefix ("network"),
|
||||
(ptr_channel && chan_nick
|
||||
&& (irc_server_strcasecmp (server, chan_nick,
|
||||
ptr_channel->name) == 0)) ?
|
||||
IRC_COLOR_CHAT_CHANNEL : "",
|
||||
(chan_nick) ? chan_nick : "",
|
||||
IRC_COLOR_RESET,
|
||||
(chan_nick) ? ": " : "",
|
||||
args);
|
||||
|
||||
return WEECHAT_RC_OK;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user