import std.range : only, takeNone; { immutable result = parseNumeric!(Numeric.ERR_NOPRIVS)(only("Someone", "rehash", "Insufficient oper privileges.")); assert(result.get.priv == "rehash"); assert(result.get.message == "Insufficient oper privileges."); } { immutable badResult = parseNumeric!(Numeric.ERR_NOPRIVS)(takeNone(only(""))); assert(badResult.isNull); } { immutable badResult = parseNumeric!(Numeric.ERR_NOPRIVS)(only("Someone")); assert(badResult.isNull); }
Parse ERR_NOPRIVS numeric replies.
Format is 723 <user> <priv> :Insufficient oper privileges.