diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-03-01 18:07:04 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-03-01 18:07:04 +0300 |
commit | a91716af879291415679c807f6d2563fc078fdff (patch) | |
tree | e5dfe46798788223e3e972ecc2d677ebcf191057 /src/net/ea/buysellhandler.cpp | |
parent | 582ca3b9024277fa845aa7d5fd180b9c304b3513 (diff) | |
download | manaverse-a91716af879291415679c807f6d2563fc078fdff.tar.gz manaverse-a91716af879291415679c807f6d2563fc078fdff.tar.bz2 manaverse-a91716af879291415679c807f6d2563fc078fdff.tar.xz manaverse-a91716af879291415679c807f6d2563fc078fdff.zip |
Move sendBuyRequest from ea namespace into eathena and tmwa.
Diffstat (limited to 'src/net/ea/buysellhandler.cpp')
-rw-r--r-- | src/net/ea/buysellhandler.cpp | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/src/net/ea/buysellhandler.cpp b/src/net/ea/buysellhandler.cpp index 990ec8716..3ac4951bc 100644 --- a/src/net/ea/buysellhandler.cpp +++ b/src/net/ea/buysellhandler.cpp @@ -59,24 +59,6 @@ BuySellHandler::BuySellHandler() mBuyDialog = nullptr; } -void BuySellHandler::sendBuyRequest(const std::string &nick, - const ShopItem *const item, - const int amount) const -{ - if (!chatWindow || nick.empty() || !item || - amount < 1 || amount > item->getQuantity()) - { - return; - } - const std::string data = strprintf("!buyitem %d %d %d", - item->getId(), item->getPrice(), amount); - - if (config.getBoolValue("hideShopMessages")) - chatHandler->privateMessage(nick, data); - else - chatWindow->addWhisper(nick, data, ChatMsgType::BY_PLAYER); -} - void BuySellHandler::sendSellRequest(const std::string &nick, const ShopItem *const item, const int amount) const |