addguest.c

lima-1.0b5/lib/trans/admincmds/addguest.c · 649 B

From the archive lima-1.0b5+driver.tar.gz

Download the archive   « Back to the archive contents

/* Do not remove the headers from this file! see /USAGE for more info. */

// Add Guest Command for Admins
// Vette April 4, 1997
//

//:ADMINCOMMAND
//USAGE: addguest [name]
//
// This command adds a guest to the guestlist for when the mud
// does not allow new players

#include <log.h>

inherit CMD;

#define SYNTAX	"Usage: addguest <name>\n"

void create()
{
    ::create();
    no_redirection();
}

private void main( string arg )
{

    if ( !check_privilege(1) )
	error("Must be an admin to use addguest.\n");

    if( !sizeof( arg ))
    {
	write( SYNTAX );
	return;
    }
    GUEST_D->add_guest(arg);
    write("Guest "+arg+" added.\n");
}

Site Stats

Snippets: 1791
Codebases: 571