1
0
mirror of https://github.com/velour/catbase.git synced 2025-04-03 19:51:42 +00:00

Merge 1b249fc746bf2a2e544eaa1b274ac0577923b329 into 98298dfb84384d835bbebcaf07a519edf6336b15

This commit is contained in:
Robert Herbig 2017-06-07 02:22:54 +00:00 committed by GitHub
commit aad24502b5

View File

@ -54,7 +54,8 @@ func (p *RememberPlugin) Message(message msg.Message) bool {
// we have a remember! // we have a remember!
// look through the logs and find parts[1] as a user, if not, // look through the logs and find parts[1] as a user, if not,
// fuck this hoser // fuck this hoser
nick := parts[1] // some people use @nick instead of just nick
nick := strings.TrimPrefix(parts[1], "@")
snip := strings.Join(parts[2:], " ") snip := strings.Join(parts[2:], " ")
for i := len(p.Log[message.Channel]) - 1; i >= 0; i-- { for i := len(p.Log[message.Channel]) - 1; i >= 0; i-- {
entry := p.Log[message.Channel][i] entry := p.Log[message.Channel][i]