fix: !list时会显示预设消息 #48

This commit is contained in:
Rock Chin
2022-12-18 20:04:39 +08:00
parent 8c588c5c1d
commit 03a5f15a58
2 changed files with 5 additions and 3 deletions
+3 -1
View File
@@ -262,4 +262,6 @@ class Session:
return self
def list_history(self, capacity: int = 10, page: int = 0):
return pkg.database.manager.get_inst().list_history(self.name, capacity, page)
return pkg.database.manager.get_inst().list_history(self.name, capacity, page,
(self.user_name + ":" + get_default_prompt() + "\n" +
self.bot_name + ":") if get_default_prompt() != "" else "")