tmuck2.4/
tmuck2.4/admin/scripts/
tmuck2.4/docs/
tmuck2.4/minimal-db/
tmuck2.4/minimal-db/data/
tmuck2.4/minimal-db/logs/
tmuck2.4/minimal-db/muf/
tmuck2.4/old/
tmuck2.4/src/
tmuck2.4/src/compile/
tmuck2.4/src/editor/
tmuck2.4/src/game/
tmuck2.4/src/interface/
tmuck2.4/src/scripts/
tmuck2.4/src/utilprogs/
/* Copyright (c) 1992 by David Moore.  All rights reserved. */
/* pass.c,v 2.5 1994/02/13 11:05:51 dmoore Exp */
#include "config.h"

#include <string.h>

#include "db.h"
#include "externs.h"

void do_password(const dbref player, const char *old, const char *new, const char *ignore)
{
    const char *pass;

    pass = GetPass(player);

    if (!pass || strcmp(old, pass)) {
	notify(player, "Sorry");
    } else if(!ok_password(new)) {
	notify(player, "Bad new password.");
    } else {
	SetPass(player, new);
	notify(player, "Password changed.");
    }
}