func (s *Server) appendTalkService() { c := s.config.Talk l := s.LogService.NewLogger("[talk] ", log.LstdFlags) srv := talk.NewService(c, l) s.TaskMaster.TalkService = srv s.SetDynamicService("talk", srv) s.AppendService("talk", srv) }
func (s *Server) appendTalkService(c talk.Config) { if c.Enabled { l := s.LogService.NewLogger("[talk] ", log.LstdFlags) srv := talk.NewService(c, l) s.TaskMaster.TalkService = srv s.Services = append(s.Services, srv) } }