summaryrefslogtreecommitdiffstats
path: root/lib/evendoors
diff options
context:
space:
mode:
Diffstat (limited to 'lib/evendoors')
-rw-r--r--lib/evendoors/room.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/evendoors/room.rb b/lib/evendoors/room.rb
index fdee3e7..6e464d2 100644
--- a/lib/evendoors/room.rb
+++ b/lib/evendoors/room.rb
@@ -83,6 +83,9 @@ module EvenDoors
else
p.error! EvenDoors::ERROR_ROUTE_RRWD
end
+ elsif (p.room=~/^#{path}/)==0
+ # TODO allow drill down ?!?
+ p.error! EvenDoors::ERROR_ROUTE_RRNDD
elsif @parent
@parent.route_p p
else