0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-11-29 18:22:50 +01:00

modules/m_presence: Add commented log warning for presence spam.

This commit is contained in:
Jason Volk 2019-01-26 16:38:09 -08:00
parent c080d5523c
commit e3f30546a0

View file

@ -160,7 +160,20 @@ try
m::presence::get(std::nothrow, user_id, closure, &fopts); m::presence::get(std::nothrow, user_id, closure, &fopts);
if(!useful) 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; return;
}
const auto evid const auto evid
{ {