Send facts to the user instead of channel
This commit is contained in:
parent
e8b4a906b0
commit
3e691011d4
4
main.go
4
main.go
@ -306,7 +306,7 @@ func catGif(e *irc.Event) (string, error) {
|
|||||||
return "", err
|
return "", err
|
||||||
}
|
}
|
||||||
log.Println("Send gif")
|
log.Println("Send gif")
|
||||||
e.Connection.Privmsg(channel, fmt.Sprintf(gifPrefix, res.Request.URL.String()))
|
e.Connection.Privmsg(e.Nick, fmt.Sprintf(gifPrefix, res.Request.URL.String()))
|
||||||
return fmt.Sprintf(gifPrefix, res.Request.URL.String()), nil
|
return fmt.Sprintf(gifPrefix, res.Request.URL.String()), nil
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -337,7 +337,7 @@ func catFacts(e *irc.Event) (string, error) {
|
|||||||
return "", nil
|
return "", nil
|
||||||
}
|
}
|
||||||
|
|
||||||
e.Connection.Privmsg(channel, fmt.Sprintf(msgPrefix, data.Fact))
|
e.Connection.Privmsg(e.Nick, fmt.Sprintf(msgPrefix, data.Fact))
|
||||||
return fmt.Sprintf(msgPrefix, data.Fact), nil
|
return fmt.Sprintf(msgPrefix, data.Fact), nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user