mirror of
https://github.com/Mrs4s/go-cqhttp.git
synced 2025-05-05 03:23:49 +08:00
fix: PutBuffer panic on nil event buffer (#1299)
This commit is contained in:
parent
b98f75ccab
commit
9152185ebc
@ -569,7 +569,9 @@ func (bot *CQBot) dispatchEventMessage(m global.MSG) {
|
|||||||
}(f)
|
}(f)
|
||||||
}
|
}
|
||||||
wg.Wait()
|
wg.Wait()
|
||||||
global.PutBuffer(event.buffer)
|
if event.buffer != nil {
|
||||||
|
global.PutBuffer(event.buffer)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
func formatGroupName(group *client.GroupInfo) string {
|
func formatGroupName(group *client.GroupInfo) string {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user