Update hosts when people speak

This commit is contained in:
raylu 2010-10-18 19:55:41 -04:00
parent 23dfd26d9f
commit e24293df24
1 changed files with 4 additions and 0 deletions

View File

@ -26,6 +26,10 @@ var commands = map [string]func(*irc.Conn, string, string, string) {
const googleAPIKey = "ABQIAAAA6-N_jl4ETgtMf2M52JJ_WRQjQjNunkAJHIhTdFoxe8Di7fkkYhRRcys7ZxNbH3MIy_MKKcEO4-9_Ag"
func handlePrivmsg(conn *irc.Conn, line *irc.Line) {
if n := conn.GetNick(line.Nick); n != nil {
n.Host = line.Host
}
target := line.Args[0]
if isChannel(target) {
// message to a channel