summaryrefslogtreecommitdiff
path: root/src/gui/chat.cpp
diff options
context:
space:
mode:
authorBjørn Lindeijer <bjorn@lindeijer.nl>2009-05-24 21:31:00 +0200
committerBjørn Lindeijer <bjorn@lindeijer.nl>2009-05-24 21:37:38 +0200
commitcc28b48adcc8ef3b584312e598035c34384dcf78 (patch)
tree37987edf34e2c916def7ee2abc634f5ad0aec7da /src/gui/chat.cpp
parentc354af888779c9038cedf64c1502574eb8b29399 (diff)
downloadmana-cc28b48adcc8ef3b584312e598035c34384dcf78.tar.gz
mana-cc28b48adcc8ef3b584312e598035c34384dcf78.tar.bz2
mana-cc28b48adcc8ef3b584312e598035c34384dcf78.tar.xz
mana-cc28b48adcc8ef3b584312e598035c34384dcf78.zip
Made some parameters const references like they should be
Diffstat (limited to 'src/gui/chat.cpp')
-rw-r--r--src/gui/chat.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/gui/chat.cpp b/src/gui/chat.cpp
index 73af83ff..1ce1b77c 100644
--- a/src/gui/chat.cpp
+++ b/src/gui/chat.cpp
@@ -297,7 +297,7 @@ void ChatWindow::removeWhisper(const std::string &nick)
mWhispers.erase(tempNick);
}
-void ChatWindow::chatInput(std::string &msg)
+void ChatWindow::chatInput(const std::string &msg)
{
ChatTab *tab = getFocused();
tab->chatInput(msg);
@@ -432,7 +432,8 @@ void ChatWindow::setRecordingFile(const std::string &msg)
mRecorder->setRecordingFile(msg);
}
-void ChatWindow::whisper(const std::string &nick, std::string mes, bool own)
+void ChatWindow::whisper(const std::string &nick,
+ const std::string &mes, bool own)
{
if (mes.empty())
return;
@@ -471,7 +472,9 @@ void ChatWindow::whisper(const std::string &nick, std::string mes, bool own)
nick.c_str(), mes.c_str()), BY_PLAYER);
}
else
+ {
localChatTab->chatLog(nick + " : " + mes, ACT_WHISPER, false);
+ }
}
}