servatrice/common/server_remoteuserinterface.h
ebbit1q 0280fea3e6
apply chat flood prevention in games next to rooms (#4387)
* apply chat flood prevention in games next to rooms

* add limit to private messages as well
2021-06-28 01:57:46 -04:00

29 lines
744 B
C++

#ifndef SERVER_REMOTEUSERINTERFACE_H
#define SERVER_REMOTEUSERINTERFACE_H
#include "server_abstractuserinterface.h"
class Server_RemoteUserInterface : public Server_AbstractUserInterface
{
public:
Server_RemoteUserInterface(Server *_server, const ServerInfo_User_Container &_userInfoContainer)
: Server_AbstractUserInterface(_server, _userInfoContainer)
{
}
int getLastCommandTime() const
{
return 0;
}
bool addSaidMessageSize(int /*size*/)
{
return true;
}
void sendProtocolItem(const Response &item);
void sendProtocolItem(const SessionEvent &item);
void sendProtocolItem(const GameEventContainer &item);
void sendProtocolItem(const RoomEvent &item);
};
#endif