forked from External/ergo
Fix nits
This commit is contained in:
parent
22216d4d60
commit
166cddecb1
2 changed files with 10 additions and 0 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue