summaryrefslogtreecommitdiff
path: root/src/gui/whoisonline.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/whoisonline.cpp')
-rw-r--r--src/gui/whoisonline.cpp11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/gui/whoisonline.cpp b/src/gui/whoisonline.cpp
index fde0f08da..6004f706e 100644
--- a/src/gui/whoisonline.cpp
+++ b/src/gui/whoisonline.cpp
@@ -536,7 +536,8 @@ void WhoIsOnline::download()
}
else
{
- Net::getPlayerHandler()->requestOnlineList();
+ if (Client::limitPackets(PACKET_ONLINELIST))
+ Net::getPlayerHandler()->requestOnlineList();
}
}
@@ -618,9 +619,11 @@ void WhoIsOnline::action(const gcn::ActionEvent &event)
}
else
{
- mUpdateTimer = cur_time - 20;
- Net::getPlayerHandler()->requestOnlineList();
- setCaption(_("Who Is Online - Update"));
+ if (Client::limitPackets(PACKET_ONLINELIST))
+ {
+ mUpdateTimer = cur_time;
+ Net::getPlayerHandler()->requestOnlineList();
+ }
}
}
}