Skip to content

Commit

Permalink
make namreply splitting even lazier
Browse files Browse the repository at this point in the history
  • Loading branch information
Herringway committed Jun 3, 2021
1 parent 6d94f20 commit fd1e62c
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions source/virc/numerics/rfc1459.d
Expand Up @@ -289,9 +289,13 @@ auto parseNumeric(Numeric numeric : Numeric.RPL_TOPIC, T)(T input) {
struct NamesReply {
import std.algorithm : splitter;
import std.traits : ReturnType;
import std.typecons : No;
NamReplyFlag chanFlag;
string channel;
ReturnType!(splitter!("a == b", string, string)) users;
string _users;
auto users() inout {
return _users.splitter(" ");
}
}
/++
+
Expand Down Expand Up @@ -375,7 +379,7 @@ auto parseNumeric(Numeric numeric : Numeric.RPL_NAMREPLY, T)(T input) {
output.nullify();
return output;
}
output.get.users = input.front.splitter(" ");
output.get._users = input.front;
return output;
}
///
Expand Down

0 comments on commit fd1e62c

Please sign in to comment.