forked from External/ergo
stub motd
This commit is contained in:
parent
887f12cb31
commit
cdae59ecf5
3 changed files with 15 additions and 8 deletions
|
|
@ -142,18 +142,19 @@ func (s *Server) GenerateGuestNick() string {
|
|||
func (s *Server) tryRegister(c *Client) {
|
||||
if !c.registered && c.HasNick() && c.HasUsername() {
|
||||
c.registered = true
|
||||
replies := []Reply{
|
||||
c.Reply(
|
||||
RplWelcome(s, c),
|
||||
RplYourHost(s),
|
||||
RplCreated(s),
|
||||
RplMyInfo(s),
|
||||
}
|
||||
for _, reply := range replies {
|
||||
c.Reply(reply)
|
||||
}
|
||||
RplMyInfo(s))
|
||||
server.MOTD(c)
|
||||
}
|
||||
}
|
||||
|
||||
func (server *Server) MOTD(client *Client) {
|
||||
c.Reply(ErrNoMOTD(server))
|
||||
}
|
||||
|
||||
func (s *Server) Id() string {
|
||||
return s.name
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue