diff --git a/src/groupchat.c b/src/groupchat.c index 44568e2..7ff85d1 100644 --- a/src/groupchat.c +++ b/src/groupchat.c @@ -197,7 +197,7 @@ static void groupchat_onGroupAction(ToxWindow *self, Tox *m, int groupnum, int p char timefrmt[TIME_STR_SIZE]; get_time_str(timefrmt, sizeof(timefrmt)); - line_info_add(self, timefrmt, nick, NULL, GROUP_ACTION, 0, 0, "%s", action); + line_info_add(self, timefrmt, nick, NULL, IN_ACTION, 0, 0, "%s", action); write_to_log(action, nick, ctx->log, true); } diff --git a/src/line_info.c b/src/line_info.c index 2523c8b..a6057c0 100644 --- a/src/line_info.c +++ b/src/line_info.c @@ -155,12 +155,11 @@ void line_info_add(ToxWindow *self, char *timestr, char *name1, char *name2, uin /* for type-specific formatting in print function */ switch (type) { - case GROUP_ACTION: + case IN_ACTION: len += 3; break; case OUT_ACTION: - case IN_ACTION: len += 5; break; @@ -326,7 +325,6 @@ void line_info_print(ToxWindow *self) wprintw(win, "\n", line->msg); break; - case GROUP_ACTION: case OUT_ACTION_READ: case OUT_ACTION: case IN_ACTION: diff --git a/src/line_info.h b/src/line_info.h index 32f04e9..a7024fc 100644 --- a/src/line_info.h +++ b/src/line_info.h @@ -38,7 +38,6 @@ enum { IN_ACTION, OUT_ACTION, OUT_ACTION_READ, /* same as OUT_MSG_READ but for actions */ - GROUP_ACTION, PROMPT, CONNECTION, NAME_CHANGE,