diff --git a/lang/galego.txt b/lang/galego.txt index 03119179..1bb16e9b 100644 --- a/lang/galego.txt +++ b/lang/galego.txt @@ -9,12 +9,12 @@ SN| |Password: |Sobrepasouse o n£mero m ximo de erros permitido... |O teu nome ou a tua PASSWORD son incorrectos -HR|Export to (H)ome or (R)ules directory: -|Message exported to rules directory as -|No rules found for this area -|You are not allowed to delete that message -|Offline Reader: Extended Info turned ON -|Offline Reader: Extended Info turned OFF +HR|Exportar ¢ directrio (P)ersoal ou ¢ de (R)egras: +|Mesaxe exportada ¢ directorio de regras coma +|Non se atopan regras pra esta  rea +|No podes borrar esta mensaxe. +|Lector Offline: Informaci¢n extendida ACTIVADA +|Lector Offline: Informaci¢n extendida DESACTIVADA |Tempo retirado hoxe : |Bytes retirados hoxe : DRS|(D)epositar, (R)etirar, (S)air : @@ -477,4 +477,4 @@ YN|Adxuntar ficheiro [s/N]: |Enderezo vello: |¨Queres usa-lo alias ( SN|) nesta mensaxe? [S/n]: -|No more areas with unread messages +|Non hai mais  reas con mensaxes sen ler. diff --git a/lang/spanish.txt b/lang/spanish.txt index 2db9e77a..0e4c7d20 100644 --- a/lang/spanish.txt +++ b/lang/spanish.txt @@ -9,12 +9,12 @@ SN| |Password: |El n£mero de errores permitidos se ha sobrepasado ... |Tu nombre o tu PASSWORD son incorrectos -HR|Export to (H)ome or (R)ules directory: -|Message exported to rules directory as -|No rules found for this area -|You are not allowed to delete that message -|Offline Reader: Extended Info turned ON -|Offline Reader: Extended Info turned OFF +PR|Exportar al directorio (P)ersonal o de (R)eglas: +|Mensaje exportado al deirectorio de reglas como +|No se encuentran reglas para este  rea. +|No puedes borrar este Mensaje. +|Lector Offline: Informaci¢n extendida ACTIVADA +|Lector Offline: Informaci¢n extendida DESACTIVADA |Tiempo retirado hoy : |Bytes retirados hoy : DRS|(D)epositar, (R)etirar, (S)alir : diff --git a/mbtask/taskchat.c b/mbtask/taskchat.c index f6f0fc4a..0a6b1adf 100644 --- a/mbtask/taskchat.c +++ b/mbtask/taskchat.c @@ -348,12 +348,19 @@ void chat_cleanuser(pid_t pid) void chat_msg(int channel, char *nick, char *msg) { int i; - char buf[128]; + char buf[128], *log; if (nick == NULL) sprintf(buf, "%s", msg); else sprintf(buf, "<%s> %s", nick, msg); + + if (CFG.iAutoLog && strlen(CFG.chat_log)) { + log = calloc(PATH_MAX, sizeof(char)); + sprintf(log, "%s/log/%s", getenv("MBSE_ROOT"), CFG.chat_log); + ulog(log, (char *)"+", chat_channels[channel].name, (char *)"-1", buf); + free(log); + } buf[79] = '\0'; for (i = 0; i < MAXCLIENT; i++) {