modules/client/search: Improve argument characters and name intuition.

This commit is contained in:
Jason Volk 2022-09-01 10:45:43 -07:00
parent ced3df67c6
commit a465098693
1 changed files with 3 additions and 3 deletions

View File

@ -151,7 +151,7 @@ try
{
const auto &[key, val]
{
split(kv, ':')
split(kv, '=')
};
if(std::find(begin(names), end(names), key) == end(names))
@ -168,7 +168,7 @@ try
};
json::strung senders;
when({"senders", ""}, [&](const auto &key, const auto &val)
when({"sender", ""}, [&](const auto &key, const auto &val)
{
if(!valid(m::id::USER, val))
return;
@ -179,7 +179,7 @@ try
});
json::strung not_senders;
when({"!senders", "!"}, [&](const auto &key, const auto &val)
when({"!sender", "!"}, [&](const auto &key, const auto &val)
{
if(!valid(m::id::USER, val))
return;