From d33ffd2ac6230059cce68ecae862d3bdc813b93d Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 27 Nov 2018 21:51:59 +0300 Subject: Avoid shop spam in legacy server. --- src/net/tmwa/buysellhandler.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/net/tmwa/buysellhandler.cpp') diff --git a/src/net/tmwa/buysellhandler.cpp b/src/net/tmwa/buysellhandler.cpp index 23bef65de..787b9ef33 100644 --- a/src/net/tmwa/buysellhandler.cpp +++ b/src/net/tmwa/buysellhandler.cpp @@ -31,6 +31,8 @@ #include "net/ea/buysellrecv.h" +#include "net/tmwa/chatrecv.h" + #include "utils/timer.h" #include "debug.h" @@ -57,6 +59,7 @@ void BuySellHandler::requestSellList(const std::string &nick) const const std::string data("!selllist " + toString(tick_time)); shopWindow->setAcceptPlayer(nick); + ChatRecv::mShopRequestName = nick; if (config.getBoolValue("hideShopMessages")) { chatHandler->privateMessage(nick, data); @@ -75,7 +78,7 @@ void BuySellHandler::requestBuyList(const std::string &nick) const const std::string data("!buylist " + toString(tick_time)); shopWindow->setAcceptPlayer(nick); - + ChatRecv::mShopRequestName = nick; if (config.getBoolValue("hideShopMessages")) { chatHandler->privateMessage(nick, data); -- cgit v1.2.3-70-g09d2