diff options
author | rubenwardy <rw@rubenwardy.com> | 2017-07-02 20:25:22 +0100 |
---|---|---|
committer | paramat <mat.gregory@virginmedia.com> | 2017-07-15 01:35:18 +0100 |
commit | bdac12761cd92960c3df83c932aa610f2322215f (patch) | |
tree | 7ad88805fa39af7d5622965e9152072d03f3cb8a /src/client.h | |
parent | a5c37717ffea387f8aa694f22ccc2f2f449826ac (diff) | |
download | minetest-bdac12761cd92960c3df83c932aa610f2322215f.tar.gz minetest-bdac12761cd92960c3df83c932aa610f2322215f.tar.bz2 minetest-bdac12761cd92960c3df83c932aa610f2322215f.zip |
CSM: Revert "[CSM] Add send_chat_message and run_server_chatcommand"
Original PR: #5747.
This reverts commit 39f4a2f607d44738d60db84eba4b30e3d7450204.
Diffstat (limited to 'src/client.h')
-rw-r--r-- | src/client.h | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/src/client.h b/src/client.h index 0255b2803..29cbe9c10 100644 --- a/src/client.h +++ b/src/client.h @@ -40,8 +40,6 @@ with this program; if not, write to the Free Software Foundation, Inc., #include <fstream> #include "filesys.h" -#define CLIENT_CHAT_MESSAGE_LIMIT_PER_10S 10.0f - struct MeshMakeData; class MapBlockMesh; class IWritableTextureSource; @@ -375,7 +373,6 @@ public: const StringMap &fields); void sendInventoryAction(InventoryAction *a); void sendChatMessage(const std::wstring &message); - void clearOutChatQueue(); void sendChangePassword(const std::string &oldpassword, const std::string &newpassword); void sendDamage(u8 damage); @@ -582,8 +579,6 @@ private: inline std::string getPlayerName() { return m_env.getLocalPlayer()->getName(); } - bool canSendChatMessage() const; - float m_packetcounter_timer = 0.0f; float m_connection_reinit_timer = 0.1f; float m_avg_rtt_timer = 0.0f; @@ -630,9 +625,6 @@ private: //s32 m_daynight_i; //u32 m_daynight_ratio; std::queue<std::wstring> m_chat_queue; - std::queue<std::wstring> m_out_chat_queue; - u32 m_last_chat_message_sent; - float m_chat_message_allowance = 5.0f; // The authentication methods we can use to enter sudo mode (=change password) u32 m_sudo_auth_methods; |