diff options
author | James Booth <boothj5@gmail.com> | 2013-01-27 20:23:42 +0000 |
---|---|---|
committer | James Booth <boothj5@gmail.com> | 2013-01-27 20:23:42 +0000 |
commit | 972ca34d4b45f8a34997d480dec9cdcd39bae811 (patch) | |
tree | 57abad987380c18a9ef67edf9bc87f3e98534663 /src/profanity.c | |
parent | b9361542992118393fe6c39a8e0a2ec916696485 (diff) | |
download | profani-tty-972ca34d4b45f8a34997d480dec9cdcd39bae811.tar.gz |
Refactored connecting, and reconnecting
The user either logs in with an account, in which case its name, and the password is kept for reconnects. Or the user can login with a jid (and server) which does not currently exist as a local account. On success an account is created, with the jid as the name.
Diffstat (limited to 'src/profanity.c')
-rw-r--r-- | src/profanity.c | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/src/profanity.c b/src/profanity.c index 839d6e53..193f486e 100644 --- a/src/profanity.c +++ b/src/profanity.c @@ -214,20 +214,6 @@ prof_handle_login_account_success(char *account_name) } void -prof_handle_login_success(const char *jid, const char *altdomain) -{ - const char *msg = "logged in successfully."; - cons_show("%s %s", jid, msg); - title_bar_set_status(PRESENCE_ONLINE); - log_info("%s %s", jid, msg); - win_current_page_off(); - status_bar_print_message(jid); - status_bar_refresh(); - - accounts_add(jid, altdomain); -} - -void prof_handle_gone(const char * const from) { win_show_gone(from); |