summaryrefslogtreecommitdiff
path: root/src/progs
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/progs
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/progs')
-rw-r--r--src/progs/manaplus/actions/actions.cpp3
-rw-r--r--src/progs/manaplus/actions/chat.cpp7
-rw-r--r--src/progs/manaplus/actions/commands.cpp2
3 files changed, 7 insertions, 5 deletions
diff --git a/src/progs/manaplus/actions/actions.cpp b/src/progs/manaplus/actions/actions.cpp
index 1a3543aba..f74cc681a 100644
--- a/src/progs/manaplus/actions/actions.cpp
+++ b/src/progs/manaplus/actions/actions.cpp
@@ -1883,7 +1883,8 @@ impHandler(barToChat)
{
if (chatWindow != nullptr)
{
- chatWindow->addInputText(event.args);
+ chatWindow->addInputText(event.args,
+ true);
return true;
}
return false;
diff --git a/src/progs/manaplus/actions/chat.cpp b/src/progs/manaplus/actions/chat.cpp
index 2440af9af..5e74b1a36 100644
--- a/src/progs/manaplus/actions/chat.cpp
+++ b/src/progs/manaplus/actions/chat.cpp
@@ -291,8 +291,9 @@ impHandler(msgText)
}
else
{
- chatWindow->addInputText(std::string("/w \"").append(
- event.args).append("\" "));
+ chatWindow->addInputText(
+ std::string("/w \"").append(event.args).append("\" "),
+ true);
}
return true;
}
@@ -574,7 +575,7 @@ impHandler(kickGuild)
impHandler(addText)
{
if (chatWindow != nullptr)
- chatWindow->addInputText(event.args);
+ chatWindow->addInputText(event.args, true);
return true;
}
diff --git a/src/progs/manaplus/actions/commands.cpp b/src/progs/manaplus/actions/commands.cpp
index 54b8c28bd..65a2b00c7 100644
--- a/src/progs/manaplus/actions/commands.cpp
+++ b/src/progs/manaplus/actions/commands.cpp
@@ -2009,7 +2009,7 @@ impHandler0(outfitToChat)
const std::string str = outfitWindow->getOutfitString();
if (!str.empty())
- chatWindow->addInputText(str);
+ chatWindow->addInputText(str, true);
return true;
}