From 7711182a726a44702722b6ed3194ab09dd91f227 Mon Sep 17 00:00:00 2001 From: Alex Bee Date: Sat, 14 Jun 2014 15:50:52 +0100 Subject: [PATCH] Use Connected() instead of .connected in String() --- client/connection.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/connection.go b/client/connection.go index 4fdd98f..7f82cc9 100644 --- a/client/connection.go +++ b/client/connection.go @@ -390,12 +390,12 @@ func (conn *Conn) shutdown() { func (conn *Conn) String() string { str := "GoIRC Connection\n" str += "----------------\n\n" - if conn.connected { + if conn.Connected() { str += "Connected to " + conn.cfg.Server + "\n\n" } else { str += "Not currently connected!\n\n" } - str += conn.cfg.Me.String() + "\n" + str += conn.Me().String() + "\n" if conn.st != nil { str += conn.st.String() + "\n" }