summaryrefslogtreecommitdiffstats
path: root/src/IrcIngameChat.hpp
blob: 2ced7e3ff6fa6c1d3ebbb8fdfdcdcdc352ba2d42 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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);
};