commands finally dispatch
[mudsync.git] / mudsync / game-master.scm
index 0abadb360fbad56574c2c471cc4ef00cb8cd370b..3583f95662cc68a25abb72f8ddeaa4d82f689d9b 100644 (file)
@@ -17,7 +17,6 @@
 ;;; along with Mudsync.  If not, see <http://www.gnu.org/licenses/>.
 
 (define-module (mudsync game-master)
-  #:use-module (mudsync room)
   #:use-module (mudsync networking)
   #:use-module (8sync systems actors)
   #:use-module (8sync agenda)
@@ -86,7 +85,7 @@
     "Take room exits syntax from the spec, turn it into exits"
     (match exit-spec
       ((name to-symbol desc)
-       (make <exit>
+       (make (@@ (mudsync room) <exit>)
          #:name name
          #:to-symbol to-symbol
          #:desc desc))))
   (format #t "DEBUG: From ~s: ~s\n" client-id input)
 
   (<- actor player 'handle-input
-      #:input input)
-
-  ;; TODO: Remove this shortly
-  (<- actor (gm-network-manager actor) 'send-to-client
-      #:client client-id
-      #:data "Thanks, we got it!\n"))
+      #:input input))
 
 (define-mhandler (gm-lookup-room actor message symbol)
   (define room-id