mirror of https://github.com/fluffle/goirc
change JoinKey to JoinWithKey
This commit is contained in:
parent
3fc8380afb
commit
c0bc414927
|
@ -100,7 +100,7 @@ func (conn *Conn) User(ident, name string) {
|
|||
func (conn *Conn) Join(channel string) { conn.Raw(JOIN + " " + channel) }
|
||||
|
||||
// JoinKey() sends a JOIN command to the server with a key
|
||||
func (conn *Conn) JoinKey(channel string, key string) { conn.Raw(JOIN + " " + channel + " " + key) }
|
||||
func (conn *Conn) JoinWithKey(channel string, key string) { conn.Raw(JOIN + " " + channel + " " + key) }
|
||||
|
||||
// Part() sends a PART command to the server with an optional part message
|
||||
func (conn *Conn) Part(channel string, message ...string) {
|
||||
|
|
|
@ -98,7 +98,7 @@ func TestClientCommands(t *testing.T) {
|
|||
c.Join("#foo")
|
||||
s.nc.Expect("JOIN #foo")
|
||||
|
||||
c.JoinKey("#foo", "bar")
|
||||
c.JoinWithKey("#foo", "bar")
|
||||
s.nc.Expect("JOIN #foo bar")
|
||||
|
||||
c.Part("#foo")
|
||||
|
|
Loading…
Reference in New Issue