mirror of
https://github.com/edubart/otclient.git
synced 2025-10-14 19:44:54 +02:00
Moving start messages to lua
Moved start log messages to lua, to make easier to enable/disable those messages.
This commit is contained in:
@@ -93,7 +93,10 @@ function init()
|
||||
g_configs.save()
|
||||
end
|
||||
|
||||
connect(g_app, { onRun = startup })
|
||||
connect(g_app, {
|
||||
onRun = startup,
|
||||
onClose = exit,
|
||||
})
|
||||
end
|
||||
|
||||
function terminate()
|
||||
@@ -107,3 +110,7 @@ function terminate()
|
||||
g_settings.set('protocol-version', protocolVersion)
|
||||
end
|
||||
end
|
||||
|
||||
function exit()
|
||||
g_logger.info("Exiting application..")
|
||||
end
|
Reference in New Issue
Block a user