diff --git a/src/chat.c b/src/chat.c index 59a70c7..27ebb29 100644 --- a/src/chat.c +++ b/src/chat.c @@ -902,7 +902,7 @@ static void chat_onInit(ToxWindow *self, Tox *m) line_info_init(ctx->hst); if (friends[self->num].logging_on) - log_enable(self->name, friends[self->num].pub_key, ctx->log); + log_enable(nick, friends[self->num].pub_key, ctx->log); execute(ctx->history, self, m, "/log", GLOBAL_COMMAND_MODE);