summaryrefslogtreecommitdiffstats
path: root/bot/urltitle.go
diff options
context:
space:
mode:
Diffstat (limited to 'bot/urltitle.go')
-rw-r--r--bot/urltitle.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/bot/urltitle.go b/bot/urltitle.go
index 7785704..c62b48b 100644
--- a/bot/urltitle.go
+++ b/bot/urltitle.go
@@ -44,6 +44,10 @@ func linktitle(output func(irc.Message), msg irc.Message) {
var r []string
for _, s := range strings.Split(msg.Trailing, " ") {
+ if s == "notitle" {
+ return
+ }
+
b, err := regexp.Match("https?://", []byte(s))
if err != nil {
log.Println("Context:", msg.Context, "linktitle regex error:", err)