Formatting.

This commit is contained in:
Håvard Pettersson 2014-10-11 12:36:51 +02:00
parent a10b923ef9
commit cceb25409e
3 changed files with 4 additions and 10 deletions

View File

@ -58,7 +58,6 @@ twc_friend_request_add(struct t_twc_profile *profile,
int rc = twc_sqlite_add_friend_request(profile, request) == -1;
// add to list
if (rc == -1)
return -2;
@ -89,8 +88,7 @@ twc_friend_request_remove(struct t_twc_friend_request *request)
* Get friend request with a given index.
*/
struct t_twc_friend_request *
twc_friend_request_with_index(struct t_twc_profile *profile,
int64_t index)
twc_friend_request_with_index(struct t_twc_profile *profile, int64_t index)
{
return twc_sqlite_friend_request_with_id(profile, index);
}

View File

@ -332,10 +332,8 @@ twc_sqlite_friend_request_with_id(struct t_twc_profile *profile,
"SELECT id, tox_id, message "
"FROM friend_requests "
"WHERE id == ? AND profile_id == ?");
sqlite3_bind_int(statement, 1,
id);
sqlite3_bind_int(statement, 2,
profile_id);
sqlite3_bind_int(statement, 1, id);
sqlite3_bind_int(statement, 2, profile_id);
struct t_twc_friend_request *request;
int rc = sqlite3_step(statement);

View File

@ -225,9 +225,7 @@ twc_friend_request_callback(Tox *tox,
"%sReceived a friend request from %s with message \"%s\"; "
"accept it with \"/friend accept %d\"",
weechat_prefix("network"),
hex_address,
message_nt,
rc);
hex_address, message_nt, rc);
if (rc == -2)
{