mirror of
https://github.com/edubart/otclient.git
synced 2025-10-15 20:14:54 +02:00
Change signalcall to protectedcall in console
Even though they kind of do the same (calling function in protected mode), @edubart suggested to use a different function for the sake of readability.
This commit is contained in:
@@ -694,7 +694,7 @@ function processChannelTabMenu(tab, mousePos, mouseButton)
|
||||
table.insert(lines, 1, os.date('\nChannel saved at %a %b %d %H:%M:%S %Y'))
|
||||
|
||||
if g_resources.fileExists(filepath) then
|
||||
table.insert(lines, 1, signalcall(g_resources.readFileContents, filepath) or '')
|
||||
table.insert(lines, 1, protectedcall(g_resources.readFileContents, filepath) or '')
|
||||
end
|
||||
|
||||
g_resources.writeFileContents(filepath, table.concat(lines, '\n'))
|
||||
|
Reference in New Issue
Block a user