mirror of
https://github.com/profanity-im/profanity.git
synced 2024-12-04 14:46:46 -05:00
Fixed /pref ui formatting
This commit is contained in:
parent
a00095c8a9
commit
3805fcfbd1
220
src/ui/console.c
220
src/ui/console.c
@ -1056,9 +1056,9 @@ cons_theme_setting(void)
|
|||||||
{
|
{
|
||||||
char *theme = prefs_get_string(PREF_THEME);
|
char *theme = prefs_get_string(PREF_THEME);
|
||||||
if (theme == NULL) {
|
if (theme == NULL) {
|
||||||
cons_show("Theme (/theme) : default");
|
cons_show("Theme (/theme) : default");
|
||||||
} else {
|
} else {
|
||||||
cons_show("Theme (/theme) : %s", theme);
|
cons_show("Theme (/theme) : %s", theme);
|
||||||
}
|
}
|
||||||
prefs_free_string(theme);
|
prefs_free_string(theme);
|
||||||
}
|
}
|
||||||
@ -1067,58 +1067,58 @@ void
|
|||||||
cons_privileges_setting(void)
|
cons_privileges_setting(void)
|
||||||
{
|
{
|
||||||
if (prefs_get_boolean(PREF_MUC_PRIVILEGES))
|
if (prefs_get_boolean(PREF_MUC_PRIVILEGES))
|
||||||
cons_show("MUC privileges (/privileges) : ON");
|
cons_show("MUC privileges (/privileges) : ON");
|
||||||
else
|
else
|
||||||
cons_show("MUC privileges (/privileges) : OFF");
|
cons_show("MUC privileges (/privileges) : OFF");
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
cons_beep_setting(void)
|
cons_beep_setting(void)
|
||||||
{
|
{
|
||||||
if (prefs_get_boolean(PREF_BEEP))
|
if (prefs_get_boolean(PREF_BEEP))
|
||||||
cons_show("Terminal beep (/beep) : ON");
|
cons_show("Terminal beep (/beep) : ON");
|
||||||
else
|
else
|
||||||
cons_show("Terminal beep (/beep) : OFF");
|
cons_show("Terminal beep (/beep) : OFF");
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
cons_resource_setting(void)
|
cons_resource_setting(void)
|
||||||
{
|
{
|
||||||
if (prefs_get_boolean(PREF_RESOURCE_TITLE))
|
if (prefs_get_boolean(PREF_RESOURCE_TITLE))
|
||||||
cons_show("Resource title (/resource) : ON");
|
cons_show("Resource title (/resource) : ON");
|
||||||
else
|
else
|
||||||
cons_show("Resource title (/resource) : OFF");
|
cons_show("Resource title (/resource) : OFF");
|
||||||
if (prefs_get_boolean(PREF_RESOURCE_MESSAGE))
|
if (prefs_get_boolean(PREF_RESOURCE_MESSAGE))
|
||||||
cons_show("Resource message (/resource) : ON");
|
cons_show("Resource message (/resource) : ON");
|
||||||
else
|
else
|
||||||
cons_show("Resource message (/resource) : OFF");
|
cons_show("Resource message (/resource) : OFF");
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
cons_wrap_setting(void)
|
cons_wrap_setting(void)
|
||||||
{
|
{
|
||||||
if (prefs_get_boolean(PREF_WRAP))
|
if (prefs_get_boolean(PREF_WRAP))
|
||||||
cons_show("Word wrap (/wrap) : ON");
|
cons_show("Word wrap (/wrap) : ON");
|
||||||
else
|
else
|
||||||
cons_show("Word wrap (/wrap) : OFF");
|
cons_show("Word wrap (/wrap) : OFF");
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
cons_winstidy_setting(void)
|
cons_winstidy_setting(void)
|
||||||
{
|
{
|
||||||
if (prefs_get_boolean(PREF_WINS_AUTO_TIDY))
|
if (prefs_get_boolean(PREF_WINS_AUTO_TIDY))
|
||||||
cons_show("Window Auto Tidy (/wins) : ON");
|
cons_show("Window Auto Tidy (/wins) : ON");
|
||||||
else
|
else
|
||||||
cons_show("Window Auto Tidy (/wins) : OFF");
|
cons_show("Window Auto Tidy (/wins) : OFF");
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
cons_encwarn_setting(void)
|
cons_encwarn_setting(void)
|
||||||
{
|
{
|
||||||
if (prefs_get_boolean(PREF_ENC_WARN)) {
|
if (prefs_get_boolean(PREF_ENC_WARN)) {
|
||||||
cons_show("Warn unencrypted (/encwarn) : ON");
|
cons_show("Warn unencrypted (/encwarn) : ON");
|
||||||
} else {
|
} else {
|
||||||
cons_show("Warn unencrypted (/encwarn) : OFF");
|
cons_show("Warn unencrypted (/encwarn) : OFF");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1126,7 +1126,7 @@ void
|
|||||||
cons_console_setting(void)
|
cons_console_setting(void)
|
||||||
{
|
{
|
||||||
char *setting = prefs_get_string(PREF_CONSOLE_MUC);
|
char *setting = prefs_get_string(PREF_CONSOLE_MUC);
|
||||||
cons_show("Console MUC messages (/console) : %s", setting);
|
cons_show("Console MUC messages (/console) : %s", setting);
|
||||||
prefs_free_string(setting);
|
prefs_free_string(setting);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1134,9 +1134,9 @@ void
|
|||||||
cons_tlsshow_setting(void)
|
cons_tlsshow_setting(void)
|
||||||
{
|
{
|
||||||
if (prefs_get_boolean(PREF_TLS_SHOW)) {
|
if (prefs_get_boolean(PREF_TLS_SHOW)) {
|
||||||
cons_show("TLS show (/tls) : ON");
|
cons_show("TLS show (/tls) : ON");
|
||||||
} else {
|
} else {
|
||||||
cons_show("TLS show (/tls) : OFF");
|
cons_show("TLS show (/tls) : OFF");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1144,44 +1144,44 @@ void
|
|||||||
cons_presence_setting(void)
|
cons_presence_setting(void)
|
||||||
{
|
{
|
||||||
if (prefs_get_boolean(PREF_PRESENCE))
|
if (prefs_get_boolean(PREF_PRESENCE))
|
||||||
cons_show("Contact presence (/presence) : ON");
|
cons_show("Contact presence (/presence) : ON");
|
||||||
else
|
else
|
||||||
cons_show("Contact presence (/presence) : OFF");
|
cons_show("Contact presence (/presence) : OFF");
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
cons_flash_setting(void)
|
cons_flash_setting(void)
|
||||||
{
|
{
|
||||||
if (prefs_get_boolean(PREF_FLASH))
|
if (prefs_get_boolean(PREF_FLASH))
|
||||||
cons_show("Terminal flash (/flash) : ON");
|
cons_show("Terminal flash (/flash) : ON");
|
||||||
else
|
else
|
||||||
cons_show("Terminal flash (/flash) : OFF");
|
cons_show("Terminal flash (/flash) : OFF");
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
cons_splash_setting(void)
|
cons_splash_setting(void)
|
||||||
{
|
{
|
||||||
if (prefs_get_boolean(PREF_SPLASH))
|
if (prefs_get_boolean(PREF_SPLASH))
|
||||||
cons_show("Splash screen (/splash) : ON");
|
cons_show("Splash screen (/splash) : ON");
|
||||||
else
|
else
|
||||||
cons_show("Splash screen (/splash) : OFF");
|
cons_show("Splash screen (/splash) : OFF");
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
cons_occupants_setting(void)
|
cons_occupants_setting(void)
|
||||||
{
|
{
|
||||||
if (prefs_get_boolean(PREF_OCCUPANTS))
|
if (prefs_get_boolean(PREF_OCCUPANTS))
|
||||||
cons_show("Occupants (/occupants) : show");
|
cons_show("Occupants (/occupants) : show");
|
||||||
else
|
else
|
||||||
cons_show("Occupants (/occupants) : hide");
|
cons_show("Occupants (/occupants) : hide");
|
||||||
|
|
||||||
if (prefs_get_boolean(PREF_OCCUPANTS_JID))
|
if (prefs_get_boolean(PREF_OCCUPANTS_JID))
|
||||||
cons_show("Occupant jids (/occupants) : show");
|
cons_show("Occupant jids (/occupants) : show");
|
||||||
else
|
else
|
||||||
cons_show("Occupant jids (/occupants) : hide");
|
cons_show("Occupant jids (/occupants) : hide");
|
||||||
|
|
||||||
int size = prefs_get_occupants_size();
|
int size = prefs_get_occupants_size();
|
||||||
cons_show("Occupants size (/occupants) : %d", size);
|
cons_show("Occupants size (/occupants) : %d", size);
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
@ -1201,55 +1201,55 @@ cons_time_setting(void)
|
|||||||
{
|
{
|
||||||
char *pref_time_console = prefs_get_string(PREF_TIME_CONSOLE);
|
char *pref_time_console = prefs_get_string(PREF_TIME_CONSOLE);
|
||||||
if (g_strcmp0(pref_time_console, "off") == 0)
|
if (g_strcmp0(pref_time_console, "off") == 0)
|
||||||
cons_show("Time console (/time) : OFF");
|
cons_show("Time console (/time) : OFF");
|
||||||
else
|
else
|
||||||
cons_show("Time console (/time) : %s", pref_time_console);
|
cons_show("Time console (/time) : %s", pref_time_console);
|
||||||
prefs_free_string(pref_time_console);
|
prefs_free_string(pref_time_console);
|
||||||
|
|
||||||
char *pref_time_chat = prefs_get_string(PREF_TIME_CHAT);
|
char *pref_time_chat = prefs_get_string(PREF_TIME_CHAT);
|
||||||
if (g_strcmp0(pref_time_chat, "off") == 0)
|
if (g_strcmp0(pref_time_chat, "off") == 0)
|
||||||
cons_show("Time chat (/time) : OFF");
|
cons_show("Time chat (/time) : OFF");
|
||||||
else
|
else
|
||||||
cons_show("Time chat (/time) : %s", pref_time_chat);
|
cons_show("Time chat (/time) : %s", pref_time_chat);
|
||||||
prefs_free_string(pref_time_chat);
|
prefs_free_string(pref_time_chat);
|
||||||
|
|
||||||
char *pref_time_muc = prefs_get_string(PREF_TIME_MUC);
|
char *pref_time_muc = prefs_get_string(PREF_TIME_MUC);
|
||||||
if (g_strcmp0(pref_time_muc, "off") == 0)
|
if (g_strcmp0(pref_time_muc, "off") == 0)
|
||||||
cons_show("Time MUC (/time) : OFF");
|
cons_show("Time MUC (/time) : OFF");
|
||||||
else
|
else
|
||||||
cons_show("Time MUC (/time) : %s", pref_time_muc);
|
cons_show("Time MUC (/time) : %s", pref_time_muc);
|
||||||
prefs_free_string(pref_time_muc);
|
prefs_free_string(pref_time_muc);
|
||||||
|
|
||||||
char *pref_time_mucconf = prefs_get_string(PREF_TIME_MUCCONFIG);
|
char *pref_time_mucconf = prefs_get_string(PREF_TIME_MUCCONFIG);
|
||||||
if (g_strcmp0(pref_time_mucconf, "off") == 0)
|
if (g_strcmp0(pref_time_mucconf, "off") == 0)
|
||||||
cons_show("Time MUC config (/time) : OFF");
|
cons_show("Time MUC config (/time) : OFF");
|
||||||
else
|
else
|
||||||
cons_show("Time MUC config (/time) : %s", pref_time_mucconf);
|
cons_show("Time MUC config (/time) : %s", pref_time_mucconf);
|
||||||
prefs_free_string(pref_time_mucconf);
|
prefs_free_string(pref_time_mucconf);
|
||||||
|
|
||||||
char *pref_time_private = prefs_get_string(PREF_TIME_PRIVATE);
|
char *pref_time_private = prefs_get_string(PREF_TIME_PRIVATE);
|
||||||
if (g_strcmp0(pref_time_private, "off") == 0)
|
if (g_strcmp0(pref_time_private, "off") == 0)
|
||||||
cons_show("Time private (/time) : OFF");
|
cons_show("Time private (/time) : OFF");
|
||||||
else
|
else
|
||||||
cons_show("Time private (/time) : %s", pref_time_private);
|
cons_show("Time private (/time) : %s", pref_time_private);
|
||||||
prefs_free_string(pref_time_private);
|
prefs_free_string(pref_time_private);
|
||||||
|
|
||||||
char *pref_time_xml = prefs_get_string(PREF_TIME_XMLCONSOLE);
|
char *pref_time_xml = prefs_get_string(PREF_TIME_XMLCONSOLE);
|
||||||
if (g_strcmp0(pref_time_xml, "off") == 0)
|
if (g_strcmp0(pref_time_xml, "off") == 0)
|
||||||
cons_show("Time XML Console (/time) : OFF");
|
cons_show("Time XML Console (/time) : OFF");
|
||||||
else
|
else
|
||||||
cons_show("Time XML Console (/time) : %s", pref_time_xml);
|
cons_show("Time XML Console (/time) : %s", pref_time_xml);
|
||||||
prefs_free_string(pref_time_xml);
|
prefs_free_string(pref_time_xml);
|
||||||
|
|
||||||
char *pref_time_statusbar = prefs_get_string(PREF_TIME_STATUSBAR);
|
char *pref_time_statusbar = prefs_get_string(PREF_TIME_STATUSBAR);
|
||||||
if (g_strcmp0(pref_time_statusbar, "off") == 0)
|
if (g_strcmp0(pref_time_statusbar, "off") == 0)
|
||||||
cons_show("Time statusbar (/time) : OFF");
|
cons_show("Time statusbar (/time) : OFF");
|
||||||
else
|
else
|
||||||
cons_show("Time statusbar (/time) : %s", pref_time_statusbar);
|
cons_show("Time statusbar (/time) : %s", pref_time_statusbar);
|
||||||
prefs_free_string(pref_time_statusbar);
|
prefs_free_string(pref_time_statusbar);
|
||||||
|
|
||||||
char *pref_time_lastactivity = prefs_get_string(PREF_TIME_LASTACTIVITY);
|
char *pref_time_lastactivity = prefs_get_string(PREF_TIME_LASTACTIVITY);
|
||||||
cons_show("Time last activity (/time) : %s", pref_time_lastactivity);
|
cons_show("Time last activity (/time) : %s", pref_time_lastactivity);
|
||||||
prefs_free_string(pref_time_lastactivity);
|
prefs_free_string(pref_time_lastactivity);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1257,9 +1257,9 @@ void
|
|||||||
cons_vercheck_setting(void)
|
cons_vercheck_setting(void)
|
||||||
{
|
{
|
||||||
if (prefs_get_boolean(PREF_VERCHECK))
|
if (prefs_get_boolean(PREF_VERCHECK))
|
||||||
cons_show("Version checking (/vercheck) : ON");
|
cons_show("Version checking (/vercheck) : ON");
|
||||||
else
|
else
|
||||||
cons_show("Version checking (/vercheck) : OFF");
|
cons_show("Version checking (/vercheck) : OFF");
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
@ -1269,9 +1269,9 @@ cons_statuses_setting(void)
|
|||||||
char *chat = prefs_get_string(PREF_STATUSES_CHAT);
|
char *chat = prefs_get_string(PREF_STATUSES_CHAT);
|
||||||
char *muc = prefs_get_string(PREF_STATUSES_MUC);
|
char *muc = prefs_get_string(PREF_STATUSES_MUC);
|
||||||
|
|
||||||
cons_show("Console statuses (/statuses) : %s", console);
|
cons_show("Console statuses (/statuses) : %s", console);
|
||||||
cons_show("Chat statuses (/statuses) : %s", chat);
|
cons_show("Chat statuses (/statuses) : %s", chat);
|
||||||
cons_show("MUC statuses (/statuses) : %s", muc);
|
cons_show("MUC statuses (/statuses) : %s", muc);
|
||||||
|
|
||||||
prefs_free_string(console);
|
prefs_free_string(console);
|
||||||
prefs_free_string(chat);
|
prefs_free_string(chat);
|
||||||
@ -1282,14 +1282,14 @@ void
|
|||||||
cons_titlebar_setting(void)
|
cons_titlebar_setting(void)
|
||||||
{
|
{
|
||||||
if (prefs_get_boolean(PREF_TITLEBAR_SHOW)) {
|
if (prefs_get_boolean(PREF_TITLEBAR_SHOW)) {
|
||||||
cons_show("Titlebar show (/titlebar) : ON");
|
cons_show("Titlebar show (/titlebar) : ON");
|
||||||
} else {
|
} else {
|
||||||
cons_show("Titlebar show (/titlebar) : OFF");
|
cons_show("Titlebar show (/titlebar) : OFF");
|
||||||
}
|
}
|
||||||
if (prefs_get_boolean(PREF_TITLEBAR_GOODBYE)) {
|
if (prefs_get_boolean(PREF_TITLEBAR_GOODBYE)) {
|
||||||
cons_show("Titlebar goodbye (/titlebar) : ON");
|
cons_show("Titlebar goodbye (/titlebar) : ON");
|
||||||
} else {
|
} else {
|
||||||
cons_show("Titlebar goodbye (/titlebar) : OFF");
|
cons_show("Titlebar goodbye (/titlebar) : OFF");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1297,38 +1297,38 @@ void
|
|||||||
cons_roster_setting(void)
|
cons_roster_setting(void)
|
||||||
{
|
{
|
||||||
if (prefs_get_boolean(PREF_ROSTER))
|
if (prefs_get_boolean(PREF_ROSTER))
|
||||||
cons_show("Roster (/roster) : show");
|
cons_show("Roster (/roster) : show");
|
||||||
else
|
else
|
||||||
cons_show("Roster (/roster) : hide");
|
cons_show("Roster (/roster) : hide");
|
||||||
|
|
||||||
if (prefs_get_boolean(PREF_ROSTER_OFFLINE))
|
if (prefs_get_boolean(PREF_ROSTER_OFFLINE))
|
||||||
cons_show("Roster offline (/roster) : show");
|
cons_show("Roster offline (/roster) : show");
|
||||||
else
|
else
|
||||||
cons_show("Roster offline (/roster) : hide");
|
cons_show("Roster offline (/roster) : hide");
|
||||||
|
|
||||||
char header_ch = prefs_get_roster_header_char();
|
char header_ch = prefs_get_roster_header_char();
|
||||||
if (header_ch)
|
if (header_ch)
|
||||||
cons_show("Roster header char (/roster) : %c", header_ch);
|
cons_show("Roster header char (/roster) : %c", header_ch);
|
||||||
else
|
else
|
||||||
cons_show("Roster header char (/roster) : none");
|
cons_show("Roster header char (/roster) : none");
|
||||||
|
|
||||||
char contact_ch = prefs_get_roster_contact_char();
|
char contact_ch = prefs_get_roster_contact_char();
|
||||||
if (contact_ch)
|
if (contact_ch)
|
||||||
cons_show("Roster contact char (/roster) : %c", contact_ch);
|
cons_show("Roster contact char (/roster) : %c", contact_ch);
|
||||||
else
|
else
|
||||||
cons_show("Roster contact char (/roster) : none");
|
cons_show("Roster contact char (/roster) : none");
|
||||||
|
|
||||||
char resource_ch = prefs_get_roster_resource_char();
|
char resource_ch = prefs_get_roster_resource_char();
|
||||||
if (resource_ch)
|
if (resource_ch)
|
||||||
cons_show("Roster resource char (/roster) : %c", resource_ch);
|
cons_show("Roster resource char (/roster) : %c", resource_ch);
|
||||||
else
|
else
|
||||||
cons_show("Roster resource char (/roster) : none");
|
cons_show("Roster resource char (/roster) : none");
|
||||||
|
|
||||||
char room_ch = prefs_get_roster_room_char();
|
char room_ch = prefs_get_roster_room_char();
|
||||||
if (room_ch)
|
if (room_ch)
|
||||||
cons_show("Roster room char (/roster) : %c", room_ch);
|
cons_show("Roster room char (/roster) : %c", room_ch);
|
||||||
else
|
else
|
||||||
cons_show("Roster room char (/roster) : none");
|
cons_show("Roster room char (/roster) : none");
|
||||||
|
|
||||||
char room_priv_ch = prefs_get_roster_room_private_char();
|
char room_priv_ch = prefs_get_roster_room_private_char();
|
||||||
if (room_priv_ch)
|
if (room_priv_ch)
|
||||||
@ -1338,122 +1338,122 @@ cons_roster_setting(void)
|
|||||||
|
|
||||||
char private_ch = prefs_get_roster_private_char();
|
char private_ch = prefs_get_roster_private_char();
|
||||||
if (private_ch)
|
if (private_ch)
|
||||||
cons_show("Roster private char (/roster) : %c", private_ch);
|
cons_show("Roster private char (/roster) : %c", private_ch);
|
||||||
else
|
else
|
||||||
cons_show("Roster private char (/roster) : none");
|
cons_show("Roster private char (/roster) : none");
|
||||||
|
|
||||||
gint contact_indent = prefs_get_roster_contact_indent();
|
gint contact_indent = prefs_get_roster_contact_indent();
|
||||||
cons_show("Roster contact indent (/roster) : %d", contact_indent);
|
cons_show("Roster contact indent (/roster) : %d", contact_indent);
|
||||||
|
|
||||||
if (prefs_get_boolean(PREF_ROSTER_RESOURCE))
|
if (prefs_get_boolean(PREF_ROSTER_RESOURCE))
|
||||||
cons_show("Roster resource (/roster) : show");
|
cons_show("Roster resource (/roster) : show");
|
||||||
else
|
else
|
||||||
cons_show("Roster resource (/roster) : hide");
|
cons_show("Roster resource (/roster) : hide");
|
||||||
|
|
||||||
gint resource_indent = prefs_get_roster_resource_indent();
|
gint resource_indent = prefs_get_roster_resource_indent();
|
||||||
cons_show("Roster resource indent (/roster) : %d", resource_indent);
|
cons_show("Roster resource indent (/roster) : %d", resource_indent);
|
||||||
|
|
||||||
if (prefs_get_boolean(PREF_ROSTER_RESOURCE_JOIN))
|
if (prefs_get_boolean(PREF_ROSTER_RESOURCE_JOIN))
|
||||||
cons_show("Roster resource join (/roster) : on");
|
cons_show("Roster resource join (/roster) : on");
|
||||||
else
|
else
|
||||||
cons_show("Roster resource join (/roster) : off");
|
cons_show("Roster resource join (/roster) : off");
|
||||||
|
|
||||||
if (prefs_get_boolean(PREF_ROSTER_PRESENCE))
|
if (prefs_get_boolean(PREF_ROSTER_PRESENCE))
|
||||||
cons_show("Roster presence (/roster) : show");
|
cons_show("Roster presence (/roster) : show");
|
||||||
else
|
else
|
||||||
cons_show("Roster presence (/roster) : hide");
|
cons_show("Roster presence (/roster) : hide");
|
||||||
|
|
||||||
gint presence_indent = prefs_get_roster_presence_indent();
|
gint presence_indent = prefs_get_roster_presence_indent();
|
||||||
cons_show("Roster presence indent (/roster) : %d", presence_indent);
|
cons_show("Roster presence indent (/roster) : %d", presence_indent);
|
||||||
|
|
||||||
if (prefs_get_boolean(PREF_ROSTER_STATUS))
|
if (prefs_get_boolean(PREF_ROSTER_STATUS))
|
||||||
cons_show("Roster status (/roster) : show");
|
cons_show("Roster status (/roster) : show");
|
||||||
else
|
else
|
||||||
cons_show("Roster status (/roster) : hide");
|
cons_show("Roster status (/roster) : hide");
|
||||||
|
|
||||||
if (prefs_get_boolean(PREF_ROSTER_EMPTY))
|
if (prefs_get_boolean(PREF_ROSTER_EMPTY))
|
||||||
cons_show("Roster empty (/roster) : show");
|
cons_show("Roster empty (/roster) : show");
|
||||||
else
|
else
|
||||||
cons_show("Roster empty (/roster) : hide");
|
cons_show("Roster empty (/roster) : hide");
|
||||||
|
|
||||||
if (prefs_get_boolean(PREF_ROSTER_PRIORITY))
|
if (prefs_get_boolean(PREF_ROSTER_PRIORITY))
|
||||||
cons_show("Roster priority (/roster) : show");
|
cons_show("Roster priority (/roster) : show");
|
||||||
else
|
else
|
||||||
cons_show("Roster priority (/roster) : hide");
|
cons_show("Roster priority (/roster) : hide");
|
||||||
|
|
||||||
if (prefs_get_boolean(PREF_ROSTER_CONTACTS))
|
if (prefs_get_boolean(PREF_ROSTER_CONTACTS))
|
||||||
cons_show("Roster contacts (/roster) : show");
|
cons_show("Roster contacts (/roster) : show");
|
||||||
else
|
else
|
||||||
cons_show("Roster contacts (/roster) : hide");
|
cons_show("Roster contacts (/roster) : hide");
|
||||||
|
|
||||||
char *count = prefs_get_string(PREF_ROSTER_COUNT);
|
char *count = prefs_get_string(PREF_ROSTER_COUNT);
|
||||||
if (g_strcmp0(count, "off") == 0) {
|
if (g_strcmp0(count, "off") == 0) {
|
||||||
cons_show("Roster count (/roster) : OFF");
|
cons_show("Roster count (/roster) : OFF");
|
||||||
} else {
|
} else {
|
||||||
cons_show("Roster count (/roster) : %s", count);
|
cons_show("Roster count (/roster) : %s", count);
|
||||||
}
|
}
|
||||||
prefs_free_string(count);
|
prefs_free_string(count);
|
||||||
|
|
||||||
if (prefs_get_boolean(PREF_ROSTER_COUNT_ZERO))
|
if (prefs_get_boolean(PREF_ROSTER_COUNT_ZERO))
|
||||||
cons_show("Roster count zero (/roster) : ON");
|
cons_show("Roster count zero (/roster) : ON");
|
||||||
else
|
else
|
||||||
cons_show("Roster count zero (/roster) : OFF");
|
cons_show("Roster count zero (/roster) : OFF");
|
||||||
|
|
||||||
char *by = prefs_get_string(PREF_ROSTER_BY);
|
char *by = prefs_get_string(PREF_ROSTER_BY);
|
||||||
cons_show("Roster by (/roster) : %s", by);
|
cons_show("Roster by (/roster) : %s", by);
|
||||||
prefs_free_string(by);
|
prefs_free_string(by);
|
||||||
|
|
||||||
char *order = prefs_get_string(PREF_ROSTER_ORDER);
|
char *order = prefs_get_string(PREF_ROSTER_ORDER);
|
||||||
cons_show("Roster order (/roster) : %s", order);
|
cons_show("Roster order (/roster) : %s", order);
|
||||||
prefs_free_string(order);
|
prefs_free_string(order);
|
||||||
|
|
||||||
char *unread = prefs_get_string(PREF_ROSTER_UNREAD);
|
char *unread = prefs_get_string(PREF_ROSTER_UNREAD);
|
||||||
if (g_strcmp0(unread, "before") == 0) {
|
if (g_strcmp0(unread, "before") == 0) {
|
||||||
cons_show("Roster unread (/roster) : before");
|
cons_show("Roster unread (/roster) : before");
|
||||||
} else if (g_strcmp0(unread, "after") == 0) {
|
} else if (g_strcmp0(unread, "after") == 0) {
|
||||||
cons_show("Roster unread (/roster) : after");
|
cons_show("Roster unread (/roster) : after");
|
||||||
} else {
|
} else {
|
||||||
cons_show("Roster unread (/roster) : OFF");
|
cons_show("Roster unread (/roster) : OFF");
|
||||||
}
|
}
|
||||||
|
|
||||||
if (prefs_get_boolean(PREF_ROSTER_ROOMS))
|
if (prefs_get_boolean(PREF_ROSTER_ROOMS))
|
||||||
cons_show("Roster rooms (/roster) : show");
|
cons_show("Roster rooms (/roster) : show");
|
||||||
else
|
else
|
||||||
cons_show("Roster rooms (/roster) : hide");
|
cons_show("Roster rooms (/roster) : hide");
|
||||||
|
|
||||||
char *priv = prefs_get_string(PREF_ROSTER_PRIVATE);
|
char *priv = prefs_get_string(PREF_ROSTER_PRIVATE);
|
||||||
if (g_strcmp0(priv, "room") == 0) {
|
if (g_strcmp0(priv, "room") == 0) {
|
||||||
cons_show("Roster private (/roster) : room");
|
cons_show("Roster private (/roster) : room");
|
||||||
} else if (g_strcmp0(priv, "group") == 0) {
|
} else if (g_strcmp0(priv, "group") == 0) {
|
||||||
cons_show("Roster private (/roster) : group");
|
cons_show("Roster private (/roster) : group");
|
||||||
} else {
|
} else {
|
||||||
cons_show("Roster private (/roster) : OFF");
|
cons_show("Roster private (/roster) : OFF");
|
||||||
}
|
}
|
||||||
|
|
||||||
char *rooms_pos = prefs_get_string(PREF_ROSTER_ROOMS_POS);
|
char *rooms_pos = prefs_get_string(PREF_ROSTER_ROOMS_POS);
|
||||||
cons_show("Roster rooms position (/roster) : %s", rooms_pos);
|
cons_show("Roster rooms position (/roster) : %s", rooms_pos);
|
||||||
prefs_free_string(rooms_pos);
|
prefs_free_string(rooms_pos);
|
||||||
|
|
||||||
char *rooms_order = prefs_get_string(PREF_ROSTER_ROOMS_ORDER);
|
char *rooms_order = prefs_get_string(PREF_ROSTER_ROOMS_ORDER);
|
||||||
cons_show("Roster rooms order (/roster) : %s", rooms_order);
|
cons_show("Roster rooms order (/roster) : %s", rooms_order);
|
||||||
prefs_free_string(rooms_order);
|
prefs_free_string(rooms_order);
|
||||||
|
|
||||||
char *roomsunread = prefs_get_string(PREF_ROSTER_ROOMS_UNREAD);
|
char *roomsunread = prefs_get_string(PREF_ROSTER_ROOMS_UNREAD);
|
||||||
if (g_strcmp0(roomsunread, "before") == 0) {
|
if (g_strcmp0(roomsunread, "before") == 0) {
|
||||||
cons_show("Roster rooms unread (/roster) : before");
|
cons_show("Roster rooms unread (/roster) : before");
|
||||||
} else if (g_strcmp0(roomsunread, "after") == 0) {
|
} else if (g_strcmp0(roomsunread, "after") == 0) {
|
||||||
cons_show("Roster rooms unread (/roster) : after");
|
cons_show("Roster rooms unread (/roster) : after");
|
||||||
} else {
|
} else {
|
||||||
cons_show("Roster rooms unread (/roster) : OFF");
|
cons_show("Roster rooms unread (/roster) : OFF");
|
||||||
}
|
}
|
||||||
|
|
||||||
int size = prefs_get_roster_size();
|
int size = prefs_get_roster_size();
|
||||||
cons_show("Roster size (/roster) : %d", size);
|
cons_show("Roster size (/roster) : %d", size);
|
||||||
|
|
||||||
if (prefs_get_boolean(PREF_ROSTER_WRAP))
|
if (prefs_get_boolean(PREF_ROSTER_WRAP))
|
||||||
cons_show("Roster wrap (/roster) : ON");
|
cons_show("Roster wrap (/roster) : ON");
|
||||||
else
|
else
|
||||||
cons_show("Roster wrap (/roster) : OFF");
|
cons_show("Roster wrap (/roster) : OFF");
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
@ -1664,11 +1664,11 @@ cons_show_chat_prefs(void)
|
|||||||
void
|
void
|
||||||
cons_inpblock_setting(void)
|
cons_inpblock_setting(void)
|
||||||
{
|
{
|
||||||
cons_show("Input timeout (/inpblock) : %d milliseconds", prefs_get_inpblock());
|
cons_show("Input timeout (/inpblock) : %d milliseconds", prefs_get_inpblock());
|
||||||
if (prefs_get_boolean(PREF_INPBLOCK_DYNAMIC)) {
|
if (prefs_get_boolean(PREF_INPBLOCK_DYNAMIC)) {
|
||||||
cons_show("Dynamic timeout (/inpblock) : ON");
|
cons_show("Dynamic timeout (/inpblock) : ON");
|
||||||
} else {
|
} else {
|
||||||
cons_show("Dynamic timeout (/inpblock) : OFF");
|
cons_show("Dynamic timeout (/inpblock) : OFF");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user