sending of tag messages and customisable maximum irc message length

This commit is contained in:
ailin-nemui 2019-08-12 23:41:18 +02:00
commit da9adec47f
6 changed files with 69 additions and 18 deletions

View file

@ -142,7 +142,7 @@ static void irc_channels_join(IRC_SERVER_REC *server, const char *data,
/* don't try to send too long lines
make sure it's not longer than 510
so 510 - strlen("JOIN ") = 505 */
if (cmdlen < MAX_IRC_MESSAGE_LEN - 5 /* strlen("JOIN ") */)
if (cmdlen < server->max_message_len - 5 /* strlen("JOIN ") */)
continue;
}
if (outchans->len > 0) {