add scrollbar to channel list, closing channels fixed

This commit is contained in:
Henrique Santiago
2012-04-06 19:14:39 -03:00
parent 43e2aeec73
commit 8cc0aaae23
2 changed files with 11 additions and 2 deletions

View File

@@ -267,14 +267,14 @@ function Console.removeCurrentTab()
local tab = consoleTabBar:getCurrentTab()
if tab:getText() == "Default" or tab:getText() == "Server Log" then return end
consoleTabBar:removeTab(tab)
-- notificate the server that we are leaving the channel
if tab.channelId then
g_game.leaveChannel(tab.channelId)
elseif tab:getText() == "NPCs" then
g_game.closeNpcChannel()
end
consoleTabBar:removeTab(tab)
end
function Console.getTab(name)