func (m *NotifyMod) NotifyIfQueued(conn *irc.Conn, line irc.Line) { to := line.Src.String() if notes, ok := m.notes[to]; ok { ctx := getContext(line) for _, note := range notes { conn.Privmsg(ctx, fmt.Sprintf("%s: %s", to, note)) } delete(m.notes, to) } }