Re-add destroying for unloading, other clean up:

* Cleaned some module terminate code
* Fixed "reload all" issues
This commit is contained in:
BeniS
2013-02-01 17:32:15 +13:00
parent 35e5dd8af8
commit 7f5dda5c8f
21 changed files with 31 additions and 77 deletions

View File

@@ -73,9 +73,9 @@ violationWindow = nil
violationReportTab = nil
local ignoreSettings = {
privateMessages = false,
yelling = false,
players = {}
privateMessages = false,
yelling = false,
players = {}
}
function init()
@@ -164,25 +164,17 @@ function terminate()
if channelsWindow then
channelsWindow:destroy()
channelsWindow = nil
end
if ignoreWindow then
ignoreWindow:destroy()
ignoreWindow = nil
end
if violationWindow then
violationWindow:destroy()
violationWindow = nil
end
consolePanel:destroy()
consolePanel = nil
consoleTextEdit = nil
consoleContentPanel = nil
consoleTabBar = nil
ownPrivateName = nil
Console = nil