diff options
author | C. McEnroe | 2020-06-24 13:36:24 -0400 |
---|---|---|
committer | C. McEnroe | 2020-06-24 13:36:24 -0400 |
commit | 94fb9798c5476a9a3111f3982f357920b18c2fd0 (patch) | |
tree | 7f115ff5bd80a4190081fe02df80f209b950ad27 /irc.c | |
parent | 4fb94a1a223867af1db5252ab39ccc56c585fccb (diff) |
Bump ParamCap to 254
Apparently IRCds have decided that the 15-parameter limit doesn't matter anymore. 254 is the maximum number of single-byte parameters (following a single-byte command) which fit in a 512-byte CR-LF-terminated line. When everyone decides that the 512-byte line length limit doesn't matter either, I will delete my software and people can use some JavaScript garbage instead. This makes struct Message 2080 bytes, but there's only ever one or two of them around at once. Avoid passing it by value to handle.
Diffstat (limited to 'irc.c')
-rw-r--r-- | irc.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/irc.c b/irc.c index 5743d1e..dce1358 100644 --- a/irc.c +++ b/irc.c @@ -279,7 +279,8 @@ void ircRecv(void) { if (!crlf) break; *crlf = '\0'; debug(">>", line); - handle(parse(line)); + struct Message msg = parse(line); + handle(&msg); line = crlf + 2; } |