Skip to content

Commit

Permalink
Rename disable_acks option to send_acks.
Browse files Browse the repository at this point in the history
Invert the logic and rename "disable_acks" option to "send_acks"
  • Loading branch information
sm00th committed Jan 1, 2016
1 parent 303c777 commit de68da4
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions README
Original file line number Diff line number Diff line change
Expand Up @@ -75,9 +75,9 @@ This section describes options available throug "account set" bitlbee command
Maximum number of backlog messages per channel to fetch on connection.
Unlike twitter implementation in bitlbee this won't dump seen messages.

- disable_acks (type: boolean; default: no)
- send_acks (type: boolean; default: yes)
By default bitlbee-discord will send an "ack" for every message received,
thus marking everything as "read" on mobile/webapp. Setting this to true
thus marking everything as "read" on mobile/webapp. Setting this to false
will disable all acks from bitlbee-discord.

Bugs
Expand Down
2 changes: 1 addition & 1 deletion src/discord-http.c
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ void discord_http_send_msg(struct im_connection *ic, const char *id,
void discord_http_send_ack(struct im_connection *ic, const char *channel_id,
const char *message_id)
{
if (set_getbool(&ic->acc->set, "disable_acks") == TRUE) {
if (set_getbool(&ic->acc->set, "send_acks") == FALSE) {
return;
}

Expand Down
2 changes: 1 addition & 1 deletion src/discord.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ static void discord_init(account_t *acc)
s->flags |= ACC_SET_OFFLINE_ONLY;

s = set_add(&acc->set, "voice_status_notify", "off", set_eval_bool, acc);
s = set_add(&acc->set, "disable_acks", "off", set_eval_bool, acc);
s = set_add(&acc->set, "send_acks", "on", set_eval_bool, acc);
s = set_add(&acc->set, "edit_prefix", "EDIT: ", NULL, acc);
s = set_add(&acc->set, "urlinfo_handle", "urlinfo", NULL, acc);

Expand Down

0 comments on commit de68da4

Please sign in to comment.