adding theater-mode, fixes #15

This commit is contained in:
Edmund Huber
2014-03-13 09:55:46 +01:00
parent a3df727c47
commit d5bdc78d55
10 changed files with 212 additions and 31 deletions
+2
View File
@@ -40,6 +40,7 @@ type Server struct {
password []byte
signals chan os.Signal
whoWas *WhoWasList
theaters map[Name][]byte
}
var (
@@ -61,6 +62,7 @@ func NewServer(config *Config) *Server {
operators: config.Operators(),
signals: make(chan os.Signal, len(SERVER_SIGNALS)),
whoWas: NewWhoWasList(100),
theaters: config.Theaters(),
}
if config.Server.Password != "" {