mirror of
				https://github.com/ergochat/ergo.git
				synced 2025-11-03 23:37:22 +01:00 
			
		
		
		
	Merge pull request #1410 from slingamn/welcome
add network name to RPL_WELCOME
This commit is contained in:
		
						commit
						b28004bbd9
					
				@ -348,7 +348,8 @@ func (server *Server) playRegistrationBurst(session *Session) {
 | 
			
		||||
	// send welcome text
 | 
			
		||||
	//NOTE(dan): we specifically use the NICK here instead of the nickmask
 | 
			
		||||
	// see http://modern.ircdocs.horse/#rplwelcome-001 for details on why we avoid using the nickmask
 | 
			
		||||
	session.Send(nil, server.name, RPL_WELCOME, d.nick, fmt.Sprintf(c.t("Welcome to the Internet Relay Network %s"), d.nick))
 | 
			
		||||
	config := server.Config()
 | 
			
		||||
	session.Send(nil, server.name, RPL_WELCOME, d.nick, fmt.Sprintf(c.t("Welcome to the %s IRC Network %s"), config.Network.Name, d.nick))
 | 
			
		||||
	session.Send(nil, server.name, RPL_YOURHOST, d.nick, fmt.Sprintf(c.t("Your host is %[1]s, running version %[2]s"), server.name, Ver))
 | 
			
		||||
	session.Send(nil, server.name, RPL_CREATED, d.nick, fmt.Sprintf(c.t("This server was created %s"), server.ctime.Format(time.RFC1123)))
 | 
			
		||||
	session.Send(nil, server.name, RPL_MYINFO, d.nick, server.name, Ver, rplMyInfo1, rplMyInfo2, rplMyInfo3)
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user