summaryrefslogtreecommitdiff
path: root/src/net/tmwa/chathandler.h
diff options
context:
space:
mode:
authorThorbjørn Lindeijer <bjorn@lindeijer.nl>2024-01-26 16:07:54 +0100
committerThorbjørn Lindeijer <bjorn@lindeijer.nl>2024-01-26 16:07:54 +0100
commit5afe88df2538274859a162ffd63ed52118e80c19 (patch)
treeb610dfd58dc748fd63f49565b2a43eea2316714f /src/net/tmwa/chathandler.h
parent73ba2a95f5bd4a0dd09af52d5864800be2b0a4c6 (diff)
downloadmana-5afe88df2538274859a162ffd63ed52118e80c19.tar.gz
mana-5afe88df2538274859a162ffd63ed52118e80c19.tar.bz2
mana-5afe88df2538274859a162ffd63ed52118e80c19.tar.xz
mana-5afe88df2538274859a162ffd63ed52118e80c19.zip
Apply C++11 fixits
modernize-use-auto modernize-use-nullptr modernize-use-override modernize-use-using
Diffstat (limited to 'src/net/tmwa/chathandler.h')
-rw-r--r--src/net/tmwa/chathandler.h28
1 files changed, 14 insertions, 14 deletions
diff --git a/src/net/tmwa/chathandler.h b/src/net/tmwa/chathandler.h
index fa3a8ec3..682a3743 100644
--- a/src/net/tmwa/chathandler.h
+++ b/src/net/tmwa/chathandler.h
@@ -36,36 +36,36 @@ class ChatHandler : public MessageHandler, public Net::ChatHandler
public:
ChatHandler();
- void handleMessage(MessageIn &msg);
+ void handleMessage(MessageIn &msg) override;
- void talk(const std::string &text);
+ void talk(const std::string &text) override;
- void me(const std::string &text);
+ void me(const std::string &text) override;
void privateMessage(const std::string &recipient,
- const std::string &text);
+ const std::string &text) override;
- void channelList();
+ void channelList() override;
void enterChannel(const std::string &channel,
- const std::string &password);
+ const std::string &password) override;
- void quitChannel(int channelId);
+ void quitChannel(int channelId) override;
- void sendToChannel(int channelId, const std::string &text);
+ void sendToChannel(int channelId, const std::string &text) override;
- void userList(const std::string &channel);
+ void userList(const std::string &channel) override;
- void setChannelTopic(int channelId, const std::string &text);
+ void setChannelTopic(int channelId, const std::string &text) override;
- void setUserMode(int channelId, const std::string &name, int mode);
+ void setUserMode(int channelId, const std::string &name, int mode) override;
- void kickUser(int channelId, const std::string &name);
+ void kickUser(int channelId, const std::string &name) override;
- void who();
+ void who() override;
private:
- typedef std::queue<std::string> WhisperQueue;
+ using WhisperQueue = std::queue<std::string>;
WhisperQueue mSentWhispers;
};