This commit is contained in:
Robert Herbig 2017-06-07 02:22:54 +00:00 committed by GitHub
commit aad24502b5
1 changed files with 2 additions and 1 deletions

View File

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