Hurrah, starting a real fork.
The old codebase is too messy for my taste and doesn't provide a clean enough API. I don't like the name either, so I'm also rebranding it. I don't care.
This commit is contained in:
@@ -1,47 +0,0 @@
|
||||
// Copyright 2009 Thomas Jager <mail@jager.no> 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"
|
||||
"time"
|
||||
"github.com/lye/tls"
|
||||
)
|
||||
|
||||
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 time.Time
|
||||
ticker <-chan time.Time
|
||||
ticker2 <-chan time.Time
|
||||
|
||||
VerboseCallbackHandler bool
|
||||
|
||||
quitting bool
|
||||
|
||||
SSLConfig *tls.Config
|
||||
}
|
||||
|
||||
type IRCEvent struct {
|
||||
Code string
|
||||
Message string
|
||||
Raw string
|
||||
Nick string //<nick>
|
||||
Host string //<nick>!<usr>@<host>
|
||||
Source string //<host>
|
||||
User string //<usr>
|
||||
|
||||
Arguments []string
|
||||
}
|
||||
Reference in New Issue
Block a user