This commit is contained in:
Chris Sexton 2012-08-26 20:33:33 -04:00
parent ac8bc9a145
commit 273b41fa3f
1 changed files with 1 additions and 1 deletions

View File

@ -165,7 +165,7 @@ func (b *Bot) Filter(message Message, input string) string {
} }
// Let's be bucket compatible for this var // Let's be bucket compatible for this var
strings.Replace(input, "$who", "$nick", -1) input = strings.Replace(input, "$who", "$nick", -1)
if strings.Contains(input, "$nick") { if strings.Contains(input, "$nick") {
nick := message.User.Name nick := message.User.Name
input = strings.Replace(input, "$nick", nick, -1) input = strings.Replace(input, "$nick", nick, -1)