ngircd

Free, portable and lightweight Internet Relay Chat server http://ngircd.barton.de/
Log | Files | Refs | README | LICENSE

commit d0f9d3d92e8f3f1d33ece89f751b01343b5e1141
parent bb4101cd6c1149cbb9a8b7e886c67f637de22541
Author: ItsOnlyBinary <ItsOnlyBinary@users.noreply.github.com>
Date:   Sun,  7 Oct 2018 22:33:27 +0100

Allow a 5th parameter in WEBIRC

According to an IRCv3 extension, the 5th parameter can be used for extra
flags that are fine to ignore for now, but limiting WEBIRC params to 4
causes a syntax error.

See https://github.com/ircv3/ircv3-ideas/issues/12 for more information.

This closes #247.
Diffstat:
Msrc/ngircd/parse.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/ngircd/parse.c b/src/ngircd/parse.c @@ -111,7 +111,7 @@ static COMMAND My_Commands[] = _CMD("USERS", IRC_USERS, CLIENT_USER|CLIENT_SERVER, 0, -1, 0), _CMD("VERSION", IRC_VERSION, CLIENT_USER|CLIENT_SERVER, 0, 1, 1), _CMD("WALLOPS", IRC_WALLOPS, CLIENT_USER|CLIENT_SERVER, 1, 1, 0), - _CMD("WEBIRC", IRC_WEBIRC, CLIENT_UNKNOWN, 4, 4, 0), + _CMD("WEBIRC", IRC_WEBIRC, CLIENT_UNKNOWN, 4, 5, 0), _CMD("WHO", IRC_WHO, CLIENT_USER, 0, 2, 1), _CMD("WHOIS", IRC_WHOIS, CLIENT_USER|CLIENT_SERVER, 0, -1, 1), _CMD("WHOWAS", IRC_WHOWAS, CLIENT_USER|CLIENT_SERVER, 0, -1, 0),