Rename IRC{Connection,Event} -> {Connection,Event}
I don't feel it's necessary to tag the types with IRC, as a client would
tag it with the module name anyway. Example:
var conn irc.IRCConnection
// ...
vs.
var conn irc.Connection
// ...
This commit is contained in:
@@ -9,7 +9,7 @@ import (
|
||||
"time"
|
||||
)
|
||||
|
||||
type IRCConnection struct {
|
||||
type Connection struct {
|
||||
socket net.Conn
|
||||
pread, pwrite chan string
|
||||
Error chan error
|
||||
@@ -20,7 +20,7 @@ type IRCConnection struct {
|
||||
registered bool
|
||||
server string
|
||||
Password string
|
||||
events map[string][]func(*IRCEvent)
|
||||
events map[string][]func(*Event)
|
||||
|
||||
lastMessage time.Time
|
||||
ticker <-chan time.Time
|
||||
@@ -31,7 +31,7 @@ type IRCConnection struct {
|
||||
quitting bool
|
||||
}
|
||||
|
||||
type IRCEvent struct {
|
||||
type Event struct {
|
||||
Code string
|
||||
Message string
|
||||
Raw string
|
||||
|
||||
Reference in New Issue
Block a user