From b7f88b7a9df4a3f6cdf6d2e13b0ad772e5a017ae Mon Sep 17 00:00:00 2001 From: Andreas Neue Date: Mon, 18 Jan 2016 23:28:13 +0100 Subject: [PATCH] minor changes --- main.go | 6 +++--- modules/sc/sc.go | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) 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, '.'))