Browse Source

nickserv: Fix help display

tags/v0.11.0-beta
Daniel Oaks 6 years ago
parent
commit
29266ce80f
2 changed files with 7 additions and 0 deletions
  1. 5
    0
      irc/client.go
  2. 2
    0
      irc/nickserv.go

+ 5
- 0
irc/client.go View File

815
 	}
815
 	}
816
 	lines := wordWrap(text, limit)
816
 	lines := wordWrap(text, limit)
817
 
817
 
818
+	// force blank lines to be sent if we receive them
819
+	if len(lines) == 0 {
820
+		lines = []string{""}
821
+	}
822
+
818
 	for _, line := range lines {
823
 	for _, line := range lines {
819
 		client.Send(nil, client.server.name, "NOTICE", client.nick, line)
824
 		client.Send(nil, client.server.name, "NOTICE", client.nick, line)
820
 	}
825
 	}

+ 2
- 0
irc/nickserv.go View File

305
 		}
305
 		}
306
 
306
 
307
 		client.Notice(client.t("Could not login with your TLS certificate or supplied username/password"))
307
 		client.Notice(client.t("Could not login with your TLS certificate or supplied username/password"))
308
+	} else {
309
+		client.Notice(client.t("Command not recognised. To see the available commands, run /NS HELP"))
308
 	}
310
 	}
309
 }
311
 }

Loading…
Cancel
Save