quit.c

untermud/CMD/quit.c · 422 B

From the archive untermud-2.4-r22.tar.gz

Download the archive   « Back to the archive contents

/*
    Copyright (C) 1991, Marcus J. Ranum. All rights reserved.
*/

/* configure all options BEFORE including system stuff. */
#include    "config.h"
#include    "mud.h"

/* ARGSUSED */
int cmd_QUIT (int argc, char *argv[], char *who, char *aswho)
{
  if (strcmp (who, aswho)) {
    say (who, "you cannot disconnect with a macro on an object\n", 0);
    return (UERR_PERM);
  }
  io_logoff (who);
  return (UERR_NONE);
}

Site Stats

Snippets: 1791
Codebases: 571