summaryrefslogtreecommitdiffstats
path: root/lib/evendoors/room.rb
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2012-05-09 00:07:16 +0200
committerJérémy Zurcher <jeremy@asynk.ch>2012-05-09 00:07:16 +0200
commitff68d2a0b8cb5715e269f307228bd14c4215d584 (patch)
tree6b14458bcd18c05657b5abea966e4d7835c6aa95 /lib/evendoors/room.rb
parentbc2a8c439b15823bb3c8cc88184cc1634e8069ce (diff)
downloadedoors-ruby-ff68d2a0b8cb5715e269f307228bd14c4215d584.zip
edoors-ruby-ff68d2a0b8cb5715e269f307228bd14c4215d584.tar.gz
Room, send_p set error ERROR_ROUTE_NDNS if p.src.nil?
Diffstat (limited to 'lib/evendoors/room.rb')
-rw-r--r--lib/evendoors/room.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/evendoors/room.rb b/lib/evendoors/room.rb
index 3c7ebc6..be5325b 100644
--- a/lib/evendoors/room.rb
+++ b/lib/evendoors/room.rb
@@ -97,6 +97,8 @@ module EvenDoors
route_p p
puts " -> #{p.dst.path}#{EvenDoors::ACT_SEP}#{p.action}" if EvenDoors::Twirl.debug
EvenDoors::Twirl.send_p p
+ elsif p.src.nil?
+ p.error! EvenDoors::ERROR_ROUTE_NDNS
elsif not try_links p
p.error! EvenDoors::ERROR_ROUTE_NDNL
puts " -> #{p.dst.path}#{EvenDoors::ACT_SEP}#{p.action}" if EvenDoors::Twirl.debug