mirror of
https://github.com/matrix-construct/construct
synced 2024-09-26 18:38:52 +02:00
ircd:Ⓜ️ Fix count_since prototype; upgrade definition.
This commit is contained in:
parent
af6ac4a2ac
commit
7bcc40f13f
2 changed files with 11 additions and 10 deletions
12
ircd/m.cc
12
ircd/m.cc
|
@ -3753,16 +3753,16 @@ ircd::m::count_since(const room &r,
|
||||||
const event::idx &a,
|
const event::idx &a,
|
||||||
const event::idx &b)
|
const event::idx &b)
|
||||||
{
|
{
|
||||||
using prototype = bool (const room &,
|
using prototype = size_t (const room &,
|
||||||
const event::idx &,
|
const event::idx &,
|
||||||
const event::idx &);
|
const event::idx &);
|
||||||
|
|
||||||
static mods::import<prototype> _count_since
|
static mods::import<prototype> call
|
||||||
{
|
{
|
||||||
"m_room", "count_since"
|
"m_room", "ircd::m::count_since"
|
||||||
};
|
};
|
||||||
|
|
||||||
return _count_since(r, std::min(a, b), std::max(a, b));
|
return call(r, std::min(a, b), std::max(a, b));
|
||||||
}
|
}
|
||||||
|
|
||||||
ircd::m::id::room::buf
|
ircd::m::id::room::buf
|
||||||
|
|
|
@ -52,10 +52,11 @@ ircd::m::send(const m::room &room,
|
||||||
return commit(room, event, content);
|
return commit(room, event, content);
|
||||||
}
|
}
|
||||||
|
|
||||||
extern "C" size_t
|
size_t
|
||||||
count_since(const m::room &room,
|
IRCD_MODULE_EXPORT
|
||||||
const m::event::idx &a,
|
ircd::m::count_since(const m::room &room,
|
||||||
const m::event::idx &b)
|
const m::event::idx &a,
|
||||||
|
const m::event::idx &b)
|
||||||
{
|
{
|
||||||
m::room::messages it
|
m::room::messages it
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue