mirror of
				https://github.com/fluffle/goirc
				synced 2025-11-03 19:48:04 +00:00 
			
		
		
		
	Updated for changes to strings.Split()
This commit is contained in:
		
							parent
							
								
									06f7cdd19b
								
							
						
					
					
						commit
						398a6f4f79
					
				
					 2 changed files with 2 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -193,7 +193,7 @@ func (conn *Conn) recv() {
 | 
			
		|||
		if len(args) > 1 {
 | 
			
		||||
			line.Text = args[1]
 | 
			
		||||
		}
 | 
			
		||||
		args = strings.Split(args[0], " ", 0)
 | 
			
		||||
		args = strings.Split(args[0], " ", -1)
 | 
			
		||||
		line.Cmd = strings.ToUpper(args[0])
 | 
			
		||||
		if len(args) > 1 {
 | 
			
		||||
			line.Args = args[1:len(args)]
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -424,7 +424,7 @@ func (conn *Conn) setupEvents() {
 | 
			
		|||
	// Handle 353 names reply
 | 
			
		||||
	conn.AddHandler("353", func(conn *Conn, line *Line) {
 | 
			
		||||
		if ch := conn.GetChannel(line.Args[2]); ch != nil {
 | 
			
		||||
			nicks := strings.Split(line.Text, " ", 0)
 | 
			
		||||
			nicks := strings.Split(line.Text, " ", -1)
 | 
			
		||||
			for _, nick := range nicks {
 | 
			
		||||
				// UnrealIRCd's coders are lazy and leave a trailing space
 | 
			
		||||
				if nick == "" {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue