summaryrefslogtreecommitdiff
path: root/src/net/tmwa/chathandler.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-02-20 21:19:59 +0300
committerAndrei Karas <akaras@inbox.ru>2016-02-20 21:19:59 +0300
commita9f6959a96395edc64ff57bf5ba1d75cca8e86c3 (patch)
treef6975bea7e87380ee7d063ccfb2efbc835341c91 /src/net/tmwa/chathandler.cpp
parent3e8fecc9a62afff0054fa0fa23af86c8ef15a1c9 (diff)
downloadmv-a9f6959a96395edc64ff57bf5ba1d75cca8e86c3.tar.gz
mv-a9f6959a96395edc64ff57bf5ba1d75cca8e86c3.tar.bz2
mv-a9f6959a96395edc64ff57bf5ba1d75cca8e86c3.tar.xz
mv-a9f6959a96395edc64ff57bf5ba1d75cca8e86c3.zip
Add missing const in net directory.
Diffstat (limited to 'src/net/tmwa/chathandler.cpp')
-rw-r--r--src/net/tmwa/chathandler.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/net/tmwa/chathandler.cpp b/src/net/tmwa/chathandler.cpp
index 7d22102fc..998a3eba1 100644
--- a/src/net/tmwa/chathandler.cpp
+++ b/src/net/tmwa/chathandler.cpp
@@ -71,7 +71,7 @@ void ChatHandler::talkRaw(const std::string &mes) const
}
void ChatHandler::privateMessage(const std::string &restrict recipient,
- const std::string &restrict text)
+ const std::string &restrict text) const
{
createOutPacket(CMSG_CHAT_WHISPER);
outMsg.writeInt16(CAST_S16(text.length() + 28), "len");
@@ -81,7 +81,7 @@ void ChatHandler::privateMessage(const std::string &restrict recipient,
}
void ChatHandler::channelMessage(const std::string &restrict channel,
- const std::string &restrict text)
+ const std::string &restrict text) const
{
if (channel == TRADE_CHANNEL)
talk("\302\202" + text, GENERAL_CHANNEL);
@@ -200,7 +200,7 @@ void ChatHandler::requestIgnoreList() const
void ChatHandler::createChatRoom(const std::string &title A_UNUSED,
const std::string &password A_UNUSED,
const int limit A_UNUSED,
- const bool isPublic A_UNUSED)
+ const bool isPublic A_UNUSED) const
{
}
@@ -217,7 +217,7 @@ void ChatHandler::joinChannel(const std::string &channel A_UNUSED)
{
}
-void ChatHandler::partChannel(const std::string &channel A_UNUSED)
+void ChatHandler::partChannel(const std::string &channel A_UNUSED) const
{
}