mirror of https://github.com/fluffle/goirc
Use Connected() instead of .connected in String()
This commit is contained in:
parent
0ea3254693
commit
7711182a72
|
@ -390,12 +390,12 @@ func (conn *Conn) shutdown() {
|
||||||
func (conn *Conn) String() string {
|
func (conn *Conn) String() string {
|
||||||
str := "GoIRC Connection\n"
|
str := "GoIRC Connection\n"
|
||||||
str += "----------------\n\n"
|
str += "----------------\n\n"
|
||||||
if conn.connected {
|
if conn.Connected() {
|
||||||
str += "Connected to " + conn.cfg.Server + "\n\n"
|
str += "Connected to " + conn.cfg.Server + "\n\n"
|
||||||
} else {
|
} else {
|
||||||
str += "Not currently connected!\n\n"
|
str += "Not currently connected!\n\n"
|
||||||
}
|
}
|
||||||
str += conn.cfg.Me.String() + "\n"
|
str += conn.Me().String() + "\n"
|
||||||
if conn.st != nil {
|
if conn.st != nil {
|
||||||
str += conn.st.String() + "\n"
|
str += conn.st.String() + "\n"
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue