mirror of
https://github.com/matrix-construct/construct
synced 2024-11-26 08:42:34 +01:00
modules/m_presence: Add commented log warning for presence spam.
This commit is contained in:
parent
c080d5523c
commit
e3f30546a0
1 changed files with 13 additions and 0 deletions
|
@ -160,7 +160,20 @@ try
|
|||
|
||||
m::presence::get(std::nothrow, user_id, closure, &fopts);
|
||||
if(!useful)
|
||||
{
|
||||
/*
|
||||
log::dwarning
|
||||
{
|
||||
m::log, "presence spam from %s %s is %s and %s %zd seconds ago",
|
||||
at<"origin"_>(event),
|
||||
string_view{user_id},
|
||||
json::get<"currently_active"_>(object)? "active"_sv : "inactive"_sv,
|
||||
json::get<"presence"_>(object),
|
||||
json::get<"last_active_ago"_>(object) / 1000L
|
||||
};
|
||||
*/
|
||||
return;
|
||||
}
|
||||
|
||||
const auto evid
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue