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"))) {
} 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;
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: