diff options
Diffstat (limited to 'src/ui')
-rw-r--r-- | src/ui/console.c | 13 | ||||
-rw-r--r-- | src/ui/core.c | 4 | ||||
-rw-r--r-- | src/ui/inputwin.c | 3 | ||||
-rw-r--r-- | src/ui/ui.h | 1 |
4 files changed, 18 insertions, 3 deletions
diff --git a/src/ui/console.c b/src/ui/console.c index 9fecf4e3..822da420 100644 --- a/src/ui/console.c +++ b/src/ui/console.c @@ -790,6 +790,9 @@ cons_show_account(ProfAccount *account) cons_show ("enabled : FALSE"); } cons_show ("jid : %s", account->jid); + if (account->password != NULL) { + cons_show ("password : [redacted]"); + } if (account->resource != NULL) { cons_show ("resource : %s", account->resource); } @@ -937,6 +940,15 @@ cons_splash_setting(void) } void +cons_autoconnect_setting(void) +{ + if (prefs_get_string(PREF_CONNECT_ACCOUNT) != NULL) + cons_show("Autoconnect (/autoconnect) : %s", prefs_get_string(PREF_CONNECT_ACCOUNT)); + else + cons_show("Autoconnect (/autoconnect) : OFF"); +} + +void cons_vercheck_setting(void) { if (prefs_get_boolean(PREF_VERCHECK)) @@ -1212,6 +1224,7 @@ cons_show_connection_prefs(void) cons_show(""); cons_reconnect_setting(); cons_autoping_setting(); + cons_autoconnect_setting(); wins_refresh_console(); cons_alert(); diff --git a/src/ui/core.c b/src/ui/core.c index e436a4af..c5cfe284 100644 --- a/src/ui/core.c +++ b/src/ui/core.c @@ -847,8 +847,8 @@ ui_new_chat_win(const char * const to) if (contact != NULL) { if (strcmp(p_contact_presence(contact), "offline") == 0) { - const char const *show = p_contact_presence(contact); - const char const *status = p_contact_status(contact); + const char * const show = p_contact_presence(contact); + const char * const status = p_contact_status(contact); win_show_status_string(window, to, show, status, NULL, "--", "offline"); } } diff --git a/src/ui/inputwin.c b/src/ui/inputwin.c index dfcb533d..d5b882d7 100644 --- a/src/ui/inputwin.c +++ b/src/ui/inputwin.c @@ -35,6 +35,7 @@ #include "command/command.h" #include "common.h" +#include "config/accounts.h" #include "config/preferences.h" #include "config/theme.h" #include "log.h" @@ -207,7 +208,7 @@ inp_get_password(char *passwd) _clear_input(); _inp_win_refresh(); noecho(); - mvwgetnstr(inp_win, 0, 1, passwd, 20); + mvwgetnstr(inp_win, 0, 1, passwd, MAX_PASSWORD_SIZE); wmove(inp_win, 0, 0); echo(); status_bar_clear(); diff --git a/src/ui/ui.h b/src/ui/ui.h index 9c1cba52..13e96f27 100644 --- a/src/ui/ui.h +++ b/src/ui/ui.h @@ -216,6 +216,7 @@ void cons_autoaway_setting(void); void cons_reconnect_setting(void); void cons_autoping_setting(void); void cons_priority_setting(void); +void cons_autoconnect_setting(void); // status bar actions void status_bar_refresh(void); |