From 8f77690b14a7cc6f7e01b53a1d1aff8ea5dfa753 Mon Sep 17 00:00:00 2001 From: Godwhoa Date: Tue, 13 Feb 2018 06:27:50 +0530 Subject: [PATCH] Fix output formatting --- webhook.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/webhook.go b/webhook.go index d3fd8be..8356f11 100644 --- a/webhook.go +++ b/webhook.go @@ -3,6 +3,7 @@ package main import ( "encoding/json" "fmt" + "html" "net/http" "github.com/godwhoa/oodle/bot" @@ -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`)) }