From c0bc414927e8ec12debcb5737d13cdc9d7b2e8b0 Mon Sep 17 00:00:00 2001 From: kyle Date: Tue, 23 Dec 2014 15:21:49 +0200 Subject: [PATCH] change JoinKey to JoinWithKey --- client/commands.go | 2 +- client/commands_test.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/client/commands.go b/client/commands.go index 9584dbe..83d6cd3 100644 --- a/client/commands.go +++ b/client/commands.go @@ -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) { diff --git a/client/commands_test.go b/client/commands_test.go index bfd88ba..8182395 100644 --- a/client/commands_test.go +++ b/client/commands_test.go @@ -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")