mirror of
https://github.com/fluffle/goirc
synced 2025-05-14 19:43:20 +00:00
SimpleClient shouldn't need to return an error.
This commit is contained in:
parent
8ed96e4294
commit
fd6fc1269b
2 changed files with 5 additions and 4 deletions
|
@ -87,8 +87,9 @@ func NewConfig(nick string, args ...string) *Config {
|
|||
|
||||
// Creates a new IRC connection object, but doesn't connect to anything so
|
||||
// that you can add event handlers to it. See AddHandler() for details
|
||||
func SimpleClient(nick string, args ...string) (*Conn, error) {
|
||||
return Client(NewConfig(nick, args...))
|
||||
func SimpleClient(nick string, args ...string) *Conn {
|
||||
conn, _ := Client(NewConfig(nick, args...))
|
||||
return conn
|
||||
}
|
||||
|
||||
func Client(cfg *Config) (*Conn, error) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue