diff options
Diffstat (limited to 'src/gui/popupmenu.cpp')
-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()) { |