about summary refs log tree commit diff stats
path: root/src/command
diff options
context:
space:
mode:
authorswirl <roachh@protonmail.com>2021-07-18 17:25:07 -0400
committerswirl <roachh@protonmail.com>2021-08-17 14:09:48 -0400
commit8a6f1b52d76213d213c6e43f2b1d2fa40c3d09ea (patch)
treecd2da6fd29dd3e80a26f1b5da4658cfe49dad4c4 /src/command
parent4d3f26154e2bcb9b975eb5236982cf8f19d9bed1 (diff)
downloadprofani-tty-8a6f1b52d76213d213c6e43f2b1d2fa40c3d09ea.tar.gz
progress on fixing registration
doesnt segfault on register, but aborts when you type after registering

need to find a way to disconnect later
Diffstat (limited to 'src/command')
-rw-r--r--src/command/cmd_funcs.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/command/cmd_funcs.c b/src/command/cmd_funcs.c
index ed0a502f..b7c6afad 100644
--- a/src/command/cmd_funcs.c
+++ b/src/command/cmd_funcs.c
@@ -9595,12 +9595,10 @@ cmd_register(ProfWin* window, const char* const command, gchar** args)
 
     if (g_strcmp0(passwd, confirm_passwd) == 0) {
         log_info("Attempting to register account %s on server %s.", username, server);
-        connection_register((server), port, tls_policy, auth_policy, username, passwd);
-            //iq_register_new_account(username, passwd);
+        connection_register(server, port, tls_policy, auth_policy, username, passwd);
     } else {
         cons_show("The two passwords do not match.");
     }
-    //jabber_conn_status_t conn_status = cl_ev_connect_raw(server, port, tls_policy, auth_policy);
 
     if (connection_get_status() == JABBER_DISCONNECTED) {
         cons_show_error("Connection attempt to server %s port %d failed.", server, port);
@@ -9610,7 +9608,6 @@ cmd_register(ProfWin* window, const char* const command, gchar** args)
 
     free(passwd);
     free(confirm_passwd);
-    //}
 
     options_destroy(options);