Skip to content

Commit a2a0b62

Browse files
Updating toc
Fixing loading bug reported by dysonfm
1 parent bf3cf05 commit a2a0b62

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

Elephant.toc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
## Interface: 100005
1+
## Interface: 100100
22
## Title: Elephant
33
## Title-zhCN: Elephant 聊天记录器
44
## Notes: A friendly companion that remembers the chat.

Structure.lua

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,9 +130,12 @@ function Elephant:MaybeInitDefaultLogStructures()
130130
end
131131
end
132132

133-
for name_id, general_chat_struct in pairs(Elephant:DefaultConfiguration().generalchatchannelnames) do
133+
for name_id, name in pairs(Elephant:DefaultConfiguration().generalchatchannelnames) do
134134
if not Elephant:LogsDb().logs[name_id] then
135-
CreateNewLogStructure(name_id, general_chat_struct.name)
135+
CreateNewLogStructure(name_id, name)
136+
elseif not Elephant:LogsDb().logs[name_id].name then
137+
-- Fix for a bug where names would not be populated properly
138+
Elephant:LogsDb().logs[name_id].name = name
136139
end
137140
end
138141
end

0 commit comments

Comments
 (0)