From f7796b6c3eb85e5f431b31842b5b5d176262f17d Mon Sep 17 00:00:00 2001 From: Jason Volk Date: Sat, 17 Aug 2019 02:45:56 -0700 Subject: [PATCH] ircd::m::presence: Set the currently_active flag in convenience composer. --- ircd/m.cc | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/ircd/m.cc b/ircd/m.cc index bb70a3b38..c1aafc626 100644 --- a/ircd/m.cc +++ b/ircd/m.cc @@ -1830,9 +1830,10 @@ ircd::m::presence::set(const user &user, { return set(m::presence { - { "user_id", user.user_id }, - { "presence", presence }, - { "status_msg", status_msg }, + { "user_id", user.user_id }, + { "presence", presence }, + { "status_msg", status_msg }, + { "currently_active", presence == "online" }, }); }