|  | @@ -57,16 +57,16 @@ g00r00                       Line 7 : User's handle/alias
 | 
	
		
			
				|  |  |  */
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  type DropfileConfig struct {
 | 
	
		
			
				|  |  | -	comm_type      int
 | 
	
		
			
				|  |  | -	comm_handle    int
 | 
	
		
			
				|  |  | -	baudrate       int
 | 
	
		
			
				|  |  | +	Comm_type      int
 | 
	
		
			
				|  |  | +	Comm_handle    int
 | 
	
		
			
				|  |  | +	Baudrate       int
 | 
	
		
			
				|  |  |  	BBSID          string
 | 
	
		
			
				|  |  |  	User_number    int
 | 
	
		
			
				|  |  |  	Real_name      string
 | 
	
		
			
				|  |  |  	Handle         string
 | 
	
		
			
				|  |  |  	Security_level int
 | 
	
		
			
				|  |  | -	time_left      int
 | 
	
		
			
				|  |  | -	emulation      int
 | 
	
		
			
				|  |  | +	Time_left      int
 | 
	
		
			
				|  |  | +	Emulation      int
 | 
	
		
			
				|  |  |  	Node           int
 | 
	
		
			
				|  |  |  }
 | 
	
		
			
				|  |  |  
 | 
	
	
		
			
				|  | @@ -77,7 +77,7 @@ type Door struct {
 | 
	
		
			
				|  |  |  	Disconnected bool
 | 
	
		
			
				|  |  |  	TimeOut      time.Time // Fixed point in time, when time expires
 | 
	
		
			
				|  |  |  	StartTime    time.Time
 | 
	
		
			
				|  |  | -	pushback     *list.List
 | 
	
		
			
				|  |  | +	Pushback     *list.List
 | 
	
		
			
				|  |  |  }
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  // Return the amount of time left as time.Duration
 | 
	
	
		
			
				|  | @@ -110,24 +110,24 @@ func (d *Door) ReadDropfile(filename string) {
 | 
	
		
			
				|  |  |  		lines = append(lines, line)
 | 
	
		
			
				|  |  |  	}
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -	d.Config.comm_type, err = strconv.Atoi(lines[0])
 | 
	
		
			
				|  |  | -	d.Config.comm_handle, err = strconv.Atoi(lines[1])
 | 
	
		
			
				|  |  | -	d.Config.baudrate, err = strconv.Atoi(lines[2])
 | 
	
		
			
				|  |  | +	d.Config.Comm_type, err = strconv.Atoi(lines[0])
 | 
	
		
			
				|  |  | +	d.Config.Comm_handle, err = strconv.Atoi(lines[1])
 | 
	
		
			
				|  |  | +	d.Config.Baudrate, err = strconv.Atoi(lines[2])
 | 
	
		
			
				|  |  |  	d.Config.BBSID = lines[3]
 | 
	
		
			
				|  |  |  	d.Config.User_number, err = strconv.Atoi(lines[4])
 | 
	
		
			
				|  |  |  	d.Config.Real_name = lines[5]
 | 
	
		
			
				|  |  |  	d.Config.Handle = lines[6]
 | 
	
		
			
				|  |  |  	d.Config.Security_level, err = strconv.Atoi(lines[7])
 | 
	
		
			
				|  |  | -	d.Config.time_left, err = strconv.Atoi(lines[8])
 | 
	
		
			
				|  |  | -	d.Config.emulation, err = strconv.Atoi(lines[9])
 | 
	
		
			
				|  |  | +	d.Config.Time_left, err = strconv.Atoi(lines[8])
 | 
	
		
			
				|  |  | +	d.Config.Emulation, err = strconv.Atoi(lines[9])
 | 
	
		
			
				|  |  |  	d.Config.Node, err = strconv.Atoi(lines[10])
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -	d.READFD = d.Config.comm_handle
 | 
	
		
			
				|  |  | -	d.WRITEFD = d.Config.comm_handle
 | 
	
		
			
				|  |  | +	d.READFD = d.Config.Comm_handle
 | 
	
		
			
				|  |  | +	d.WRITEFD = d.Config.Comm_handle
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  	// Calculate the time when time expires.
 | 
	
		
			
				|  |  |  	d.StartTime = time.Now()
 | 
	
		
			
				|  |  | -	d.TimeOut = time.Now().Add(time.Duration(d.Config.time_left) * time.Minute)
 | 
	
		
			
				|  |  | +	d.TimeOut = time.Now().Add(time.Duration(d.Config.Time_left) * time.Minute)
 | 
	
		
			
				|  |  |  }
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  // Detect client terminal capabilities, Unicode, CP437, Full_CP437,
 | 
	
	
		
			
				|  | @@ -204,7 +204,7 @@ func (d *Door) detect() {
 | 
	
		
			
				|  |  |  // detect terminal capabilities.
 | 
	
		
			
				|  |  |  func (d *Door) Init() {
 | 
	
		
			
				|  |  |  	var dropfile string
 | 
	
		
			
				|  |  | -	d.pushback = list.New()
 | 
	
		
			
				|  |  | +	d.Pushback = list.New()
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  	flag.StringVar(&dropfile, "d", "", "Path to dropfile")
 | 
	
		
			
				|  |  |  	flag.Parse()
 | 
	
	
		
			
				|  | @@ -216,7 +216,7 @@ func (d *Door) Init() {
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  	d.ReadDropfile(dropfile)
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -	fmt.Printf("BBS %s, User %s / Handle %s / File %d\n", d.Config.BBSID, d.Config.Real_name, d.Config.Handle, d.Config.comm_handle)
 | 
	
		
			
				|  |  | +	fmt.Printf("BBS %s, User %s / Handle %s / File %d\n", d.Config.BBSID, d.Config.Real_name, d.Config.Handle, d.Config.Comm_handle)
 | 
	
		
			
				|  |  |  	d.detect()
 | 
	
		
			
				|  |  |  }
 | 
	
		
			
				|  |  |  
 |