1
0
Fork 0
forked from External/ergo

server ctime

This commit is contained in:
Jeremy Latt 2012-04-17 22:21:41 -07:00
parent 4cee1ef909
commit 259fd40916
3 changed files with 7 additions and 3 deletions

View file

@ -3,9 +3,11 @@ package irc
import (
"log"
"net"
"time"
)
type Server struct {
ctime time.Time
name string
ch chan *ClientMessage
nicks map[string]*Client
@ -18,6 +20,7 @@ type ClientMessage struct {
func NewServer(name string) *Server {
server := new(Server)
server.ctime = time.Now()
server.name = name
server.ch = make(chan *ClientMessage)
server.nicks = make(map[string]*Client)