diff options
author | rob rob@31f1291d-b8d6-0310-a050-a5561fc1590b <rob rob@31f1291d-b8d6-0310-a050-a5561fc1590b@5417fbe8-f217-4b02-8779-1006273d7864> | 2006-08-22 09:28:08 +0000 |
---|---|---|
committer | rob rob@31f1291d-b8d6-0310-a050-a5561fc1590b <rob rob@31f1291d-b8d6-0310-a050-a5561fc1590b@5417fbe8-f217-4b02-8779-1006273d7864> | 2006-08-22 09:28:08 +0000 |
commit | d933cd62cb7b88620aa6de431a41e565f96cf056 (patch) | |
tree | 52208b5dbe510d0cfa652acbd3f51ef6b0866256 /src/log.c | |
parent | d222e75a6dc2a6eb5c48ce6f7a121286b5da7142 (diff) |
BUILD : 1.7.15 (1139) BUGS : N/A NOTES : Applied pelxus3 fixs from ThaPrince
git-svn-id: svn://svn.anope.org/anope/trunk@1139 31f1291d-b8d6-0310-a050-a5561fc1590b
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@862 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src/log.c')
-rw-r--r-- | src/log.c | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -31,7 +31,7 @@ static int get_logname(char *name, int count, struct tm *tm) time(&t); tm = localtime(&t); } - + /* fix bug 577 */ strftime(timestamp, sizeof(timestamp), "%Y%m%d", tm); snprintf(name, count, "logs/%s.%s", log_filename, timestamp); @@ -93,7 +93,7 @@ int open_log(void) if (logfile) return 0; - + /* if removed again.. get_logname is always 1 */ get_logname(name, sizeof(name), NULL); logfile = fopen(name, "a"); @@ -320,7 +320,8 @@ void fatal_sockerror(const char *fmt, ...) fprintf(stderr, "%s FATAL: %s: %s\n", buf, buf2, ano_sockstrerror(errno_save)); if (servsock >= 0) - anope_cmd_global(NULL, "FATAL ERROR! %s: %s", buf2, strerror(errno_save)); + anope_cmd_global(NULL, "FATAL ERROR! %s: %s", buf2, + strerror(errno_save)); exit(1); } |