diff --git a/coolq/bot.go b/coolq/bot.go index 2b7cafa..2b7ce53 100644 --- a/coolq/bot.go +++ b/coolq/bot.go @@ -569,7 +569,9 @@ func (bot *CQBot) dispatchEventMessage(m global.MSG) { }(f) } wg.Wait() - global.PutBuffer(event.buffer) + if event.buffer != nil { + global.PutBuffer(event.buffer) + } } func formatGroupName(group *client.GroupInfo) string {