2014-02-08 22:18:11 +01:00
|
|
|
package main
|
|
|
|
|
|
|
|
import (
|
|
|
|
"flag"
|
|
|
|
"github.com/jlatt/ergonomadic/irc"
|
|
|
|
)
|
|
|
|
|
|
|
|
func main() {
|
2014-02-08 23:20:23 +01:00
|
|
|
name := flag.String("name", "ergonomadic", "A name for the server")
|
2014-02-08 22:18:11 +01:00
|
|
|
listen := flag.String("listen", ":6667", "interface to listen on")
|
|
|
|
flag.BoolVar(&irc.DEBUG_NET, "dnet", false, "debug net")
|
|
|
|
flag.BoolVar(&irc.DEBUG_CLIENT, "dclient", false, "debug client")
|
|
|
|
flag.BoolVar(&irc.DEBUG_CHANNEL, "dchannel", false, "debug channel")
|
|
|
|
flag.BoolVar(&irc.DEBUG_SERVER, "dserver", false, "debug server")
|
|
|
|
flag.Parse()
|
|
|
|
irc.NewServer(*name).Listen(*listen)
|
|
|
|
}
|