summaryrefslogtreecommitdiff
path: root/src/gui/popups/popupmenu.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-09-17 11:19:17 +0300
committerAndrei Karas <akaras@inbox.ru>2014-09-17 11:19:17 +0300
commit418d749f0d4889904d0b91e825a87e70a08d134c (patch)
tree5c244fcc48d343dd9ee8f6232b9f0fce92ca06c1 /src/gui/popups/popupmenu.cpp
parentdc5766216ee50103909d3b5dcdc5747c149855e0 (diff)
downloadmv-418d749f0d4889904d0b91e825a87e70a08d134c.tar.gz
mv-418d749f0d4889904d0b91e825a87e70a08d134c.tar.bz2
mv-418d749f0d4889904d0b91e825a87e70a08d134c.tar.xz
mv-418d749f0d4889904d0b91e825a87e70a08d134c.zip
Remove getter for partyHandler.
Diffstat (limited to 'src/gui/popups/popupmenu.cpp')
-rw-r--r--src/gui/popups/popupmenu.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/gui/popups/popupmenu.cpp b/src/gui/popups/popupmenu.cpp
index aa5a983fc..9aa99b229 100644
--- a/src/gui/popups/popupmenu.cpp
+++ b/src/gui/popups/popupmenu.cpp
@@ -1292,12 +1292,12 @@ void PopupMenu::handleLink(const std::string &link,
else if (link == "party" && being &&
being->getType() == ActorType::Player)
{
- Net::getPartyHandler()->invite(being->getName());
+ partyHandler->invite(being->getName());
}
else if (link == "kick party" && being
&& being->getType() == ActorType::Player)
{
- Net::getPartyHandler()->kick(being);
+ partyHandler->kick(being);
}
else if (link == "kick party" && !mNick.empty())
{
@@ -1306,7 +1306,7 @@ void PopupMenu::handleLink(const std::string &link,
const PartyMember *const member = localPlayer->
getParty()->getMember(mNick);
if (member)
- Net::getPartyHandler()->kick(mNick);
+ partyHandler->kick(mNick);
}
}
else if (link == "name" && !mNick.empty())
@@ -1328,7 +1328,7 @@ void PopupMenu::handleLink(const std::string &link,
}
else if (link == "leave party" && mTab)
{
- Net::getPartyHandler()->leave();
+ partyHandler->leave();
}
else if (link == "chat clear" && mTab)
{