Distinguish between no username and empty username.

This commit is contained in:
Juliusz Chroboczek committed 2023-04-03 22:58:38 +02:00
1 parent a1c1345719
commit aa53b78b2c
6 files changed
+66 -46

No files matched your search

+1 -1
View File
@@ -101,7 +101,7 @@ func (client *Client) Close() error {
return nil
}
func (client *Client) Kick(id, user, message string) error {
func (client *Client) Kick(id string, user *string, message string) error {
err := client.Close()
group.DelClient(client)
return err