1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-27 13:26:38 +02:00

irc: add support of "LINELEN" in message 005 (max message length in bytes) (closes #1927)

This commit is contained in:
Sébastien Helleu
2023-05-14 09:16:40 +02:00
parent 1116474c45
commit 128fbe0d5b
7 changed files with 25 additions and 4 deletions
+8
View File
@@ -3886,6 +3886,14 @@ IRC_PROTOCOL_CALLBACK(005)
/* save prefix */
irc_server_set_prefix_modes_chars (server, params[i] + 7);
}
else if (strncmp (params[i], "LINELEN=", 8) == 0)
{
/* save max message length */
error = NULL;
value = strtol (params[i] + 8, &error, 10);
if (error && !error[0] && (value > 0))
server->msg_max_length = (int)value;
}
else if (strncmp (params[i], "NICKLEN=", 8) == 0)
{
/* save max nick length */