Skip to content

Commit

Permalink
disable systemuser join to log channels on rehash
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Leining committed Sep 3, 2014
1 parent 05b0292 commit 4f8d692
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions echat/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -82,11 +82,14 @@ func SetupConfig() {
SystemUser.nick = config.SystemUserName
SystemUser.host = config.ServerName
SystemUser.realhost = config.ServerName
if config.SystemJoinChannels {
for _, k := range chanlist {
SystemUser.JoinHandler([]string{"JOIN", k.name})
}
}
//TODO refactor this.
/*
if config.SystemJoinChannels {
for _, k := range chanlist {
SystemUser.JoinHandler([]string{"JOIN", k.name})
}
}
*/
if config.Logfile != "" {
f, err := os.OpenFile(config.Logfile, os.O_RDWR|os.O_CREATE|os.O_APPEND, 0666)
if err != nil {
Expand Down

0 comments on commit 4f8d692

Please sign in to comment.