Browse Source

Fix nits

tags/v0.7.2
Daniel Oaks 7 years ago
parent
commit
166cddecb1
2 changed files with 10 additions and 0 deletions
  1. 5
    0
      irc/dline.go
  2. 5
    0
      irc/kline.go

+ 5
- 0
irc/dline.go View File

@@ -298,6 +298,11 @@ func dlineHandler(server *Server, client *Client, msg ircmsg.IrcMessage) bool {
298 298
 		return nil
299 299
 	})
300 300
 
301
+	if err != nil {
302
+		client.Notice(fmt.Sprintf("Could not successfully save new D-LINE: %s", err.Error()))
303
+		return false
304
+	}
305
+
301 306
 	if hostNet == nil {
302 307
 		server.dlines.AddIP(hostAddr, banTime, reason, operReason)
303 308
 	} else {

+ 5
- 0
irc/kline.go View File

@@ -213,6 +213,11 @@ func klineHandler(server *Server, client *Client, msg ircmsg.IrcMessage) bool {
213 213
 		return nil
214 214
 	})
215 215
 
216
+	if err != nil {
217
+		client.Notice(fmt.Sprintf("Could not successfully save new K-LINE: %s", err.Error()))
218
+		return false
219
+	}
220
+
216 221
 	server.klines.AddMask(mask, banTime, reason, operReason)
217 222
 
218 223
 	if durationIsUsed {

Loading…
Cancel
Save