1
0
Fork 0
forked from External/ergo
This commit is contained in:
Daniel Oaks 2017-04-16 11:35:44 +10:00
parent 22216d4d60
commit 166cddecb1
2 changed files with 10 additions and 0 deletions

View file

@ -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 {