summaryrefslogtreecommitdiffstats
path: root/lib/evendoors
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2012-05-15 21:24:54 +0200
committerJérémy Zurcher <jeremy@asynk.ch>2012-05-15 21:24:54 +0200
commit115b2bcd38a3bbce0783df5259f9e11658259c01 (patch)
tree02abb5ac8409ae71e08be7ee2ee7e62c961749f2 /lib/evendoors
parente833e6d3fa4b46b57feae0b26002f3461e6a5191 (diff)
downloadedoors-ruby-115b2bcd38a3bbce0783df5259f9e11658259c01.zip
edoors-ruby-115b2bcd38a3bbce0783df5259f9e11658259c01.tar.gz
Room: route_p variable r->child
Diffstat (limited to 'lib/evendoors')
-rw-r--r--lib/evendoors/room.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/evendoors/room.rb b/lib/evendoors/room.rb
index f865136..caaf565 100644
--- a/lib/evendoors/room.rb
+++ b/lib/evendoors/room.rb
@@ -121,8 +121,8 @@ module EvenDoors
end
elsif (p.room=~/^#{path}\/(.*)/)==0
room, *more = $1.split EvenDoors::PATH_SEP
- if r=@spots[room]
- r.route_p p
+ if child=@spots[room]
+ child.route_p p
else
p.error! EvenDoors::ERROR_ROUTE_DDWR
end