mirror of
				https://github.com/fluffle/goirc
				synced 2025-10-27 08:28:03 +00:00 
			
		
		
		
	correct syntax errors from updating go to 4450:dd9bae5c7eac
This commit is contained in:
		
							parent
							
								
									7191dd9177
								
							
						
					
					
						commit
						6a8c1a13b2
					
				
					 3 changed files with 6 additions and 6 deletions
				
			
		|  | @ -83,7 +83,7 @@ func (conn *Conn) Connect(host, pass string) os.Error { | |||
| 
 | ||||
| 	conn.io = bufio.NewReadWriter( | ||||
| 		bufio.NewReader(conn.sock), | ||||
| 		bufio.NewWriter(conn.sock) | ||||
| 		bufio.NewWriter(conn.sock), | ||||
| 	); | ||||
| 	go conn.send(); | ||||
| 	go conn.recv(); | ||||
|  |  | |||
|  | @ -41,8 +41,8 @@ func (conn *Conn) dispatchEvent(line *Line) { | |||
| 	// So, I think CTCP and (in particular) CTCP ACTION are better handled as | ||||
| 	// separate events as opposed to forcing people to have gargantuan PRIVMSG | ||||
| 	// handlers to cope with the possibilities. | ||||
| 	if line.Cmd == "PRIVMSG" && len(line.Text) > 2 | ||||
| 		&& line.Text[0] == '\001' && line.Text[len(line.Text)-1] == '\001' { | ||||
| 	if line.Cmd == "PRIVMSG" && len(line.Text) > 2 && | ||||
| 		line.Text[0] == '\001' && line.Text[len(line.Text)-1] == '\001' { | ||||
| 		// WOO, it's a CTCP message | ||||
| 		t := strings.Split(line.Text[1:len(line.Text)-1], " ", 2); | ||||
| 		if c := strings.ToUpper(t[0]); c == "ACTION" { | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue