diff --git a/irc/client.go b/irc/client.go index b636678a..d3345cea 100644 --- a/irc/client.go +++ b/irc/client.go @@ -231,7 +231,7 @@ func (session *Session) HasHistoryCaps() bool { // this allows ~4 billion such batches which should be fine. func (session *Session) generateBatchID() string { id := atomic.AddUint32(&session.batchCounter, 1) - return strconv.Itoa(int(id)) + return strconv.FormatInt(int64(id), 32) } // WhoWas is the subset of client details needed to answer a WHOWAS query