summaryrefslogtreecommitdiffstats
path: root/lib/evendoors/room.rb
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2012-05-09 10:03:13 +0200
committerJérémy Zurcher <jeremy@asynk.ch>2012-05-09 10:03:13 +0200
commit926d94249ce40216f98c6e0c66b22fbf88582821 (patch)
tree5747a577c1a61131642d15ad53e659365a7f3283 /lib/evendoors/room.rb
parent1200008d135ec248d6dd63327f6e6b46c0a1361d (diff)
downloadedoors-ruby-926d94249ce40216f98c6e0c66b22fbf88582821.zip
edoors-ruby-926d94249ce40216f98c6e0c66b22fbf88582821.tar.gz
Room detect drill down and goto error
Diffstat (limited to 'lib/evendoors/room.rb')
-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