immortal_exists.c
final_realms_fluffos_v1/lib/secure/simul_efun/immortal_exists.c · 498 B
From the archive final_realms_fluffos_v1.zip
Download the archive « Back to the archive contents
// /secure/simul_efun/user_exists.c
// from the RotD Mudlib
// returns true if there is such a player
// created by Descartes of Borg 930822
//
// Now this returns true if there is an immortal with the name.
// Baldrick, nov '97.
#include <dirs.h>
int immortal_exists(string str) {
int ret;
seteuid((string)master()->get_root_uid());
if (file_exists("/immortals/"+str[0..0]+"/"+str+".o"))
ret = 1;
else
ret = 0;
seteuid(0);
return ret;
}