diff options
Diffstat (limited to 'include/libsock/server')
| -rw-r--r-- | include/libsock/server/client.hpp | 2 |
1 files changed, 1 insertions, 1 deletions
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<Client> newClient(std::optional<std::function<std::any(WP<Client>)>> cb = std::nullopt); void broadcast(const std::string &msg, std::optional<WP<Client>> self = std::nullopt); // second param only specified when we want to exclude the sender - void kick(WP<Client> client, const bool kill = false, const std::string &reason = ""); + void kick(WP<Client> client, const bool kill = false, const std::string &reason = "", std::optional<std::function<std::any(const std::vector<std::pair<std::jthread, SP<Client>>>::iterator &)>> cb = std::nullopt); void addClient(const Client &client); bool nameExists(const std::string &name); |
