diff options
Diffstat (limited to 'src/ClientInfo.hpp')
| -rw-r--r-- | src/ClientInfo.hpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/ClientInfo.hpp b/src/ClientInfo.hpp index cccff95..3371a18 100644 --- a/src/ClientInfo.hpp +++ b/src/ClientInfo.hpp @@ -116,4 +116,14 @@ public: antiFloodList.push_back(newDateTime); return antiFloodList.size() > maxCount; } + + inline bool empty() + { + return *this != ClientInfo(); + } + + inline void clear() + { + *this = ClientInfo(); + } }; |
