1
0
mirror of https://github.com/Tha14/toxic.git synced 2026-01-25 01:13:16 +01:00

don't share chatlogs across data files (changes log naming convention)

This commit is contained in:
Jfreegman
2014-09-22 17:09:39 -04:00
parent 3c74385f5c
commit 1c16467eb9
6 changed files with 74 additions and 48 deletions

View File

@@ -503,8 +503,11 @@ static void groupchat_onInit(ToxWindow *self, Tox *m)
line_info_init(ctx->hst);
if (user_settings_->autolog == AUTOLOG_ON)
log_enable(self->name, NULL, ctx->log);
if (user_settings_->autolog == AUTOLOG_ON) {
char myid[TOX_FRIEND_ADDRESS_SIZE];
tox_get_address(m, (uint8_t *) myid);
log_enable(self->name, myid, NULL, ctx->log, LOG_GROUP);
}
execute(ctx->history, self, m, "/log", GLOBAL_COMMAND_MODE);