From f5aacb29f5f238ae9121bf43d96ad2eba361e7b7 Mon Sep 17 00:00:00 2001 From: littleblack111 Date: Wed, 18 Jun 2025 11:21:15 +0800 Subject: API(server/clients): callback fucntion for kick function --- include/libsock/server/client.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/libsock/server/client.hpp') diff --git a/include/libsock/server/client.hpp b/include/libsock/server/client.hpp index 3b0d38d..59870ce 100644 --- a/include/libsock/server/client.hpp +++ b/include/libsock/server/client.hpp @@ -85,7 +85,7 @@ class Clients { WP newClient(std::optional)>> cb = std::nullopt); void broadcast(const std::string &msg, std::optional> self = std::nullopt); // second param only specified when we want to exclude the sender - void kick(WP client, const bool kill = false, const std::string &reason = ""); + void kick(WP client, const bool kill = false, const std::string &reason = "", std::optional>>::iterator &)>> cb = std::nullopt); void addClient(const Client &client); bool nameExists(const std::string &name); -- cgit v1.2.3