From d76c180b7e3b7868de4a0118ce4948098255b06d Mon Sep 17 00:00:00 2001 From: Fizban Date: Tue, 2 Sep 2008 01:53:23 +0000 Subject: [PATCH] Added the check to mzoneecho --- changelog | 2 ++ src/dg_mobcmd.c | 6 +++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/changelog b/changelog index ffad359..ad346e3 100644 --- a/changelog +++ b/changelog @@ -35,6 +35,8 @@ export (QQ's a zone into a tarball)t Xlist (mlist, olist, rlist, zlist, slist, tlist, qlist) (lots of major bugfixes too) @ +[Sep 01 2008] - Fizban + Added a check to mzoneecho to stop mortals from using it. [Aug 31 2008] - Fizban Removed various mid-function defines of variables. [Aug 27 2008] - Rumble diff --git a/src/dg_mobcmd.c b/src/dg_mobcmd.c index 3d34b9d..57d3266 100644 --- a/src/dg_mobcmd.c +++ b/src/dg_mobcmd.c @@ -285,7 +285,11 @@ ACMD(do_mzoneecho) { int zone; char room_number[MAX_INPUT_LENGTH], buf[MAX_INPUT_LENGTH], *msg; - + + if (!MOB_OR_IMPL(ch)) { + send_to_char(ch, "Huh?!?\r\n"); + return; + } msg = any_one_arg(argument, room_number); skip_spaces(&msg);