diff --git a/cap_test.go b/cap_test.go index 95fcada..6d3e814 100644 --- a/cap_test.go +++ b/cap_test.go @@ -104,7 +104,7 @@ func TestTagGetSetCount(t *testing.T) { } // Add a hidden ascii value at the end to make it invalid. - if err := e.Tags.Set("key", "invalid-value"+string(0x08)); err == nil { + if err := e.Tags.Set("key", "invalid-value"+string(rune(0x08))); err == nil { t.Fatal("tag set of invalid value should have returned error") } } diff --git a/commands.go b/commands.go index eebce21..8d98437 100644 --- a/commands.go +++ b/commands.go @@ -356,7 +356,7 @@ func (cmd *Commands) List(channels ...string) { // Whowas sends a WHOWAS query to the server. amount is the amount of results // you want back. func (cmd *Commands) Whowas(user string, amount int) { - cmd.c.Send(&Event{Command: WHOWAS, Params: []string{user, string(amount)}}) + cmd.c.Send(&Event{Command: WHOWAS, Params: []string{user, fmt.Sprint(amount)}}) } // Monitor sends a MONITOR query to the server. The results of the query