forked from External/ergo
fix UBAN ADD of masks (k-lines) not killing clients
This commit is contained in:
parent
c53df2dc88
commit
dbfa704eb2
1 changed files with 2 additions and 1 deletions
|
|
@ -255,9 +255,10 @@ func ubanAddNickmask(client *Client, target ubanTarget, duration time.Duration,
|
|||
var killed []string
|
||||
var alwaysOn []string
|
||||
for _, mcl := range client.server.clients.AllClients() {
|
||||
if mcl != client && target.matcher.MatchString(client.NickMaskCasefolded()) {
|
||||
if mcl != client && target.matcher.MatchString(mcl.NickMaskCasefolded()) {
|
||||
if !mcl.AlwaysOn() {
|
||||
killed = append(killed, mcl.Nick())
|
||||
mcl.Quit("You have been banned from this server", nil)
|
||||
mcl.destroy(nil)
|
||||
} else {
|
||||
alwaysOn = append(alwaysOn, mcl.Nick())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue