Add new signals "irc_raw_in" and "irc_raw_in2" (sent for all IRC messages, even if ignored with /ignore)

v2.8-utf8proc
Sebastien Helleu 2010-03-21 13:06:33 +01:00
parent c0d050f7cc
commit 032a5ddef5
4 changed files with 34 additions and 7 deletions

View File

@ -1,7 +1,7 @@
WeeChat ChangeLog
=================
FlashCode <flashcode@flashtux.org>
v0.3.2-dev, 2010-03-20
v0.3.2-dev, 2010-03-21
Version 0.3.2 (under dev!)
@ -53,7 +53,8 @@ Version 0.3.2 (under dev!)
* irc: fix bug with /away -all: set or unset future away for disconnected
servers (bug #29022)
* irc: bug with prefix "!" for mode "a" (channel admin) (bug #29109)
* irc: do not send signals "irc_in" and "irc_in2" when messages are ignored
* irc: do not send signals "irc_in" and "irc_in2" when messages are ignored,
add new signals "irc_raw_in" and "irc_raw_in2"
* irc: add option irc.network.connection_timeout (timeout between TCP connection
to server and reception of message 001)
* irc: add options irc.look.smart_filter_join and irc.look.smart_filter_quit

View File

@ -5600,10 +5600,20 @@ Arguments:
| Plugin | Signal | Arguments | Description
| irc | xxx,irc_in_yyy ^(1)^ | string: message |
irc message from server (before irc plugin uses it)
irc message from server (before irc plugin uses it,
signal sent only if message is *not* ignored)
| irc | xxx,irc_in2_yyy ^(1)^ | string: message |
irc message from server (after irc plugin uses it)
irc message from server (after irc plugin uses it,
signal sent only if message is *not* ignored)
| irc | xxx,irc_raw_in_yyy ^(1)^ | string: message |
irc message from server (before irc plugin uses it,
signal sent even if message is ignored)
| irc | xxx,irc_raw_in2_yyy ^(1)^ | string: message |
irc message from server (after irc plugin uses it,
signal sent even if message is ignored)
| irc | xxx,irc_out_yyy ^(1)^ | string: message |
irc message sent to server

View File

@ -5674,10 +5674,20 @@ Paramètres :
| Extension | Signal | Paramètres | Description
| irc | xxx,irc_in_yyy ^(1)^ | chaîne : message |
message irc du serveur (avant utilisation par l'extension irc)
message irc du serveur (avant utilisation par l'extension irc,
signal envoyé uniquement si le message n'est *pas* ignoré)
| irc | xxx,irc_in2_yyy ^(1)^ | chaîne : message |
message irc du serveur (après utilisation par l'extension irc)
message irc du serveur (après utilisation par l'extension irc,
signal envoyé uniquement si le message n'est *pas* ignoré)
| irc | xxx,irc_raw_in_yyy ^(1)^ | chaîne : message |
message irc du serveur (avant utilisation par l'extension irc,
signal envoyé même si le message est ignoré)
| irc | xxx,irc_raw_in2_yyy ^(1)^ | chaîne : message |
message irc du serveur (après utilisation par l'extension irc,
signal envoyé même si le message est ignoré)
| irc | xxx,irc_out_yyy ^(1)^ | chaîne : message |
message irc envoyé au serveur

View File

@ -3974,7 +3974,10 @@ irc_protocol_recv_command (struct t_irc_server *server,
ptr_channel = irc_channel_search (server, msg_channel);
message_ignored = irc_ignore_check (server, ptr_channel, nick, host);
/* send signal with received command (if message is not ignored) */
/* send signal with received command, even if command is ignored */
irc_server_send_signal (server, "irc_raw_in", msg_command, irc_message);
/* send signal with received command, only if message is not ignored */
if (!message_ignored)
irc_server_send_signal (server, "irc_in", msg_command, irc_message);
@ -4055,6 +4058,9 @@ irc_protocol_recv_command (struct t_irc_server *server,
irc_server_send_signal (server, "irc_in2", msg_command, irc_message);
}
/* send signal with received command, even if command is ignored */
irc_server_send_signal (server, "irc_raw_in2", msg_command, irc_message);
end:
if (nick)
free (nick);