mirror of
https://github.com/Tha14/toxic.git
synced 2024-12-23 10:53:26 +01:00
fix
This commit is contained in:
parent
8dd25e1f0b
commit
3ca22aa714
@ -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);
|
||||
}
|
||||
|
||||
|
@ -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:
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user