Implement RFC 2812 handling of "0" argument to JOIN

The students in my software-engineering class are writing IRC clients in
Java, and I'm running ngIRCd as a sandbox for them to play in. We
noticed ngIRCd doesn't obey the "JOIN 0" command specified in RFC 2812:

   JOIN 0             ; Leave all currently joined
                      channels.

http://tools.ietf.org/html/rfc2812#section-3.2.1
I believe the following patch addresses this. Cheers!

[fw@strlen.de: put it into a seperate function]
This commit is contained in:
Dana Dahlstrom
2008-02-26 23:49:33 +01:00
committed by Florian Westphal
parent 3022d7cff3
commit 6bd35bf090
3 changed files with 67 additions and 4 deletions
+4 -1
View File
@@ -12,6 +12,9 @@
ngIRCd HEAD
- implement RFC 2812 handling of "0" argument to 'JOIN':
must be treated as if the user had sent PART commands
for all channels the user is a member of. (Dana Dahlstrom)
- allow NOTICEs to be sent to a channel. (Fabian Schlager)
ngIRCd 0.11.0 (2008-01-15)
@@ -738,4 +741,4 @@ ngIRCd 0.0.1, 31.12.2001
--
$Id: ChangeLog,v 1.335 2008/01/15 22:28:15 fw Exp $
$Id: ChangeLog,v 1.336 2008/02/05 13:31:50 fw Exp $