From: Ari Johnson Date: Tue, 20 Feb 2007 14:57:50 +0000 (+0000) Subject: Improved messages for @link of exits X-Git-Tag: 0.73~211 X-Git-Url: https://git.theari.com/?a=commitdiff_plain;h=ae34ecabb8b009a68d310f5cf988917d7f6ff9c1;p=cobramush.git Improved messages for @link of exits --- diff --git a/src/create.c b/src/create.c index 6974e90..f2b35fc 100644 --- a/src/create.c +++ b/src/create.c @@ -190,7 +190,7 @@ do_open(dbref player, const char *direction, char **links) void do_unlink(dbref player, const char *name) { - dbref exit_l; + dbref exit_l, old_loc; long match_flags = MAT_EXIT | MAT_HERE | MAT_ABSOLUTE; if (!OOREF(player,div_powover(player, player, "Link"), div_powover(ooref, ooref, "Link"))) { @@ -209,8 +209,10 @@ do_unlink(dbref player, const char *name) } else { switch (Typeof(exit_l)) { case TYPE_EXIT: + old_loc = Location(exit_l); Location(exit_l) = NOTHING; - notify_format(player, T("Unlinked exit #%d."), exit_l); + notify_format(player, T("Unlinked exit #%d (Used to lead to %s)."), + exit_l, unparse_object(player, old_loc)); break; case TYPE_ROOM: Location(exit_l) = NOTHING; @@ -314,7 +316,8 @@ do_link(dbref player, const char *name, const char *room_name, int preserve) Location(thing) = room; /* notify the player */ - notify_format(player, T("Linked exit #%d to #%d"), thing, room); + notify_format(player, T("Linked exit #%d to %s"), thing, + unparse_object(player, room)); break; case TYPE_DIVISION: case TYPE_PLAYER: