mirror of
https://github.com/jeremyd/ergo.git
synced 2026-07-05 08:08:10 -07:00
xline: Add ANDKILL param to kill all matching clients
This commit is contained in:
+1
-1
@@ -1358,7 +1358,7 @@ func (server *Server) rehash() error {
|
||||
|
||||
server.clients.ByNickMutex.RLock()
|
||||
for _, client := range server.clients.ByNick {
|
||||
ipaddr := net.ParseIP(IPString(client.socket.conn.RemoteAddr()))
|
||||
ipaddr := client.IP()
|
||||
if ipaddr != nil {
|
||||
server.connectionLimits.AddClient(ipaddr, true)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user