// Copyright 2009 Thomas Jager All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package irc import "net" type IRCConnection struct { socket net.Conn pread, pwrite chan string Error chan error syncreader, syncwriter chan bool nick string //The nickname we want. nickcurrent string //The nickname we currently have. user string registered bool server string Password string events map[string][]func(*IRCEvent) lastMessage int64 ticker <-chan int64 ticker2 <-chan int64 VerboseCallbackHandler bool quitting bool } type IRCEvent struct { Code string Message string Raw string Nick string // Host string //!@ Source string // User string // Arguments []string }