From e3f30546a016f07c0ec82e3afb00969b089b992d Mon Sep 17 00:00:00 2001 From: Jason Volk Date: Sat, 26 Jan 2019 16:38:09 -0800 Subject: [PATCH] modules/m_presence: Add commented log warning for presence spam. --- modules/m_presence.cc | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/modules/m_presence.cc b/modules/m_presence.cc index a017fd5b6..fdf49c218 100644 --- a/modules/m_presence.cc +++ b/modules/m_presence.cc @@ -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 {