diff options
author | David Athay <ko2fan@gmail.com> | 2008-04-16 12:59:02 +0000 |
---|---|---|
committer | David Athay <ko2fan@gmail.com> | 2008-04-16 12:59:02 +0000 |
commit | 0d9ac84ca12fbf0dc1592c9f13d0f4b700743f01 (patch) | |
tree | 6f1911b6d5e8a0e2d43b46c79add9bb0c544f93c /src/gui/chat.cpp | |
parent | e2e4ceb9fa8a72ad94853f74724676fff82b15c0 (diff) | |
download | mana-client-0d9ac84ca12fbf0dc1592c9f13d0f4b700743f01.tar.gz mana-client-0d9ac84ca12fbf0dc1592c9f13d0f4b700743f01.tar.bz2 mana-client-0d9ac84ca12fbf0dc1592c9f13d0f4b700743f01.tar.xz mana-client-0d9ac84ca12fbf0dc1592c9f13d0f4b700743f01.zip |
Fixed online status so that users are shown as online
Diffstat (limited to 'src/gui/chat.cpp')
-rw-r--r-- | src/gui/chat.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/gui/chat.cpp b/src/gui/chat.cpp index 0602c671..f6e95059 100644 --- a/src/gui/chat.cpp +++ b/src/gui/chat.cpp @@ -475,6 +475,7 @@ ChatWindow::removeChannel(short channelId) void ChatWindow::createNewChannelTab(std::string channelName) { + // Create new channel BrowserBox *textOutput = new BrowserBox(BrowserBox::AUTO_WRAP); textOutput->setOpaque(false); textOutput->disableLinksAndUserColors(); @@ -483,11 +484,17 @@ ChatWindow::createNewChannelTab(std::string channelName) scrollArea->setScrollPolicy(gcn::ScrollArea::SHOW_NEVER, gcn::ScrollArea::SHOW_ALWAYS); scrollArea->setOpaque(false); + // Add channel to the tabbed area mChatTabs->addTab(channelName, scrollArea); mChannelOutput[channelName] = textOutput; mChannelScroll[channelName] = scrollArea; mScrollArea = scrollArea; mTextOutput = textOutput; + + // Ask for channel users + Net::ChatServer::getUserList(channelName); + + // Update UI logic(); } |