//Numeric.RPL_METADATASUBOK, Numeric.RPL_METADATAUNSUBOK, Numeric.RPL_METADATASUBS import std.array : array; import std.range : only, takeNone; import virc.common : User; assert(parseNumeric!(Numeric.RPL_METADATASUBOK)(only("client", "url", "example")).get.array == ["url", "example"]); assert(parseNumeric!(Numeric.RPL_METADATAUNSUBOK)(only("client", "url", "example")).get.array == ["url", "example"]); assert(parseNumeric!(Numeric.RPL_METADATASUBS)(only("client", "url", "example")).get.array == ["url", "example"]); assert(parseNumeric!(Numeric.RPL_METADATASUBOK)(takeNone(only(""))).isNull); assert(parseNumeric!(Numeric.RPL_METADATAUNSUBOK)(takeNone(only(""))).isNull); assert(parseNumeric!(Numeric.RPL_METADATASUBS)(takeNone(only(""))).isNull);
Format is 770 <Client> <Key1> [<Key2> ...] OR 771 <Client> <Key1> [<Key2> ...] 772 <Client> <Key1> [<Key2> ...]