this_user.c~
MudOSa4DGD/mudlib/dgd/lib/sys/kfun/this_user.c~ · 279 B
From the archive MudOSa4DGD-30.06.98.tar.gz
Download the archive « Back to the archive contents
/*
* this_user.c
*
* Add security to this_user()
*
* (C) Frank Schmidt, Jesus@NorseMUD
*
*/
#include <objects.h>
/* only return user object if we got driver privilege */
static object this_user() {
if (DRIVER_PRIV())
return ::this_user();
else
illegal();
}