summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobert Gerus <rgerus@dpd.com.pl>2015-12-18 12:55:32 +0100
committerRobert Gerus <rgerus@dpd.com.pl>2015-12-18 12:55:32 +0100
commit36905d259671685001438f116dc10bc9f60b221c (patch)
treecab3a3d8907d6024b93c7c15866223cc741b7d23
parent7ba047bd51d9255e603399d15ac7ee9427f71135 (diff)
downloadgorepost-36905d259671685001438f116dc10bc9f60b221c.tar.gz
gorepost-36905d259671685001438f116dc10bc9f60b221c.tar.bz2
gorepost-36905d259671685001438f116dc10bc9f60b221c.tar.xz
gorepost-36905d259671685001438f116dc10bc9f60b221c.zip
Trim CTCP characters.
-rw-r--r--bot/urltitle.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/bot/urltitle.go b/bot/urltitle.go
index f29fa21..2dc3adf 100644
--- a/bot/urltitle.go
+++ b/bot/urltitle.go
@@ -41,7 +41,7 @@ func getURLTitle(l string) string {
func linktitle(output func(irc.Message), msg irc.Message) {
var r []string
- for _, s := range strings.Split(msg.Trailing, " ") {
+ for _, s := range strings.Split(strings.Trim(msg.Trailing, "\001"), " ") {
if s == "notitle" {
return
}