summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/evendoors/room.rb11
1 files changed, 10 insertions, 1 deletions
diff --git a/lib/evendoors/room.rb b/lib/evendoors/room.rb
index 4214965..f619f10 100644
--- a/lib/evendoors/room.rb
+++ b/lib/evendoors/room.rb
@@ -106,7 +106,16 @@ module EvenDoors
def send_sys_p p
if d = p.dst
puts " * send_sys #{d.to_str} ..." if EvenDoors::Twirl.debug
- route_p p, p.split_dst!
+ door_name = p.split_dst!
+ if door_name.empty?
+ if p.action.nil?
+ p.error! EvenDoors::ERROR_ROUTE_SNDNA
+ else
+ p.dst_done! space
+ end
+ else
+ route_p p, door_name
+ end
puts " -> #{p.door.path}#{EvenDoors::ACT_SEP}#{p.action}" if EvenDoors::Twirl.debug
EvenDoors::Twirl.send_sys_p p
else