mirror of
https://github.com/Tha14/toxic.git
synced 2024-11-26 22:43: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];
|
char timefrmt[TIME_STR_SIZE];
|
||||||
get_time_str(timefrmt, sizeof(timefrmt));
|
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);
|
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 */
|
/* for type-specific formatting in print function */
|
||||||
switch (type) {
|
switch (type) {
|
||||||
case GROUP_ACTION:
|
case IN_ACTION:
|
||||||
len += 3;
|
len += 3;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case OUT_ACTION:
|
case OUT_ACTION:
|
||||||
case IN_ACTION:
|
|
||||||
len += 5;
|
len += 5;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
@ -326,7 +325,6 @@ void line_info_print(ToxWindow *self)
|
|||||||
wprintw(win, "\n", line->msg);
|
wprintw(win, "\n", line->msg);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case GROUP_ACTION:
|
|
||||||
case OUT_ACTION_READ:
|
case OUT_ACTION_READ:
|
||||||
case OUT_ACTION:
|
case OUT_ACTION:
|
||||||
case IN_ACTION:
|
case IN_ACTION:
|
||||||
|
@ -38,7 +38,6 @@ enum {
|
|||||||
IN_ACTION,
|
IN_ACTION,
|
||||||
OUT_ACTION,
|
OUT_ACTION,
|
||||||
OUT_ACTION_READ, /* same as OUT_MSG_READ but for actions */
|
OUT_ACTION_READ, /* same as OUT_MSG_READ but for actions */
|
||||||
GROUP_ACTION,
|
|
||||||
PROMPT,
|
PROMPT,
|
||||||
CONNECTION,
|
CONNECTION,
|
||||||
NAME_CHANGE,
|
NAME_CHANGE,
|
||||||
|
Loading…
Reference in New Issue
Block a user