mirror of
https://github.com/irssi/irssi.git
synced 2026-08-17 15:42:26 +02:00
increase disconnect buffer and get rid of some magic 510 values
This commit is contained in:
parent
1c99bf78c7
commit
27546354ca
5 changed files with 15 additions and 12 deletions
|
|
@ -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 < 505)
|
||||
if (cmdlen < MAX_IRC_MESSAGE_LEN - 5 /* strlen("JOIN ") */)
|
||||
continue;
|
||||
}
|
||||
if (outchans->len > 0) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue