diff options
author | Peter Vilim <peterlvilim@users.noreply.github.com> | 2015-01-06 23:00:02 -0600 |
---|---|---|
committer | Peter Vilim <peterlvilim@users.noreply.github.com> | 2015-01-06 23:00:02 -0600 |
commit | 401835f32a61c6e47bd34be20753f4555c56b064 (patch) | |
tree | d2e51d04112d760d5b4da82a2bd0ca9a58410d4b /src/config/account.c | |
parent | 99a87a148f13854f4337edf0a6b2a56cae29d5c3 (diff) | |
download | profani-tty-401835f32a61c6e47bd34be20753f4555c56b064.tar.gz |
Add support for evaluated password
Diffstat (limited to 'src/config/account.c')
-rw-r--r-- | src/config/account.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/config/account.c b/src/config/account.c index 64819d8c..3ca63db0 100644 --- a/src/config/account.c +++ b/src/config/account.c @@ -43,7 +43,7 @@ ProfAccount* account_new(const gchar * const name, const gchar * const jid, - const gchar * const password, gboolean enabled, const gchar * const server, + const gchar * const password, const gchar * eval_password, gboolean enabled, const gchar * const server, int port, const gchar * const resource, const gchar * const last_presence, const gchar * const login_presence, int priority_online, int priority_chat, int priority_away, int priority_xa, int priority_dnd, @@ -67,6 +67,12 @@ account_new(const gchar * const name, const gchar * const jid, new_account->password = NULL; } + if (eval_password != NULL) { + new_account->eval_password = strdup(eval_password); + } else { + new_account->eval_password = NULL; + } + new_account->enabled = enabled; if (server != NULL) { @@ -168,4 +174,4 @@ account_free(ProfAccount *account) g_list_free_full(account->otr_always, g_free); free(account); } -} \ No newline at end of file +} |