/*
Copyright (C) 1991, Marcus J. Ranum. All rights reserved.
*/
#ifndef lint
static char RCSid[] = "$Header: /home/mjr/hacks/umud/CMD/RCS/kill.c,v 1.1 92/05/26 22:20:01 mjr Exp $";
#endif
/* configure all options BEFORE including system stuff. */
#include "config.h"
#include "mud.h"
#include "match.h"
#include "vars.h"
/* ARGSUSED */
cmd_kill(argc,argv,who,aswho)
int argc;
char *argv[];
char *who;
char *aswho;
{
char ob[MAXOID];
char *xx;
if(matchplayers(who,argv[1],ut_loc(who),MTCH_UNIQ|MTCH_MEOK,ob))
return(UERR_NOMATCH);
ut_home_player(ob,ob,ut_loc(who));
xx = ut_name(ob);
ut_roombcast(ut_loc(who),who,xx," has left.\n",ut_name(who),
" killed ",xx,"!!\n",(char *)0);
say(who,"You killed ",xx,"!!\n");
return(UERR_NONE);
}