//Numeric.RPL_METADATASUBOK, Numeric.RPL_METADATAUNSUBOK, Numeric.RPL_METADATASUBS import std.array : array; import std.range : only, takeNone; import virc.common : User; with(parseNumeric!(Numeric.RPL_METADATASUBOK)(only("client", "url example")).get) { assert(subs.array == ["url", "example"]); } with(parseNumeric!(Numeric.RPL_METADATAUNSUBOK)(only("client", "url example")).get) { assert(subs.array == ["url", "example"]); } with(parseNumeric!(Numeric.RPL_METADATASUBS)(only("client", "url example")).get) { assert(subs.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 :<Key1> [<Key2> ...] OR 771 :<Key1> [<Key2> ...] 772 :<Key1> [<Key2> ...]