1
0
mirror of https://github.com/weechat/weechat.git synced 2026-07-05 01:45:42 +02:00

relay: redirect some irc messages from clients to hide output (bug #33516)

Messages redirected by relay plugin: mode, ison, list, names, topic, who,
whois, whowas, time, userhost.
This commit is contained in:
Sebastien Helleu
2012-03-18 08:58:19 +01:00
parent b69e82cb94
commit d87eacccc9
5 changed files with 219 additions and 4 deletions
+3 -1
View File
@@ -1,7 +1,7 @@
WeeChat ChangeLog
=================
Sébastien Helleu <flashcode@flashtux.org>
v0.3.8-dev, 2012-03-17
v0.3.8-dev, 2012-03-18
Version 0.3.8 (under dev!)
@@ -30,6 +30,8 @@ Version 0.3.8 (under dev!)
* irc: add support of "external" SASL mechanism (task #11864)
* irc: close server buffer when server is deleted
* irc: add search for lower case nicks in option irc.look.nick_color_force
* relay: redirect some irc messages from clients to hide output (messages: mode,
ison, list, names, topic, who, whois, whowas, time, userhost) (bug #33516)
* relay: add "date_printed" and "highlight" in signal "_buffer_line_added"
(WeeChat protocol)
* rmodifier: add option "release" in default rmodifier "nickserv" (used to hide
File diff suppressed because it is too large Load Diff
+1
View File
@@ -37,6 +37,7 @@ struct t_relay_irc_data
struct t_hook *hook_signal_irc_in2; /* signal "irc_in2" */
struct t_hook *hook_signal_irc_outtags; /* signal "irc_outtags" */
struct t_hook *hook_signal_irc_disc; /* signal "irc_disconnected" */
struct t_hook *hook_hsignal_irc_redir; /* hsignal "irc_redirection_..."*/
};
extern void relay_irc_recv (struct t_relay_client *client,
+20
View File
@@ -99,6 +99,26 @@ relay_client_search_by_number (int number)
return NULL;
}
/*
* relay_client_search_by_id: search a client by id
*/
struct t_relay_client *
relay_client_search_by_id (int id)
{
struct t_relay_client *ptr_client;
for (ptr_client = relay_clients; ptr_client;
ptr_client = ptr_client->next_client)
{
if (ptr_client->id == id)
return ptr_client;
}
/* client not found */
return NULL;
}
/*
* relay_client_recv_cb: read data from a client
*/
+1
View File
@@ -71,6 +71,7 @@ extern int relay_client_count;
extern int relay_client_valid (struct t_relay_client *client);
extern struct t_relay_client *relay_client_search_by_number (int number);
extern struct t_relay_client *relay_client_search_by_id (int id);
extern int relay_client_recv_cb (void *arg_client, int fd);
extern struct t_relay_client *relay_client_new (int sock, const char *address,
struct t_relay_server *server);