Don't send trailing space in MODE messages
authorDana Dahlstrom <dana+70@cs.ucsd.edu>
Sat, 16 Feb 2008 11:27:48 +0000 (11:27 +0000)
committerFlorian Westphal <fw@strlen.de>
Tue, 26 Feb 2008 22:49:33 +0000 (23:49 +0100)
commit1784180bf346b6cbea86dabb0e4fdf592b19b012
tree8883c0d0bd08751a4aef82285db1e1283cfe2f59
parent634ef8c13164321abeee37e9516cbfb71e0d0f2e
Don't send trailing space in MODE messages

Under some circumstances ngIRCd currently issues a channel MODE message
with a trailing space after the last parameter, which isn't permitted by
the grammar in RFC 2812 section 2.3.1:

http://tools.ietf.org/html/rfc2812#section-2.3.1

The following patch modifies mode-test.e to expose this, and modifies
irc-mode.c to correct it.
ChangeLog
src/ngircd/irc-mode.c
src/testsuite/mode-test.e