Skip to content

Commit

Permalink
ReplaceAll -> Replace
Browse files Browse the repository at this point in the history
ReplaceAll isn't in Go1.11 apparently.
  • Loading branch information
godwhoa committed Nov 2, 2018
1 parent 87a7141 commit 412a81d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/sed/sed.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ func Sed(sender oodle.Sender) oodle.Trigger {
sender.Sendf("Your last message was not found.")
return
}
newmsg := strings.ReplaceAll(lastmsg, args[1], args[2])
newmsg := strings.Replace(lastmsg, args[1], args[2], -1)
sender.Sendf("<%s> %s", nick, newmsg)
} else {
// store it as user's last msg.
Expand Down

0 comments on commit 412a81d

Please sign in to comment.