mirror of
				https://github.com/fluffle/goirc
				synced 2025-11-03 19:48:04 +00:00 
			
		
		
		
	Fix error()'s passing of variadic to Sprintf
This commit is contained in:
		
							parent
							
								
									a5174d4b04
								
							
						
					
					
						commit
						82cc80ca1a
					
				
					 1 changed files with 3 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -113,7 +113,9 @@ func (conn *Conn) Connect(host string, pass string) os.Error {
 | 
			
		|||
}
 | 
			
		||||
 | 
			
		||||
// dispatch a nicely formatted os.Error to the error channel
 | 
			
		||||
func (conn *Conn) error(s string, a ...interface{}) { conn.Err <- os.NewError(fmt.Sprintf(s, a)) }
 | 
			
		||||
func (conn *Conn) error(s string, a ...interface{}) {
 | 
			
		||||
	conn.Err <- os.NewError(fmt.Sprintf(s, a...))
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// copied from http.client for great justice
 | 
			
		||||
func hasPort(s string) bool { return strings.LastIndex(s, ":") > strings.LastIndex(s, "]") }
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue