summary refs log tree commit diff
diff options
context:
space:
mode:
authorItsOnlyBinary <ItsOnlyBinary@users.noreply.github.com>2018-10-07 22:33:27 +0100
committerAlexander Barton <alex@barton.de>2018-10-07 23:33:27 +0200
commitd0f9d3d92e8f3f1d33ece89f751b01343b5e1141 (patch)
treed3e526678b85b185d1a26828b9e8ba51efccd14c
parentbb4101cd6c1149cbb9a8b7e886c67f637de22541 (diff)
downloadngircd-d0f9d3d92e8f3f1d33ece89f751b01343b5e1141.tar.gz
ngircd-d0f9d3d92e8f3f1d33ece89f751b01343b5e1141.zip
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.
-rw-r--r--src/ngircd/parse.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ngircd/parse.c b/src/ngircd/parse.c
index 5d8f0d59..51834133 100644
--- 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),