mirror of
https://github.com/matrix-construct/construct
synced 2024-12-28 16:34:13 +01:00
ircd:Ⓜ️:user::profile: Fix rogue definitions.
This commit is contained in:
parent
2a8162b2b7
commit
0d375cc79c
1 changed files with 0 additions and 33 deletions
33
ircd/m.cc
33
ircd/m.cc
|
@ -3414,39 +3414,6 @@ const
|
|||
}});
|
||||
}
|
||||
|
||||
//
|
||||
// user::profile
|
||||
//
|
||||
|
||||
ircd::string_view
|
||||
ircd::m::user::profile::get(const mutable_buffer &out,
|
||||
const string_view &key)
|
||||
const
|
||||
{
|
||||
string_view ret;
|
||||
get(std::nothrow, key, [&out, &ret]
|
||||
(const string_view &key, const string_view &val)
|
||||
{
|
||||
ret = { data(out), copy(out, val) };
|
||||
});
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
void
|
||||
ircd::m::user::profile::get(const string_view &key,
|
||||
const closure &closure)
|
||||
const
|
||||
{
|
||||
if(!get(std::nothrow, key, closure))
|
||||
throw m::NOT_FOUND
|
||||
{
|
||||
"Property %s in profile for %s not found",
|
||||
key,
|
||||
string_view{user.user_id}
|
||||
};
|
||||
}
|
||||
|
||||
//
|
||||
// user::filter
|
||||
//
|
||||
|
|
Loading…
Reference in a new issue