mirror of
https://git.jabber.space/devs/cproof.git
synced 2026-07-23 22:46:21 +00:00
Added /presence command to show contacts presence
This commit is contained in:
@@ -840,6 +840,15 @@ _cons_beep_setting(void)
|
||||
cons_show("Terminal beep (/beep) : OFF");
|
||||
}
|
||||
|
||||
static void
|
||||
_cons_presence_setting(void)
|
||||
{
|
||||
if (prefs_get_boolean(PREF_PRESENCE))
|
||||
cons_show("Contact presence (/presence) : ON");
|
||||
else
|
||||
cons_show("Contact presence (/presence) : OFF");
|
||||
}
|
||||
|
||||
static void
|
||||
_cons_flash_setting(void)
|
||||
{
|
||||
@@ -938,6 +947,7 @@ _cons_show_ui_prefs(void)
|
||||
cons_occupants_setting();
|
||||
cons_privileges_setting();
|
||||
cons_titlebar_setting();
|
||||
cons_presence_setting();
|
||||
|
||||
cons_alert();
|
||||
}
|
||||
@@ -1547,6 +1557,7 @@ console_init_module(void)
|
||||
cons_theme_setting = _cons_theme_setting;
|
||||
cons_privileges_setting = _cons_privileges_setting;
|
||||
cons_beep_setting = _cons_beep_setting;
|
||||
cons_presence_setting = _cons_presence_setting;
|
||||
cons_flash_setting = _cons_flash_setting;
|
||||
cons_splash_setting = _cons_splash_setting;
|
||||
cons_autoconnect_setting = _cons_autoconnect_setting;
|
||||
|
||||
Reference in New Issue
Block a user