From b3816f3bfa7c993893dc37791b542824b9703c9e Mon Sep 17 00:00:00 2001 From: Jason Volk Date: Mon, 5 Mar 2018 03:19:51 -0800 Subject: [PATCH] ircd::m: Move these conf items and rename. --- ircd/m/m.cc | 30 ++++++++++++++++-------------- 1 file changed, 16 insertions(+), 14 deletions(-) diff --git a/ircd/m/m.cc b/ircd/m/m.cc index b0dedd758..7b4c58816 100644 --- a/ircd/m/m.cc +++ b/ircd/m/m.cc @@ -238,17 +238,18 @@ ircd::m::self::host() return "zemos.net"; //me.user_id.host(); } +ircd::conf::item +me_online_status_msg +{ + { "name", "ircd.me.online.status_msg" }, + { "default", "Wanna chat? IRCd at your service!" } +}; + void ircd::m::join_ircd_room() try { - static conf::item online_status_msg - { - { "name", "m.ircd.online.status_msg" }, - { "default", "Wanna chat? IRCd at your service!" } - }; - - presence::set(me, "online", online_status_msg); + presence::set(me, "online", me_online_status_msg); join(my_room, me.user_id); } catch(const m::ALREADY_MEMBER &e) @@ -256,17 +257,18 @@ catch(const m::ALREADY_MEMBER &e) log.warning("IRCd did not shut down correctly..."); } +ircd::conf::item +me_offline_status_msg +{ + { "name", "ircd.me.offline.status_msg" }, + { "default", "Catch ya on the flip side..." } +}; + void ircd::m::leave_ircd_room() { - static conf::item offline_status_msg - { - { "name", "m.ircd.offline.status_msg" }, - { "default", "Catch ya on the flip side..." } - }; - leave(my_room, me.user_id); - presence::set(me, "offline", offline_status_msg); + presence::set(me, "offline", me_offline_status_msg); } ///////////////////////////////////////////////////////////////////////////////