From 1c819672ceb4b5a20dc1008688678cf7a3ac9dbf Mon Sep 17 00:00:00 2001 From: Gordon Quad Date: Mon, 5 Dec 2016 00:37:40 +0000 Subject: [PATCH] friend remove fix --- src/twc-commands.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/twc-commands.c b/src/twc-commands.c index 1015253..3a77041 100644 --- a/src/twc-commands.c +++ b/src/twc-commands.c @@ -380,7 +380,7 @@ twc_cmd_friend(const void *pointer, void *data, struct t_gui_buffer *buffer, TWC_CHECK_FRIEND_NUMBER(profile, friend_number, argv[2]); char *name = twc_get_name_nt(profile->tox, friend_number); - if (tox_friend_delete(profile->tox, friend_number, NULL) == 0) + if (tox_friend_delete(profile->tox, friend_number, NULL)) { weechat_printf(profile->buffer, "%sRemoved %s from friend list.",