From dbfa704eb21393a3ee3caaa1194bf13e6bb63bf9 Mon Sep 17 00:00:00 2001 From: Shivaram Lingamneni Date: Sun, 4 Jul 2021 08:14:38 -0400 Subject: [PATCH] fix UBAN ADD of masks (k-lines) not killing clients --- irc/uban.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/irc/uban.go b/irc/uban.go index 5e910754..424d1b7a 100644 --- a/irc/uban.go +++ b/irc/uban.go @@ -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())