Expose stored connections on the connections tab. Still half-baked, but I'm going to use this.
git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@4132 ed5197a5-7fde-0310-b194-c3ffbd925b24
This commit is contained in:
@ -1279,9 +1279,9 @@ void tf_ssb_db_forget_stored_connection(tf_ssb_t* ssb, const char* address, int
|
||||
sqlite3_stmt* statement;
|
||||
if (sqlite3_prepare(db, "DELETE FROM connections WHERE host = ? AND port = ? AND key = ?", -1, &statement, NULL) == SQLITE_OK)
|
||||
{
|
||||
if (sqlite3_bind_text(statement, 0, address, -1, NULL) != SQLITE_OK ||
|
||||
sqlite3_bind_int(statement, 1, port) != SQLITE_OK ||
|
||||
sqlite3_bind_text(statement, 2, pubkey, -1, NULL) != SQLITE_OK ||
|
||||
if (sqlite3_bind_text(statement, 1, address, -1, NULL) != SQLITE_OK ||
|
||||
sqlite3_bind_int(statement, 2, port) != SQLITE_OK ||
|
||||
sqlite3_bind_text(statement, 3, pubkey, -1, NULL) != SQLITE_OK ||
|
||||
sqlite3_step(statement) != SQLITE_DONE)
|
||||
{
|
||||
printf("Delete stored connection: %s.\n", sqlite3_errmsg(db));
|
||||
|
Reference in New Issue
Block a user