Beispiel #1
0
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)
}
Beispiel #2
0
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)
	}
}