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:
Reynir Reynisson
2012-05-11 13:35:25 +02:00
parent 67c1c92623
commit 670fd99fb4
4 changed files with 48 additions and 48 deletions

View File

@@ -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