mirror of
https://github.com/fluffle/goirc
synced 2025-06-07 07:13:20 +00:00
change JoinKey to JoinWithKey
This commit is contained in:
parent
3fc8380afb
commit
c0bc414927
2 changed files with 2 additions and 2 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue