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

Add anti-flood for many IRC commands/messages

This commit is contained in:
Sebastien Helleu
2010-02-03 23:29:44 +01:00
parent 3d4c76cecc
commit 1d00db2d14
3 changed files with 249 additions and 81 deletions
File diff suppressed because it is too large Load Diff
+4 -1
View File
@@ -601,7 +601,10 @@ irc_protocol_cmd_mode (struct t_irc_server *server, const char *command,
if (ptr_channel)
{
if (irc_mode_channel_set (server, ptr_channel, pos_modes))
irc_server_sendf (server, 0, "MODE %s", ptr_channel->name);
{
irc_server_sendf (server, IRC_SERVER_OUTQUEUE_PRIO_LOW,
"MODE %s", ptr_channel->name);
}
}
ptr_nick = irc_nick_search (ptr_channel, nick);
if (!irc_ignore_check (server, ptr_channel, nick, host))
+8 -2
View File
@@ -2819,11 +2819,17 @@ irc_server_autojoin_channels (struct t_irc_server *server)
if (ptr_channel->type == IRC_CHANNEL_TYPE_CHANNEL)
{
if (ptr_channel->key)
irc_server_sendf (server, 0, "JOIN %s %s",
{
irc_server_sendf (server, IRC_SERVER_OUTQUEUE_PRIO_LOW,
"JOIN %s %s",
ptr_channel->name, ptr_channel->key);
}
else
irc_server_sendf (server, 0, "JOIN %s",
{
irc_server_sendf (server, IRC_SERVER_OUTQUEUE_PRIO_LOW,
"JOIN %s",
ptr_channel->name);
}
}
}
server->reconnect_join = 0;