Skip to content

Commit 7d5f1d6

Browse files
committed
fix #1815
1 parent 960f7ab commit 7d5f1d6

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

coolq/event.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,10 @@ func (bot *CQBot) tempMessageEvent(c *client.QQClient, e *client.TempMessageEven
144144
PrimaryID: e.Session.Sender,
145145
}
146146
cqm := toStringMessage(m.Elements, source)
147-
bot.tempSessionCache.Store(m.Sender.Uin, e.Session)
147+
if base.AllowTempSession {
148+
bot.tempSessionCache.Store(m.Sender.Uin, e.Session)
149+
}
150+
148151
id := m.Id
149152
// todo(Mrs4s)
150153
// if bot.db != nil { // nolint

0 commit comments

Comments
 (0)