3
0
mirror of https://github.com/ergochat/ergo.git synced 2024-11-10 22:19:31 +01:00
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 {

View File

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