//Numeric.RPL_LOGGEDOUT import std.range : only, takeNone; { immutable logon = parseNumeric!(Numeric.RPL_LOGGEDOUT)(only("test", "someone!someIdent@example.net", "Well hello there")); assert(logon.get.mask.nickname == "someone"); assert(logon.get.mask.ident == "someIdent"); assert(logon.get.mask.host == "example.net"); assert(logon.get.account.isNull); } { immutable logon = parseNumeric!(Numeric.RPL_LOGGEDOUT)(takeNone(only(""))); assert(logon.isNull); } { immutable logon = parseNumeric!(Numeric.RPL_LOGGEDOUT)(only("test")); assert(logon.isNull); }
Format is 901 <nick> <nick>!<ident>@<host> :You are now logged out