From bbd9118633963232ad1f357cba4b99394d2f4f82 Mon Sep 17 00:00:00 2001 From: Markus Mittendrein Date: Mon, 20 Apr 2015 17:36:17 +0200 Subject: Added command !removeplr. Added basic anti spam for same scenarios and the same user. --- ClientInfo.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ClientInfo.hpp') diff --git a/ClientInfo.hpp b/ClientInfo.hpp index 9c39c44..e2c7864 100644 --- a/ClientInfo.hpp +++ b/ClientInfo.hpp @@ -74,12 +74,12 @@ public: return ret; } - inline bool operator==(const ClientInfo& other) + inline bool operator==(const ClientInfo& other) const { return other.interface == interface && other.nick == nick && (interface == Clonk ? other.pcName == pcName && other.CUID == CUID : true); } - inline bool operator!=(const ClientInfo& other) + inline bool operator!=(const ClientInfo& other) const { return !operator==(other); } -- cgit v1.2.3-54-g00ecf