#include "support.h"
#include "config.h"
#include "control.h"
-#include "dynloader.h"
+#include "serv_extensions.h"
#include "room_ops.h"
#include "user_ops.h"
#include "policy.h"
return;
}
- sprintf(buf,"./bio/%ld",CC->usersupp.usernum);
+ snprintf(buf, sizeof buf, "./bio/%ld",CC->usersupp.usernum);
fp = fopen(buf,"w");
if (fp == NULL) {
cprintf("%d Cannot create file\n",ERROR);
cprintf("%d No such user.\n",ERROR+NO_SUCH_USER);
return;
}
- sprintf(buf,"./bio/%ld",ruser.usernum);
+ snprintf(buf, sizeof buf, "./bio/%ld",ruser.usernum);
- cprintf("%d OK|%s|%ld|%d|%d|%ld|%ld\n", LISTING_FOLLOWS,
+ cprintf("%d OK|%s|%ld|%d|%ld|%ld|%ld\n", LISTING_FOLLOWS,
ruser.fullname, ruser.usernum, ruser.axlevel,
- ruser.lastcall, ruser.timescalled, ruser.posted);
+ (long)ruser.lastcall, ruser.timescalled, ruser.posted);
fp = fopen(buf,"r");
if (fp == NULL)
cprintf("%s has no bio on file.\n", ruser.fullname);
-char *Dynamic_Module_Init(void)
+char *serv_bio_init(void)
{
CtdlRegisterProtoHook(cmd_ebio, "EBIO", "Enter your bio");
CtdlRegisterProtoHook(cmd_rbio, "RBIO", "Read a user's bio");