change url to customurl

This commit is contained in:
2020-04-22 18:11:32 +00:00
parent 60383565e8
commit c0c25f189f

View File

@ -122,7 +122,7 @@ func (b *bot) handleConfigSet(m chat1.MsgSummary) {
b.debug("config set called by @%s in %s", m.Sender.Username, m.ConvID) b.debug("config set called by @%s in %s", m.Sender.Username, m.ConvID)
switch len(args) { switch len(args) {
case 5: case 5:
if args[3] == "url" { if args[3] == "customurl" {
// first validate the URL // first validate the URL
u, err := url.ParseRequestURI(args[4]) u, err := url.ParseRequestURI(args[4])
if err != nil { if err != nil {