Inverted function argument (keep_data -> delete_data).
This commit is contained in:
parent
bc85c337a6
commit
0e61f47b66
@ -352,13 +352,13 @@ tox_weechat_identity_for_buffer(struct t_gui_buffer *buffer)
|
||||
|
||||
void
|
||||
tox_weechat_identity_delete(struct t_tox_weechat_identity *identity,
|
||||
bool keep_data)
|
||||
bool delete_data)
|
||||
{
|
||||
char *data_path = tox_weechat_identity_data_file_path(identity);
|
||||
|
||||
tox_weechat_identity_free(identity);
|
||||
|
||||
if (!keep_data)
|
||||
if (delete_data)
|
||||
unlink(data_path);
|
||||
}
|
||||
|
||||
|
@ -78,7 +78,7 @@ tox_weechat_identity_for_buffer(struct t_gui_buffer *buffer);
|
||||
|
||||
void
|
||||
tox_weechat_identity_delete(struct t_tox_weechat_identity *identity,
|
||||
bool keep_data);
|
||||
bool delete_data);
|
||||
|
||||
void
|
||||
tox_weechat_identity_free(struct t_tox_weechat_identity *identity);
|
||||
|
Loading…
Reference in New Issue
Block a user