diff --git a/irc/dline.go b/irc/dline.go index fb572bfb..1b37156a 100644 --- a/irc/dline.go +++ b/irc/dline.go @@ -298,6 +298,11 @@ func dlineHandler(server *Server, client *Client, msg ircmsg.IrcMessage) bool { return nil }) + if err != nil { + client.Notice(fmt.Sprintf("Could not successfully save new D-LINE: %s", err.Error())) + return false + } + if hostNet == nil { server.dlines.AddIP(hostAddr, banTime, reason, operReason) } else { diff --git a/irc/kline.go b/irc/kline.go index 630b6308..455c89ae 100644 --- a/irc/kline.go +++ b/irc/kline.go @@ -213,6 +213,11 @@ func klineHandler(server *Server, client *Client, msg ircmsg.IrcMessage) bool { return nil }) + if err != nil { + client.Notice(fmt.Sprintf("Could not successfully save new K-LINE: %s", err.Error())) + return false + } + server.klines.AddMask(mask, banTime, reason, operReason) if durationIsUsed {