nil pointer

This commit is contained in:
mimu
2022-10-11 01:00:33 +02:00
parent 8a4a097e10
commit 1aacdc5d13
+2
View File
@@ -57,6 +57,8 @@ var Pinned tempest.Command = tempest.Command{
itx.SendLinearReply("no data for this channel", false)
}
fmt.Println(channelData)
if channelData.Count == 0 {
itx.SendLinearReply("no pinned messages", false)
return