diff options
Diffstat (limited to 'lib/evendoors')
-rw-r--r-- | lib/evendoors/room.rb | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/lib/evendoors/room.rb b/lib/evendoors/room.rb index 8b62c24..f865136 100644 --- a/lib/evendoors/room.rb +++ b/lib/evendoors/room.rb @@ -119,9 +119,13 @@ 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 (p.room=~/^#{path}\/(.*)/)==0 + room, *more = $1.split EvenDoors::PATH_SEP + if r=@spots[room] + r.route_p p + else + p.error! EvenDoors::ERROR_ROUTE_DDWR + end elsif @parent @parent.route_p p else |