mirror of
https://github.com/matrix-construct/construct
synced 2025-01-03 19:34:29 +01:00
ircd:Ⓜ️ Move these conf items and rename.
This commit is contained in:
parent
01ce9a3d6f
commit
b3816f3bfa
1 changed files with 16 additions and 14 deletions
30
ircd/m/m.cc
30
ircd/m/m.cc
|
@ -238,17 +238,18 @@ ircd::m::self::host()
|
||||||
return "zemos.net"; //me.user_id.host();
|
return "zemos.net"; //me.user_id.host();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ircd::conf::item<std::string>
|
||||||
|
me_online_status_msg
|
||||||
|
{
|
||||||
|
{ "name", "ircd.me.online.status_msg" },
|
||||||
|
{ "default", "Wanna chat? IRCd at your service!" }
|
||||||
|
};
|
||||||
|
|
||||||
void
|
void
|
||||||
ircd::m::join_ircd_room()
|
ircd::m::join_ircd_room()
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
static conf::item<std::string> online_status_msg
|
presence::set(me, "online", me_online_status_msg);
|
||||||
{
|
|
||||||
{ "name", "m.ircd.online.status_msg" },
|
|
||||||
{ "default", "Wanna chat? IRCd at your service!" }
|
|
||||||
};
|
|
||||||
|
|
||||||
presence::set(me, "online", online_status_msg);
|
|
||||||
join(my_room, me.user_id);
|
join(my_room, me.user_id);
|
||||||
}
|
}
|
||||||
catch(const m::ALREADY_MEMBER &e)
|
catch(const m::ALREADY_MEMBER &e)
|
||||||
|
@ -256,17 +257,18 @@ catch(const m::ALREADY_MEMBER &e)
|
||||||
log.warning("IRCd did not shut down correctly...");
|
log.warning("IRCd did not shut down correctly...");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ircd::conf::item<std::string>
|
||||||
|
me_offline_status_msg
|
||||||
|
{
|
||||||
|
{ "name", "ircd.me.offline.status_msg" },
|
||||||
|
{ "default", "Catch ya on the flip side..." }
|
||||||
|
};
|
||||||
|
|
||||||
void
|
void
|
||||||
ircd::m::leave_ircd_room()
|
ircd::m::leave_ircd_room()
|
||||||
{
|
{
|
||||||
static conf::item<std::string> offline_status_msg
|
|
||||||
{
|
|
||||||
{ "name", "m.ircd.offline.status_msg" },
|
|
||||||
{ "default", "Catch ya on the flip side..." }
|
|
||||||
};
|
|
||||||
|
|
||||||
leave(my_room, me.user_id);
|
leave(my_room, me.user_id);
|
||||||
presence::set(me, "offline", offline_status_msg);
|
presence::set(me, "offline", me_offline_status_msg);
|
||||||
}
|
}
|
||||||
|
|
||||||
///////////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
Loading…
Reference in a new issue