// setmin cmd from player.c. Made external by Morgoth 3/Mar/95
// Fr'ized by Baldrick, oct '95.
#include <standard.h>
#include <cmd.h>
inherit CMD_BASE;
void setup()
{
    position = 0;            // consider making it creator only
    dodest = 1;            // not often used command
}
string query_usage()
{
    return "setmin <entry message>";
}
string query_short_help()
{
    return "Sets text for normal entry. Include $N (name) and $F (from).";
}
static int cmd (string str, object me)
{
    
    if(!me->query_creator() && !me->query_property("setm"))
    {
        notify_fail("You are not allowed that power yet.\n");
        return 0;
    }
    str = str + " ";
    if (sizeof(explode("^"+str, "$N")) < 2
        || sizeof(explode("^"+str, "$F")) < 2)
    {
        notify_fail("Must have a $N and a $F in your message in.\n");
        return 0;
    }
    me->setmin("@"+str);
    write("Ok.\n");
    return 1;
}