mirror of
https://github.com/tbamud/tbamud.git
synced 2025-12-23 18:50:13 +01:00
[Jun 11 2008] - Rumble
Added notification via prompt for new MOTD and news entries. (thanks Jamdog) Added all option to the restore command. (thanks Jamdog) Added new trigger variable hasattached. (thanks Fizban)
This commit is contained in:
parent
c486097e81
commit
cfe59d3e04
14 changed files with 169 additions and 7 deletions
|
|
@ -17,6 +17,8 @@
|
|||
#include "improved-edit.h"
|
||||
#include "modify.h"
|
||||
|
||||
extern time_t motdmod;
|
||||
extern time_t newsmod;
|
||||
|
||||
void tedit_string_cleanup(struct descriptor_data *d, int terminator)
|
||||
{
|
||||
|
|
@ -38,6 +40,10 @@ void tedit_string_cleanup(struct descriptor_data *d, int terminator)
|
|||
fclose(fl);
|
||||
mudlog(CMP, LVL_GOD, TRUE, "OLC: %s saves '%s'.", GET_NAME(d->character), storage);
|
||||
write_to_output(d, "Saved.\r\n");
|
||||
if (!strcmp(storage, NEWS_FILE))
|
||||
newsmod = time(0);
|
||||
if (!strcmp(storage, MOTD_FILE))
|
||||
motdmod = time(0);
|
||||
}
|
||||
break;
|
||||
case STRINGADD_ABORT:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue