summaryrefslogtreecommitdiff
path: root/src/net
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-10-13 20:33:39 +0300
committerAndrei Karas <akaras@inbox.ru>2014-10-13 20:33:39 +0300
commit071ec67ad18431d197332a4a7e13368e60a834e2 (patch)
tree20b0a7950b6b18e79c0344333833f8393547a5d3 /src/net
parent041a5a85ba09650a85f3ac7a3e88e183c6b88c28 (diff)
downloadmanaplus-071ec67ad18431d197332a4a7e13368e60a834e2.tar.gz
manaplus-071ec67ad18431d197332a4a7e13368e60a834e2.tar.bz2
manaplus-071ec67ad18431d197332a4a7e13368e60a834e2.tar.xz
manaplus-071ec67ad18431d197332a4a7e13368e60a834e2.zip
Fix compilation warnings.
Diffstat (limited to 'src/net')
-rw-r--r--src/net/eathena/chathandler.cpp5
-rw-r--r--src/net/eathena/chathandler.h3
2 files changed, 3 insertions, 5 deletions
diff --git a/src/net/eathena/chathandler.cpp b/src/net/eathena/chathandler.cpp
index 0a5029b6e..d16692cf5 100644
--- a/src/net/eathena/chathandler.cpp
+++ b/src/net/eathena/chathandler.cpp
@@ -406,8 +406,7 @@ void ChatHandler::processColorChat(Net::MessageIn &msg)
processChatContinue(message, ChatMsgType::BY_UNKNOWN);
}
-std::string ChatHandler::extractChannelFromMessage(std::string &chatMsg,
- ChatMsgType::Type &own)
+std::string ChatHandler::extractChannelFromMessage(std::string &chatMsg)
{
std::string msg = chatMsg;
std::string channel(GENERAL_CHANNEL);
@@ -425,7 +424,7 @@ std::string ChatHandler::extractChannelFromMessage(std::string &chatMsg,
void ChatHandler::processChatContinue(std::string chatMsg, ChatMsgType::Type own)
{
- const std::string channel = extractChannelFromMessage(chatMsg, own);
+ const std::string channel = extractChannelFromMessage(chatMsg);
bool allow(true);
if (chatWindow)
{
diff --git a/src/net/eathena/chathandler.h b/src/net/eathena/chathandler.h
index 93cb77935..6bcf315bd 100644
--- a/src/net/eathena/chathandler.h
+++ b/src/net/eathena/chathandler.h
@@ -83,8 +83,7 @@ class ChatHandler final : public MessageHandler, public Ea::ChatHandler
const std::string &password) const override final;
protected:
- static std::string extractChannelFromMessage(std::string &chatMsg,
- ChatMsgType::Type &own);
+ static std::string extractChannelFromMessage(std::string &chatMsg);
void processChat(Net::MessageIn &msg);