                                 send_message socket, msg
                     when 'as'
                         if data.is_master
-                            return send_message socket, master_as(message)
+                            master_as message, (msg)->
+                                send_message socket, msg 
                     when 'help'
                         help message, data.is_master, (msg)->
                             send_message socket, msg

        message.text = "Wrong player to kick"
        message.allow_send = false
    message.out_of_history = true
    return message
    
on_get_history = (socket)->
    socket.get "data", (err, data)->

            message.text = "Wrong hero name"
        else
            message.event_type = "master_event"
            message.text = f "<strong>%s description:</strong><br>%s", player, hero[0].description
    
        cb message

