Forward irc errors to the client, improve command validation and feedback, handle topic changes
This commit is contained in:
parent
993d29242e
commit
aa59e71745
17 changed files with 328 additions and 96 deletions
|
@ -96,6 +96,10 @@ func TestTopic(t *testing.T) {
|
|||
c, out := testClientSend()
|
||||
c.Topic("#chan")
|
||||
assert.Equal(t, "TOPIC #chan\r\n", <-out)
|
||||
c.Topic("#chan", "apple pie")
|
||||
assert.Equal(t, "TOPIC #chan :apple pie\r\n", <-out)
|
||||
c.Topic("#chan", "")
|
||||
assert.Equal(t, "TOPIC #chan :\r\n", <-out)
|
||||
}
|
||||
|
||||
func TestInvite(t *testing.T) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue