diff options
Diffstat (limited to 'src/IrcIngameChat.hpp')
| -rw-r--r-- | src/IrcIngameChat.hpp | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/IrcIngameChat.hpp b/src/IrcIngameChat.hpp new file mode 100644 index 0000000..2ced7e3 --- /dev/null +++ b/src/IrcIngameChat.hpp @@ -0,0 +1,18 @@ +#pragma once +#include "ClonkInterface.hpp" + +class CRSM; + +class IrcIngameChat : public ClonkOutputInterface { + const QString& channel; + CRSM& crsm; + +public: + IrcIngameChat(const QString& channel, CRSM& crsm); + bool clientConnected(const ClientInfo & client) override; + bool clientMessage(ClientInfo & client, const QString & message, ClonkOutputInterface::MessageType type, const QTime & time) override; + bool clientRemoved(const ClientInfo & client, const QString & reason) override; + +private: + void sendChannelMessage(const QString& message, bool action); +}; |
