mirror of
https://github.com/matrix-construct/construct
synced 2025-01-01 02:14:13 +01:00
ircd:Ⓜ️ Add debuglog msg for hook registration.
This commit is contained in:
parent
04e5e44c98
commit
c4628525ae
1 changed files with 15 additions and 0 deletions
15
ircd/m.cc
15
ircd/m.cc
|
@ -5150,12 +5150,27 @@ ircd::m::hook::base::site::add(base &hook)
|
|||
hook.registered = true;
|
||||
matchers += matched;
|
||||
++count;
|
||||
|
||||
log::debug
|
||||
{
|
||||
log, "Registered hook %p to site %s",
|
||||
&hook,
|
||||
name()
|
||||
};
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
bool
|
||||
ircd::m::hook::base::site::del(base &hook)
|
||||
{
|
||||
log::debug
|
||||
{
|
||||
log, "Removing hook %p from site %s",
|
||||
&hook,
|
||||
name()
|
||||
};
|
||||
|
||||
assert(hook.registered);
|
||||
assert(hook.site_name() == name());
|
||||
|
||||
|
|
Loading…
Reference in a new issue