summaryrefslogtreecommitdiff
path: root/src/gui/popupmenu.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-07-11 21:05:05 +0300
committerAndrei Karas <akaras@inbox.ru>2013-07-11 21:05:05 +0300
commitd0c97c8a12b0904c00a492acd129aebffd7816c8 (patch)
tree8c863fd894b3eb5453db40db3a9780edc932ed08 /src/gui/popupmenu.cpp
parente36c735ce6569cd9c0e668632e59bcbe3280d507 (diff)
downloadmanaplus-d0c97c8a12b0904c00a492acd129aebffd7816c8.tar.gz
manaplus-d0c97c8a12b0904c00a492acd129aebffd7816c8.tar.bz2
manaplus-d0c97c8a12b0904c00a492acd129aebffd7816c8.tar.xz
manaplus-d0c97c8a12b0904c00a492acd129aebffd7816c8.zip
Remove low level gm actions from popup to net code.
Diffstat (limited to 'src/gui/popupmenu.cpp')
-rw-r--r--src/gui/popupmenu.cpp12
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())
{