mirror of
https://github.com/ergochat/ergo.git
synced 2024-11-22 20:09:41 +01:00
28 lines
431 B
Go
28 lines
431 B
Go
package main
|
|
|
|
import (
|
|
"github.com/jlatt/ergonomadic/irc"
|
|
"log"
|
|
"sync"
|
|
)
|
|
|
|
func main() {
|
|
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()
|
|
}
|