diff options
-rw-r--r-- | keep.go | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -180,7 +180,9 @@ func messageCreate(s *discordgo.Session, m *discordgo.MessageCreate) { // Assess whether message part looks like a valid URL u, err := url.Parse(w) - if err != nil || !u.IsAbs() || strings.IndexByte(u.Host, '.') <= 0 { + if err != nil || !u.IsAbs() || strings.IndexByte(u.Host, '.') <= 0 || + (u.Scheme != "https" && u.Scheme != "http") { + continue } |