mirror of
https://github.com/weechat/weechat.git
synced 2026-07-01 07:16:37 +02:00
Add anti-flood for many IRC commands/messages
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user