summaryrefslogtreecommitdiff
path: root/src/gui/whoisonline.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-08-08 12:36:22 +0300
committerAndrei Karas <akaras@inbox.ru>2013-08-08 12:36:22 +0300
commitd0ccffd7db79f5dbff6f2cb4f8b77a8bb3435e57 (patch)
treec1fc8dd2d9ddbc04f8893139276b8a35346ae2d1 /src/gui/whoisonline.cpp
parente2dfb4d9242f74e566416be7f3ad6ac529fac520 (diff)
downloadplus-d0ccffd7db79f5dbff6f2cb4f8b77a8bb3435e57.tar.gz
plus-d0ccffd7db79f5dbff6f2cb4f8b77a8bb3435e57.tar.bz2
plus-d0ccffd7db79f5dbff6f2cb4f8b77a8bb3435e57.tar.xz
plus-d0ccffd7db79f5dbff6f2cb4f8b77a8bb3435e57.zip
add autocomplete support for online list.
Diffstat (limited to 'src/gui/whoisonline.cpp')
-rw-r--r--src/gui/whoisonline.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/gui/whoisonline.cpp b/src/gui/whoisonline.cpp
index e5eb90cd1..741e1e771 100644
--- a/src/gui/whoisonline.cpp
+++ b/src/gui/whoisonline.cpp
@@ -797,6 +797,13 @@ void WhoIsOnline::setNeutralColor(OnlinePlayer *const player)
player->setText("0");
}
+void WhoIsOnline::getPlayerNames(StringVect &names)
+{
+ names.clear();
+ FOR_EACH (std::set<std::string>::const_iterator, it, mOnlineNicks)
+ names.push_back(*it);
+}
+
void OnlinePlayer::setText(std::string color)
{
mText.clear();