Updated Spanish and Galego

This commit is contained in:
Michiel Broek
2003-04-07 20:18:16 +00:00
parent f01d13146e
commit 03f3cb1c12
3 changed files with 21 additions and 14 deletions

View File

@@ -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++) {