summaryrefslogtreecommitdiffstats
path: root/vendor/github.com/lrstanley/girc/commands.go
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/github.com/lrstanley/girc/commands.go')
-rw-r--r--vendor/github.com/lrstanley/girc/commands.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/vendor/github.com/lrstanley/girc/commands.go b/vendor/github.com/lrstanley/girc/commands.go
index 9538cedc..2ee0a23a 100644
--- a/vendor/github.com/lrstanley/girc/commands.go
+++ b/vendor/github.com/lrstanley/girc/commands.go
@@ -5,6 +5,7 @@
package girc
import (
+ "strconv"
"errors"
"fmt"
)
@@ -356,7 +357,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, strconv.Itoa(amount)}})
}
// Monitor sends a MONITOR query to the server. The results of the query