change JoinKey to JoinWithKey

This commit is contained in:
kyle 2014-12-23 15:21:49 +02:00
parent 3fc8380afb
commit c0bc414927
2 changed files with 2 additions and 2 deletions

View File

@ -100,7 +100,7 @@ func (conn *Conn) User(ident, name string) {
func (conn *Conn) Join(channel string) { conn.Raw(JOIN + " " + channel) } func (conn *Conn) Join(channel string) { conn.Raw(JOIN + " " + channel) }
// JoinKey() sends a JOIN command to the server with a key // 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 // Part() sends a PART command to the server with an optional part message
func (conn *Conn) Part(channel string, message ...string) { func (conn *Conn) Part(channel string, message ...string) {

View File

@ -98,7 +98,7 @@ func TestClientCommands(t *testing.T) {
c.Join("#foo") c.Join("#foo")
s.nc.Expect("JOIN #foo") s.nc.Expect("JOIN #foo")
c.JoinKey("#foo", "bar") c.JoinWithKey("#foo", "bar")
s.nc.Expect("JOIN #foo bar") s.nc.Expect("JOIN #foo bar")
c.Part("#foo") c.Part("#foo")