diff --git a/main.go b/main.go index 764bc86..b53d513 100644 --- a/main.go +++ b/main.go @@ -39,7 +39,7 @@ func main() { sayCh := make(chan string, 1024) //bot := ircx.Classic(*server, *name) - cfg := ircx.Config{User: *name, MaxRetries: 10} + cfg := ircx.Config{User: *name, MaxRetries: 1000} bot := ircx.New(*server, *name, cfg) log.Println("Logging in") if err := bot.Connect(); err != nil { @@ -96,12 +96,12 @@ func main() { func RegisterHandlers(bot *ircx.Bot) { log.Println("Registering handlers") - bot.HandleFunc(irc.RPL_WELCOME, RegisterConnect) + bot.HandleFunc(irc.RPL_WELCOME, ConnectHandler) bot.HandleFunc(irc.PING, PingHandler) bot.HandleFunc(irc.PRIVMSG, PrivmsgHandler) } -func RegisterConnect(s ircx.Sender, m *irc.Message) { +func ConnectHandler(s ircx.Sender, m *irc.Message) { if *nspass != "" { log.Printf("Authenticating with NickServ: %v, %v", *name, *nspass) s.Send(&irc.Message{ diff --git a/modules/sc/sc.go b/modules/sc/sc.go index d4a9b79..baeb426 100644 --- a/modules/sc/sc.go +++ b/modules/sc/sc.go @@ -141,7 +141,7 @@ func scraper() { } func showScStats() { - sayCh <- "*\n*** SC User and Funding Stats ###" + sayCh <- "*\n*** SC User and Funding Stats ***" sayCh <- fmt.Sprintf("*\nFans: %s", util.NumberToString(fans, '.')) sayCh <- fmt.Sprintf("*\nFleet: %s", util.NumberToString(fleet, '.')) sayCh <- fmt.Sprintf("*\nFunds: $ %s", util.NumberToString(funds, '.'))