B:BD[
5.600] → [
5.600:770]
B:BD[
5.770] → [
3.144:211]
go self.comm(mut ircnet, mut ghost)
nick_cmd := 'nick $nick'
ircnet.write(mut ghost, nick_cmd)
user_cmd := 'user a b c :full name'
ircnet.write(mut ghost, user_cmd)
self.cin <- Payload(Connect{
network: ircnet
ghost: ghost
})
if ghost.sock is net.TcpConn {
go self.comm(mut ircnet, mut ghost)
nick_cmd := 'nick $nick'
ircnet.write(mut ghost, nick_cmd)
user_cmd := 'user a b c :full name'
ircnet.write(mut ghost, user_cmd)
self.cin <- Payload(Connect{
network: ircnet
ghost: ghost
})
} else {
println("WARNING: ghost for $nick added, sock connection failed")
}