mirror of
https://github.com/ergochat/ergo.git
synced 2024-11-10 22:19:31 +01:00
Fix nits
This commit is contained in:
parent
22216d4d60
commit
166cddecb1
@ -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…
Reference in New Issue
Block a user