Removing requirement that you not try to quote yourself.

Multiline quotes cannot reasonably enforce this policy.
This commit is contained in:
Chris Sexton 2013-05-07 18:41:51 -04:00
parent 25a8936f1b
commit 5433f51508
1 changed files with 1 additions and 7 deletions

View File

@ -1,8 +1,8 @@
package plugins
import (
"github.com/chrissexton/alepale/bot"
"fmt"
"github.com/chrissexton/alepale/bot"
"labix.org/v2/mgo"
"labix.org/v2/mgo/bson"
"math/rand"
@ -53,12 +53,6 @@ func (p *RememberPlugin) Message(message bot.Message) bool {
nick := parts[1]
snip := strings.Join(parts[2:], " ")
if nick == user.Name {
msg := fmt.Sprintf("Don't try to quote yourself, %s.", nick)
p.Bot.SendMessage(message.Channel, msg)
return true
}
for i := len(p.Log[message.Channel]) - 1; i >= 0; i-- {
entry := p.Log[message.Channel][i]
if entry.User.Name == nick && strings.Contains(entry.Body, snip) {