mirror of
https://github.com/tbamud/tbamud.git
synced 2026-03-02 15:31:44 +01:00
Migrated away from using asctime() and ctime() - in favor of strftime().
Added year to several datestamps. Unbounded dates are locale-specific. - Minor re-formatting was needed for STAT PLAYER and SHOW PLAYER. The 'slay' feature of do_kill now requires a GRGOD or higher. 'last *' and 'last all' are now synonyms.
This commit is contained in:
@@ -778,7 +778,7 @@ void tag_argument(char *argument, char *tag)
|
||||
* deleted by an immortal, or deleted by the auto-wipe system (if enabled). */
|
||||
void remove_player(int pfilepos)
|
||||
{
|
||||
char filename[MAX_STRING_LENGTH];
|
||||
char filename[MAX_STRING_LENGTH], timestr[25];
|
||||
int i;
|
||||
|
||||
if (!*player_table[pfilepos].name)
|
||||
@@ -790,9 +790,10 @@ void remove_player(int pfilepos)
|
||||
unlink(filename);
|
||||
}
|
||||
|
||||
strftime(timestr, sizeof(timestr), "%c", localtime(&(player_table[pfilepos].last)));
|
||||
log("PCLEAN: %s Lev: %d Last: %s",
|
||||
player_table[pfilepos].name, player_table[pfilepos].level,
|
||||
asctime(localtime(&player_table[pfilepos].last)));
|
||||
timestr);
|
||||
player_table[pfilepos].name[0] = '\0';
|
||||
|
||||
/* Update index table. */
|
||||
|
||||
Reference in New Issue
Block a user