Skip to content

Commit

Permalink
Fix renaming mistakes
Browse files Browse the repository at this point in the history
  • Loading branch information
Gentux committed Jun 2, 2015
1 parent b1c3f0f commit 83ba727
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions guilhem.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ func main() {

// Add handlers to do things here!
// e.g. join a channel on connect.
c.HandleFunc("connected", join_channel)
c.HandleFunc("connected", joinChannel)

c.HandleFunc("privmsg", handle_message)
c.HandleFunc("privmsg", handleMessage)

// And a signal on disconnect
quit := make(chan bool)
Expand Down Expand Up @@ -57,6 +57,6 @@ func handleMessage(conn *irc.Conn, line *irc.Line) {
"Attends, y a mon nom sur un t-shirt s'il te plait !",
}
if rand.Intn(10) < 2 {
conn.Privmsg(channel_name, answers[rand.Intn(len(answers))])
conn.Privmsg(channelName, answers[rand.Intn(len(answers))])
}
}

0 comments on commit 83ba727

Please sign in to comment.