1
0
mirror of https://github.com/Tha14/toxic.git synced 2025-07-03 03:36:45 +02:00

add prompt logging support

This commit is contained in:
Jfreegman
2014-03-01 18:06:35 -05:00
parent 7109b8fa18
commit 7f38c3c6e7
7 changed files with 68 additions and 27 deletions

View File

@ -681,7 +681,7 @@ static void chat_onInit(ToxWindow *self, Tox *m)
memset(ctx->log, 0, sizeof(struct chatlog));
if (friends[self->num].logging_on)
log_enable(ctx->log, self->name, friends[self->num].pub_key);
log_enable(self->name, friends[self->num].pub_key, ctx->log);
wprintw(ctx->history, "\n\n");
execute(ctx->history, self, m, "/help", CHAT_COMMAND_MODE);