forked from an/flokati
		
	Changed version info format (using CTCP).
This commit is contained in:
		
							parent
							
								
									1e218af790
								
							
						
					
					
						commit
						768e995926
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		
							
								
								
									
										4
									
								
								main.go
									
										
									
									
									
								
							
							
						
						
									
										4
									
								
								main.go
									
										
									
									
									
								
							| 
						 | 
				
			
			@ -130,7 +130,7 @@ func ConnectHandler(s ircx.Sender, m *irc.Message) {
 | 
			
		|||
		})
 | 
			
		||||
	}
 | 
			
		||||
	time.Sleep(5 * time.Second)
 | 
			
		||||
	sayCh <- fmt.Sprintf("%s\n*** %s", "*", SoftwareInfo())
 | 
			
		||||
	sayCh <- fmt.Sprintf("%s\n\x01ACTION running on %s", "*", SoftwareInfo())
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func PingHandler(s ircx.Sender, m *irc.Message) {
 | 
			
		||||
| 
						 | 
				
			
			@ -159,7 +159,7 @@ func HandleMessage(m *irc.Message) {
 | 
			
		|||
	}
 | 
			
		||||
	switch tok[0] {
 | 
			
		||||
	case "!version":
 | 
			
		||||
		sayCh <- fmt.Sprintf("%s\n*** %s", "*", SoftwareInfo())
 | 
			
		||||
		sayCh <- fmt.Sprintf("%s\n\x01ACTION running on %s", "*", SoftwareInfo())
 | 
			
		||||
	default:
 | 
			
		||||
	}
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue