1
0
mirror of https://github.com/Tha14/toxic.git synced 2024-11-23 03:13:01 +01:00
This commit is contained in:
Jfreegman 2014-09-07 21:43:16 -04:00
parent 8dd25e1f0b
commit 3ca22aa714
No known key found for this signature in database
GPG Key ID: 3627F3144076AE63
3 changed files with 2 additions and 5 deletions

View File

@ -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);
}

View File

@ -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:

View File

@ -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,