3
0
mirror of https://github.com/ergochat/ergo.git synced 2024-12-01 16:39:26 +01:00
ergo/ergonomadic.go

28 lines
431 B
Go
Raw Normal View History

2014-02-08 22:18:11 +01:00
package main
import (
"github.com/jlatt/ergonomadic/irc"
2014-02-09 16:53:42 +01:00
"log"
"sync"
2014-02-08 22:18:11 +01:00
)
func main() {
2014-02-09 16:53:42 +01:00
config, err := irc.LoadConfig()
if err != nil {
log.Fatal(err)
return
}
irc.DEBUG_NET = config.Debug["net"]
irc.DEBUG_CLIENT = config.Debug["client"]
irc.DEBUG_CHANNEL = config.Debug["channel"]
irc.DEBUG_SERVER = config.Debug["server"]
irc.NewServer(config)
// never finishes
wg := sync.WaitGroup{}
wg.Add(1)
wg.Wait()
2014-02-08 22:18:11 +01:00
}