summaryrefslogtreecommitdiff
path: root/src/net/tmwa
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-12-22 04:36:26 +0300
committerAndrei Karas <akaras@inbox.ru>2017-12-22 04:36:26 +0300
commit3b22410e42be27ac30fc63f020243241d1eea737 (patch)
treef574a40a44bb8a33ff3226c784debd8fcda02330 /src/net/tmwa
parent98ed087de210f5a5a0979b0d60b6d4b21b24ba4c (diff)
downloadplus-3b22410e42be27ac30fc63f020243241d1eea737.tar.gz
plus-3b22410e42be27ac30fc63f020243241d1eea737.tar.bz2
plus-3b22410e42be27ac30fc63f020243241d1eea737.tar.xz
plus-3b22410e42be27ac30fc63f020243241d1eea737.zip
Remove default parameters from chatwindow.h
Diffstat (limited to 'src/net/tmwa')
-rw-r--r--src/net/tmwa/chatrecv.cpp50
1 files changed, 38 insertions, 12 deletions
diff --git a/src/net/tmwa/chatrecv.cpp b/src/net/tmwa/chatrecv.cpp
index 42cac06f4..480527a82 100644
--- a/src/net/tmwa/chatrecv.cpp
+++ b/src/net/tmwa/chatrecv.cpp
@@ -195,7 +195,11 @@ void ChatRecv::processWhisperContinue(const std::string &nick,
if (tradeBot)
{
if (showMsg && (chatWindow != nullptr))
- chatWindow->addWhisper(nick, chatMsg);
+ {
+ chatWindow->addWhisper(nick,
+ chatMsg,
+ ChatMsgType::BY_OTHER);
+ }
shopWindow->giveList(nick, ShopWindow::SELL);
}
}
@@ -203,15 +207,23 @@ void ChatRecv::processWhisperContinue(const std::string &nick,
{
if (tradeBot)
{
- if (showMsg && (chatWindow != nullptr))
- chatWindow->addWhisper(nick, chatMsg);
+ if (showMsg && chatWindow != nullptr)
+ {
+ chatWindow->addWhisper(nick,
+ chatMsg,
+ ChatMsgType::BY_OTHER);
+ }
shopWindow->giveList(nick, ShopWindow::BUY);
}
}
else if (chatMsg.find("!buyitem ") == 0)
{
- if (showMsg && (chatWindow != nullptr))
- chatWindow->addWhisper(nick, chatMsg);
+ if (showMsg && chatWindow != nullptr)
+ {
+ chatWindow->addWhisper(nick,
+ chatMsg,
+ ChatMsgType::BY_OTHER);
+ }
if (tradeBot)
{
shopWindow->processRequest(nick, chatMsg,
@@ -220,8 +232,12 @@ void ChatRecv::processWhisperContinue(const std::string &nick,
}
else if (chatMsg.find("!sellitem ") == 0)
{
- if (showMsg && (chatWindow != nullptr))
- chatWindow->addWhisper(nick, chatMsg);
+ if (showMsg && chatWindow != nullptr)
+ {
+ chatWindow->addWhisper(nick,
+ chatMsg,
+ ChatMsgType::BY_OTHER);
+ }
if (tradeBot)
{
shopWindow->processRequest(nick, chatMsg,
@@ -232,19 +248,27 @@ void ChatRecv::processWhisperContinue(const std::string &nick,
&& chatMsg.find("\302\202") == 0)
{
chatMsg = chatMsg.erase(0, 2);
- if (showMsg && (chatWindow != nullptr))
- chatWindow->addWhisper(nick, chatMsg);
+ if (showMsg && chatWindow != nullptr)
+ {
+ chatWindow->addWhisper(nick,
+ chatMsg,
+ ChatMsgType::BY_OTHER);
+ }
if (chatMsg.find("B1") == 0 || chatMsg.find("S1") == 0)
ShopWindow::showList(nick, chatMsg);
}
else if (chatWindow != nullptr)
{
- chatWindow->addWhisper(nick, chatMsg);
+ chatWindow->addWhisper(nick,
+ chatMsg,
+ ChatMsgType::BY_OTHER);
}
}
else if (chatWindow != nullptr)
{
- chatWindow->addWhisper(nick, chatMsg);
+ chatWindow->addWhisper(nick,
+ chatMsg,
+ ChatMsgType::BY_OTHER);
}
}
else
@@ -254,7 +278,9 @@ void ChatRecv::processWhisperContinue(const std::string &nick,
(chatMsg.find("!selllist") != 0 &&
chatMsg.find("!buylist") != 0)))
{
- chatWindow->addWhisper(nick, chatMsg);
+ chatWindow->addWhisper(nick,
+ chatMsg,
+ ChatMsgType::BY_OTHER);
}
}
}