parseNumeric

Format is 774 <Client> <Target>[ <RetryAfter>]

Examples

 //Numeric.ERR_METADATASYNCLATER
	import core.time : seconds;
	import std.array : array;
	import std.range : only, takeNone;
	import virc.common : Channel;

	with(parseNumeric!(Numeric.ERR_METADATASYNCLATER)(only("modernclient", "#bigchan", "4"), "@", "#").get) {
		assert(target.channel == Channel("#bigchan"));
		assert(retryAfter == 4.seconds);
	}

	assert(parseNumeric!(Numeric.ERR_METADATASYNCLATER)(takeNone(only("")), "@", "#").isNull);

Meta