Removed channel specific setting in talker

This commit is contained in:
Chris Sexton 2013-03-04 10:50:39 -05:00
parent 84e7001165
commit ebb76e5d9c
1 changed files with 1 additions and 4 deletions

View File

@ -51,13 +51,10 @@ func (p *TalkerPlugin) Message(message bot.Message) bool {
body := message.Body
lowermessage := strings.ToLower(body)
if channel != p.Bot.Config.MainChannel {
return false
}
if strings.HasPrefix(lowermessage, "say") {
msg := strings.TrimSpace(body[3:])
p.Bot.SendMessage(channel, msg)
return true
}
if strings.HasPrefix(lowermessage, "goatse") {