Skip to content

Commit

Permalink
Merge pull request TempusMUD#502 from origintempus/add-year-to-bug-fi…
Browse files Browse the repository at this point in the history
…le-entries

Add year to typo/bug/idea messages
  • Loading branch information
wishgit committed Jan 14, 2015
2 parents 1c61458 + eec2736 commit 85ca59e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/misc/act.other.c
Expand Up @@ -997,7 +997,7 @@ ACMD(do_display)
ACMD(do_gen_write)
{
FILE *fl;
char *tmp;
char time_buf[30];
const char *filename;
struct stat fbuf;
extern int max_filesize;
Expand All @@ -1022,7 +1022,7 @@ ACMD(do_gen_write)
}

ct = time(NULL);
tmp = asctime(localtime(&ct));
strftime(time_buf, 30, "%b %e, %Y", localtime(&ct));

if (IS_NPC(ch)) {
send_to_char(ch, "Monsters can't have ideas - Go away.\r\n");
Expand Down Expand Up @@ -1053,7 +1053,7 @@ ACMD(do_gen_write)
send_to_char(ch, "Could not open the file. Sorry.\r\n");
return;
}
fprintf(fl, "%-8s (%6.6s) [%5d] %s\n", GET_NAME(ch), (tmp + 4),
fprintf(fl, "%-8s (%s) [%5d] %s\n", GET_NAME(ch), time_buf,
ch->in_room->number, argument);
fclose(fl);
send_to_char(ch, "Okay. Thanks!\r\n");
Expand Down

0 comments on commit 85ca59e

Please sign in to comment.