summaryrefslogtreecommitdiff
path: root/src/net/eathena/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/eathena/chathandler.cpp
parent3e8fecc9a62afff0054fa0fa23af86c8ef15a1c9 (diff)
downloadmanaverse-a9f6959a96395edc64ff57bf5ba1d75cca8e86c3.tar.gz
manaverse-a9f6959a96395edc64ff57bf5ba1d75cca8e86c3.tar.bz2
manaverse-a9f6959a96395edc64ff57bf5ba1d75cca8e86c3.tar.xz
manaverse-a9f6959a96395edc64ff57bf5ba1d75cca8e86c3.zip
Add missing const in net directory.
Diffstat (limited to 'src/net/eathena/chathandler.cpp')
-rw-r--r--src/net/eathena/chathandler.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/net/eathena/chathandler.cpp b/src/net/eathena/chathandler.cpp
index 6efbb7864..9653384c3 100644
--- a/src/net/eathena/chathandler.cpp
+++ b/src/net/eathena/chathandler.cpp
@@ -72,7 +72,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 + 1), "len");
@@ -83,7 +83,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
{
privateMessage(channel, text);
}
@@ -198,7 +198,7 @@ void ChatHandler::requestIgnoreList() const
void ChatHandler::createChatRoom(const std::string &title,
const std::string &password,
const int limit,
- const bool isPublic)
+ const bool isPublic) const
{
createOutPacket(CMSG_CREAYE_CHAT_ROOM);
outMsg.writeInt16(CAST_S16(
@@ -248,7 +248,7 @@ void ChatHandler::joinChannel(const std::string &channel)
}
}
-void ChatHandler::partChannel(const std::string &channel)
+void ChatHandler::partChannel(const std::string &channel) const
{
if (serverFeatures->haveJoinChannel())
{