remove duplicate func
This commit is contained in:
parent
2d96e5fbec
commit
0883560c27
11
client.go
11
client.go
@ -523,17 +523,6 @@ func (c *Client) GetServerOption(key string) (result string, ok bool) {
|
|||||||
return result, ok
|
return result, ok
|
||||||
}
|
}
|
||||||
|
|
||||||
// ServerName returns the server host/name that the server itself identifies
|
|
||||||
// as. May be empty if the server does not support RPL_MYINFO. Will panic if
|
|
||||||
// used when tracking has been disabled.
|
|
||||||
func (c *Client) ServerName() (name string) {
|
|
||||||
c.panicIfNotTracking()
|
|
||||||
|
|
||||||
name, _ = c.GetServerOption("NETWORK")
|
|
||||||
|
|
||||||
return name
|
|
||||||
}
|
|
||||||
|
|
||||||
// NetworkName returns the network identifier. E.g. "EsperNet", "ByteIRC".
|
// NetworkName returns the network identifier. E.g. "EsperNet", "ByteIRC".
|
||||||
// May be empty if the server does not support RPL_ISUPPORT (or RPL_PROTOCTL).
|
// May be empty if the server does not support RPL_ISUPPORT (or RPL_PROTOCTL).
|
||||||
// Will panic if used when tracking has been disabled.
|
// Will panic if used when tracking has been disabled.
|
||||||
|
Loading…
Reference in New Issue
Block a user