diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-09-16 23:56:49 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-09-17 00:02:02 +0300 |
commit | 9b25edfe24395fdee2ad06c85a0f9c0a6117aaa8 (patch) | |
tree | a1116647b9e40fe8a7f710e09434301da137a785 /src/gui/popups/popupmenu.cpp | |
parent | f5c479fa193fb4199872aabcb73d35f872caa87f (diff) | |
download | manaverse-9b25edfe24395fdee2ad06c85a0f9c0a6117aaa8.tar.gz manaverse-9b25edfe24395fdee2ad06c85a0f9c0a6117aaa8.tar.bz2 manaverse-9b25edfe24395fdee2ad06c85a0f9c0a6117aaa8.tar.xz manaverse-9b25edfe24395fdee2ad06c85a0f9c0a6117aaa8.zip |
Remove getter for adminHandler.
Diffstat (limited to 'src/gui/popups/popupmenu.cpp')
-rw-r--r-- | src/gui/popups/popupmenu.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/gui/popups/popupmenu.cpp b/src/gui/popups/popupmenu.cpp index 6298b7b14..00b19ee38 100644 --- a/src/gui/popups/popupmenu.cpp +++ b/src/gui/popups/popupmenu.cpp @@ -1319,7 +1319,7 @@ void PopupMenu::handleLink(const std::string &link, (being->getType() == ActorType::Player || being->getType() == ActorType::Monster)) { - Net::getAdminHandler()->kick(being->getId()); + adminHandler->kick(being->getId()); } else if (link == "chat close" && mTab) { @@ -1339,7 +1339,7 @@ void PopupMenu::handleLink(const std::string &link, { if (Game::instance()) { - Net::getAdminHandler()->warp(Game::instance()->getCurrentMapName(), + adminHandler->warp(Game::instance()->getCurrentMapName(), mMapItem->getX(), mMapItem->getY()); } } @@ -1347,7 +1347,7 @@ void PopupMenu::handleLink(const std::string &link, { if (Game::instance()) { - Net::getAdminHandler()->warp(Game::instance()->getCurrentMapName(), + adminHandler->warp(Game::instance()->getCurrentMapName(), mX, mY); } } @@ -1784,19 +1784,19 @@ void PopupMenu::handleLink(const std::string &link, } else if (link == "goto" && !mNick.empty()) { - Net::getAdminHandler()->gotoName(mNick); + adminHandler->gotoName(mNick); } else if (link == "recall" && !mNick.empty()) { - Net::getAdminHandler()->recallName(mNick); + adminHandler->recallName(mNick); } else if (link == "revive" && !mNick.empty()) { - Net::getAdminHandler()->reviveName(mNick); + adminHandler->reviveName(mNick); } else if (link == "ipcheck" && !mNick.empty()) { - Net::getAdminHandler()->ipcheckName(mNick); + adminHandler->ipcheckName(mNick); } else if (link == "gm" && !mNick.empty()) { |