[DG Script] Safety Check

From: Tony Robbins (tonyr@NWPACLINK.COM)
Date: 01/07/98


For those of you who are worried about immortals using mobile commands when
they shouldn't, IE when switched, in dg_mobcmds.c, find the lines that say

    if (!IS_NPC(ch)) {
        send_to_char( "Huh?!?\r\n", ch );
        return;
    }


and modify it so that it is

    if (!IS_NPC(ch) || (ch->desc)) {
        send_to_char( "Huh?!?\r\n", ch );
        return;
    }

For those of you who don't know what that does, is it checks for a
descriptor.  This was in the mobprog mobcmd.c and I thought it might be a
good update.

-Bel.


     +------------------------------------------------------------+
     | Ensure that you have read the CircleMUD Mailing List FAQ:  |
     | http://democracy.queensu.ca/~fletcher/Circle/list-faq.html |
     +------------------------------------------------------------+



This archive was generated by hypermail 2b30 : 12/15/00 PST