summary refs log tree commit diff
path: root/doc
diff options
context:
space:
mode:
authorAlexander Barton <alex@barton.de>2020-06-11 16:45:30 +0200
committerAlexander Barton <alex@barton.de>2020-06-11 16:45:30 +0200
commit07cb8ed9ae14307b7b9335faa957baa340632e57 (patch)
treefcbd528712d0c365768aaa6d5e17d3ef906aedf8 /doc
parentb003d469f18c843725de4f6f46b7ca0714e0a984 (diff)
downloadngircd-07cb8ed9ae14307b7b9335faa957baa340632e57.tar.gz
ngircd-07cb8ed9ae14307b7b9335faa957baa340632e57.zip
Don't send invalid CHANINFO commands when no key is set
It can happen that a channel is +k, but no key is set: for example by
misconfiguring a pre-defined channel. In this case, ngIRCd sent an
invalud CHANINFO command ("CHANINFO #test +Pk  0 :'", note the unset
key represented by the two spaces) to its peers.

Fix this and enhance the CHANINFO documentation.
Diffstat (limited to 'doc')
-rw-r--r--doc/Commands.txt4
1 files changed, 4 insertions, 0 deletions
diff --git a/doc/Commands.txt b/doc/Commands.txt
index 0accc5c2..0ca8703c 100644
--- a/doc/Commands.txt
+++ b/doc/Commands.txt
@@ -874,6 +874,10 @@ Server Protocol Commands
 	CHANINFO is used by servers to inform each other about a channel:
 	its modes, channel key, user limits and its topic.
 	.
+	Note: even when <modes> don't include "k" (key) or "l" (limit), both
+	parameters must be given when used; use "*" for "no key" and 0 for
+	"no limit" for the unused parameter in this case.
+	.
 	The CHANINFO command is allowed on server-links only.
 
 	References: