mirror of
https://github.com/ergochat/ergo.git
synced 2024-11-14 07:59: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
|
return nil
|
||||||
})
|
})
|
||||||
|
|
||||||
|
if err != nil {
|
||||||
|
client.Notice(fmt.Sprintf("Could not successfully save new D-LINE: %s", err.Error()))
|
||||||
|
return false
|
||||||
|
}
|
||||||
|
|
||||||
if hostNet == nil {
|
if hostNet == nil {
|
||||||
server.dlines.AddIP(hostAddr, banTime, reason, operReason)
|
server.dlines.AddIP(hostAddr, banTime, reason, operReason)
|
||||||
} else {
|
} else {
|
||||||
|
@ -213,6 +213,11 @@ func klineHandler(server *Server, client *Client, msg ircmsg.IrcMessage) bool {
|
|||||||
return nil
|
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)
|
server.klines.AddMask(mask, banTime, reason, operReason)
|
||||||
|
|
||||||
if durationIsUsed {
|
if durationIsUsed {
|
||||||
|
Loading…
Reference in New Issue
Block a user