diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-07-11 21:05:05 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-07-11 21:05:05 +0300 |
commit | d0c97c8a12b0904c00a492acd129aebffd7816c8 (patch) | |
tree | 8c863fd894b3eb5453db40db3a9780edc932ed08 /src/gui | |
parent | e36c735ce6569cd9c0e668632e59bcbe3280d507 (diff) | |
download | mv-d0c97c8a12b0904c00a492acd129aebffd7816c8.tar.gz mv-d0c97c8a12b0904c00a492acd129aebffd7816c8.tar.bz2 mv-d0c97c8a12b0904c00a492acd129aebffd7816c8.tar.xz mv-d0c97c8a12b0904c00a492acd129aebffd7816c8.zip |
Remove low level gm actions from popup to net code.
Diffstat (limited to 'src/gui')
-rw-r--r-- | src/gui/popupmenu.cpp | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/src/gui/popupmenu.cpp b/src/gui/popupmenu.cpp index d2a3568b1..da33b6915 100644 --- a/src/gui/popupmenu.cpp +++ b/src/gui/popupmenu.cpp @@ -1665,23 +1665,19 @@ void PopupMenu::handleLink(const std::string &link, } else if (link == "goto" && !mNick.empty()) { - if (chatWindow) - chatWindow->localChatInput("@goto " + mNick); + Net::getAdminHandler()->gotoName(mNick); } else if (link == "recall" && !mNick.empty()) { - if (chatWindow) - chatWindow->localChatInput("@recall " + mNick); + Net::getAdminHandler()->recallName(mNick); } else if (link == "revive" && !mNick.empty()) { - if (chatWindow) - chatWindow->localChatInput("@revive " + mNick); + Net::getAdminHandler()->reviveName(mNick); } else if (link == "ipcheck" && !mNick.empty()) { - if (chatWindow) - chatWindow->localChatInput("@ipcheck " + mNick); + Net::getAdminHandler()->ipcheckName(mNick); } else if (link == "gm" && !mNick.empty()) { |