|
|
@ -320,8 +320,6 @@ func lorestatus(rtm *slack.RTM, ev *slack.MessageEvent, redisClient *redis.Clien |
|
|
|
|
|
|
|
|
|
|
|
func newhandler(rtm *slack.RTM, ev *slack.MessageEvent, message, newType string, redisClient *redis.Client) { |
|
|
|
func newhandler(rtm *slack.RTM, ev *slack.MessageEvent, message, newType string, redisClient *redis.Client) { |
|
|
|
// dont allow certain chars
|
|
|
|
// dont allow certain chars
|
|
|
|
//if strings.ContainsAny(message, ";:.,'\"\\/!$&^\(\)") {
|
|
|
|
|
|
|
|
println(message) |
|
|
|
|
|
|
|
if strings.ContainsAny(message, ";:,.'\"!$%^*()/\\") { |
|
|
|
if strings.ContainsAny(message, ";:,.'\"!$%^*()/\\") { |
|
|
|
// reject user input, it has unwanted chars
|
|
|
|
// reject user input, it has unwanted chars
|
|
|
|
rtm.SendMessage(rtm.NewOutgoingMessage("entry could not be created, unwanted characters", ev.Channel)) |
|
|
|
rtm.SendMessage(rtm.NewOutgoingMessage("entry could not be created, unwanted characters", ev.Channel)) |
|
|
|