1
0
Fork 0
mirror of https://github.com/fluffle/goirc synced 2025-05-12 18:44:50 +00:00

correct syntax errors from updating go to 4450:dd9bae5c7eac

This commit is contained in:
Alex Bramley 2009-12-17 21:14:01 +00:00
parent 7191dd9177
commit 6a8c1a13b2
3 changed files with 6 additions and 6 deletions

View file

@ -83,7 +83,7 @@ func (conn *Conn) Connect(host, pass string) os.Error {
conn.io = bufio.NewReadWriter(
bufio.NewReader(conn.sock),
bufio.NewWriter(conn.sock)
bufio.NewWriter(conn.sock),
);
go conn.send();
go conn.recv();

View file

@ -41,8 +41,8 @@ func (conn *Conn) dispatchEvent(line *Line) {
// So, I think CTCP and (in particular) CTCP ACTION are better handled as
// separate events as opposed to forcing people to have gargantuan PRIVMSG
// handlers to cope with the possibilities.
if line.Cmd == "PRIVMSG" && len(line.Text) > 2
&& line.Text[0] == '\001' && line.Text[len(line.Text)-1] == '\001' {
if line.Cmd == "PRIVMSG" && len(line.Text) > 2 &&
line.Text[0] == '\001' && line.Text[len(line.Text)-1] == '\001' {
// WOO, it's a CTCP message
t := strings.Split(line.Text[1:len(line.Text)-1], " ", 2);
if c := strings.ToUpper(t[0]); c == "ACTION" {