diff --git a/spongy/network.go b/spongy/network.go index ae17462..0b6a33c 100644 --- a/spongy/network.go +++ b/spongy/network.go @@ -174,17 +174,27 @@ func (nw *Network) MessageDispatch() { log.Print(err) continue } - + nw.logq <- m + // XXX: Add in a handler subprocess call switch m.Command { case "PING": nw.outq <- "PONG :" + m.Text + continue case "001": nw.JoinChannels() case "433": nw.NextNick() + case "PRIVMSG": + if m.Text == "\001VERSION\001" { + //nw.outq <- "NOTICE " + m.Sender + " :\001VERSION Spongy v8294.003.1R6pl58₄SEσ\001" + nw.outq <- "NOTICE " + m.Sender + " :\001 VERSION begin 644 version.txt\001" + nw.outq <- "NOTICE " + m.Sender + " :\001 VERSION F4W!O;F=Y('9E