]> arthur.barton.de Git - ngircd.git/commit
Don't send invalid CHANINFO commands when no key is set
authorAlexander Barton <alex@barton.de>
Thu, 11 Jun 2020 14:45:30 +0000 (16:45 +0200)
committerAlexander Barton <alex@barton.de>
Thu, 11 Jun 2020 14:45:30 +0000 (16:45 +0200)
commit07cb8ed9ae14307b7b9335faa957baa340632e57
treefcbd528712d0c365768aaa6d5e17d3ef906aedf8
parentb003d469f18c843725de4f6f46b7ca0714e0a984
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.
doc/Commands.txt
src/ngircd/numeric.c