コード例 #1
0
ファイル: notify.go プロジェクト: treeherder/glenda
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)
	}
}