From dec0c5af1fe21b1852fee8645aa3d9b8438c1dcf Mon Sep 17 00:00:00 2001 From: gbrunett Date: Fri, 20 Oct 2017 21:43:37 -0400 Subject: [PATCH] follow command with no arguments reports leader (when already following) (#7) --- src/act.movement.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/act.movement.c b/src/act.movement.c index 831e7ef..ee68acb 100644 --- a/src/act.movement.c +++ b/src/act.movement.c @@ -941,7 +941,12 @@ ACMD(do_follow) return; } } else { - send_to_char(ch, "Whom do you wish to follow?\r\n"); + if (ch->master != (char_data*) NULL) { + send_to_char(ch, "You are following %s.\r\n", + GET_NAME(ch->master)); + } else { + send_to_char(ch, "Whom do you wish to follow?\r\n"); + } return; }