summaryrefslogtreecommitdiff
path: root/src/net/chathandler.h
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/chathandler.h
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/chathandler.h')
-rw-r--r--src/net/chathandler.h12
1 files changed, 7 insertions, 5 deletions
diff --git a/src/net/chathandler.h b/src/net/chathandler.h
index bbbaaf638..c619b353a 100644
--- a/src/net/chathandler.h
+++ b/src/net/chathandler.h
@@ -50,14 +50,16 @@ class ChatHandler notfinal
const std::string &restrict channel) const = 0;
virtual void privateMessage(const std::string &restrict recipient,
- const std::string &restrict text) = 0;
+ const std::string &restrict text)
+ const = 0;
virtual void channelMessage(const std::string &restrict channel,
- const std::string &restrict text) = 0;
+ const std::string &restrict text)
+ const = 0;
virtual void joinChannel(const std::string &channel) = 0;
- virtual void partChannel(const std::string &channel) = 0;
+ virtual void partChannel(const std::string &channel) const = 0;
virtual void who() const = 0;
@@ -73,12 +75,12 @@ class ChatHandler notfinal
virtual void requestIgnoreList() const = 0;
- virtual void clear() = 0;
+ virtual void clear() const = 0;
virtual void createChatRoom(const std::string &title,
const std::string &password,
const int limit,
- const bool isPublic) = 0;
+ const bool isPublic) const = 0;
virtual void leaveChatRoom() const = 0;