mirror of
https://github.com/ergochat/ergo.git
synced 2025-12-20 02:00:11 -08:00
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
|
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…
Add table
Add a link
Reference in a new issue