From 140c4a5143064296fc379a66f418f50a87d02029 Mon Sep 17 00:00:00 2001 From: Jason Volk Date: Thu, 30 Aug 2018 20:57:36 -0700 Subject: [PATCH] ircd::m: Only set ircd offline presence on clean ~init. --- ircd/m/m.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ircd/m/m.cc b/ircd/m/m.cc index 16daac48b..133643e49 100644 --- a/ircd/m/m.cc +++ b/ircd/m/m.cc @@ -70,7 +70,9 @@ catch(const std::exception &e) ircd::m::init::~init() noexcept try { - presence::set(me, "offline", me_offline_status_msg); + if(!std::current_exception()) + presence::set(me, "offline", me_offline_status_msg); + m::imports.clear(); } catch(const m::error &e)