mirror of
https://git.jabber.space/devs/cproof.git
synced 2026-07-24 01:56:21 +00:00
Remove redundant tls secured function
This commit is contained in:
@@ -472,7 +472,7 @@ cons_check_version(gboolean not_available_msg)
|
||||
}
|
||||
|
||||
void
|
||||
cons_show_login_success(ProfAccount *account, int secured)
|
||||
cons_show_login_success(ProfAccount *account, gboolean secured)
|
||||
{
|
||||
ProfWin *console = wins_get_console();
|
||||
win_vprint(console, '-', 0, NULL, NO_EOL, 0, "", "%s logged in successfully, ", account->jid);
|
||||
|
||||
@@ -352,7 +352,7 @@ ui_group_removed(const char *const contact, const char *const group)
|
||||
}
|
||||
|
||||
void
|
||||
ui_handle_login_account_success(ProfAccount *account, int secured)
|
||||
ui_handle_login_account_success(ProfAccount *account, gboolean secured)
|
||||
{
|
||||
if (account->theme) {
|
||||
if (theme_load(account->theme)) {
|
||||
@@ -378,7 +378,7 @@ ui_handle_login_account_success(ProfAccount *account, int secured)
|
||||
cons_show_login_success(account, secured);
|
||||
title_bar_set_presence(contact_presence);
|
||||
title_bar_set_connected(TRUE);
|
||||
title_bar_set_tls(secured ? TRUE : FALSE);
|
||||
title_bar_set_tls(secured);
|
||||
|
||||
GString *fulljid = g_string_new(account->jid);
|
||||
g_string_append(fulljid, "/");
|
||||
|
||||
@@ -118,7 +118,7 @@ void ui_show_software_version(const char *const jid, const char *const presence
|
||||
const char *const version, const char *const os);
|
||||
void ui_prune_wins(void);
|
||||
void ui_auto_away(char *message, gint time, resource_presence_t res_presence);
|
||||
void ui_handle_login_account_success(ProfAccount *account, int secured);
|
||||
void ui_handle_login_account_success(ProfAccount *account, gboolean secured);
|
||||
void ui_update_presence(const resource_presence_t resource_presence, const char *const message, const char *const show);
|
||||
void ui_write(char *line, int offset);
|
||||
void ui_invalid_command_usage(const char *const cmd, void (*setting_func)(void));
|
||||
@@ -260,7 +260,7 @@ void cons_show_themes(GSList *themes);
|
||||
void cons_show_scripts(GSList *scripts);
|
||||
void cons_show_script(const char *const script, GSList *commands);
|
||||
void cons_show_aliases(GList *aliases);
|
||||
void cons_show_login_success(ProfAccount *account, int secured);
|
||||
void cons_show_login_success(ProfAccount *account, gboolean secured);
|
||||
void cons_show_software_version(const char *const jid, const char *const presence, const char *const name,
|
||||
const char *const version, const char *const os);
|
||||
void cons_show_account_list(gchar **accounts);
|
||||
|
||||
Reference in New Issue
Block a user