mirror of
https://github.com/m1k1o/neko.git
synced 2025-06-05 20:32:50 +02:00
add fields to stats.
This commit is contained in:
parent
6d7486ab57
commit
f59128cf72
5 changed files with 70 additions and 18 deletions
|
@ -292,8 +292,7 @@ func (h *MessageHandler) adminBan(id string, session types.Session, payload *mes
|
|||
}
|
||||
|
||||
h.logger.Debug().Str("address", remote).Msg("adding address to banned")
|
||||
|
||||
h.banned[address[0]] = true
|
||||
h.banned[address[0]] = id
|
||||
|
||||
if err := target.Kick("banned"); err != nil {
|
||||
return err
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue