Skip to content

Commit

Permalink
Fix output formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
godwhoa committed Feb 13, 2018
1 parent 9fa803c commit 8f77690
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion webhook.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package main
import (
"encoding/json"
"fmt"
"html"
"net/http"

"github.com/godwhoa/oodle/bot"
Expand Down Expand Up @@ -40,7 +41,7 @@ func (webhook *WebHook) NewThread(w http.ResponseWriter, r *http.Request) {
http.Error(w, "Malformed JSON", 400)
return
}
webhook.irc.Send(fmt.Sprintf(`oods.net> %s started thread "%s"`, t.User, t.Title))
webhook.irc.Send(fmt.Sprintf(`oods.net: %s started thread "%s"`, t.User, html.UnescapeString(t.Title)))
webhook.irc.Send(t.Permalink)
w.Write([]byte(`OK`))
}
Expand Down

0 comments on commit 8f77690

Please sign in to comment.