about summary refs log tree commit diff
path: root/html.c
diff options
context:
space:
mode:
Diffstat (limited to 'html.c')
-rw-r--r--html.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/html.c b/html.c
index c3b47fd..5104667 100644
--- a/html.c
+++ b/html.c
@@ -47,9 +47,10 @@ static char *htmlMailto(struct Address addr) {
 }
 
 static int htmlAddress(FILE *file, struct Address addr, bool comma) {
-	char *mailto = htmlMailto(addr);
+	char *mailto = NULL;
 	const char *template;
 	if (addr.host) {
+		mailto = htmlMailto(addr);
 		template = Q([,]<a href="[mailto]">[name]</a>);
 	} else if (addr.mailbox) {
 		template = "[mailbox]: ";
@@ -109,6 +110,7 @@ static char *htmlMbox(const char *messageID) {
 
 static int htmlReplyCc(FILE *file, bool first, struct AddressList list) {
 	for (size_t i = 0; i < list.len; ++i) {
+		if (!list.addrs[i].mailbox || !list.addrs[i].host) continue;
 		const char *template = "[,][mailbox]@[host]";
 		struct Variable vars[] = {
 			{ "mailbox", list.addrs[i].mailbox },
ateConsumer from handleError 1.2p1June McEnroe This should prevent continually crashing on the same ERROR in the pounce buffer. 2020-04-20Use . as ${LDLIBS.$@} separatorJune McEnroe 2020-04-05Error on invalid ISUPPORT values 1.2June McEnroe 2020-04-05Only set RCS on FreeBSDJune McEnroe 2020-04-05Log bans and unbansJune McEnroe 2020-04-05Parse mode types from ISUPPORTJune McEnroe 2020-04-05Add unscoop matchers for ban/unban eventsJune McEnroe The IRC and Textual matchers miss bans mixed with other mode changes, but those are rare. 2020-04-05Check unscoop regexps with make testJune McEnroe 2020-04-05Add unscoop -n flag for checking regexpsJune McEnroe 2020-04-05Add Ban and Unban event typesJune McEnroe 2020-04-02Update styleJune McEnroe Replacing declarations followed by while loops with for loops and generating the short option string from the long options. 2020-03-31Update unscoop catgirl matchersJune McEnroe I'm not concerned about keeping the old matchers since I'm almost entirely certain I was the only one who ever used the old version of catgirl, and I already imported those logs. 2020-03-31Fix writing verbose to stderrJune McEnroe 2020-03-02Include <>/-/* around nicks in scoop coloring 1.1June McEnroe 2020-03-02Replace .mk files with configure scriptJune McEnroe 2020-02-28Implement the causal.agency/consumer capabilityJune McEnroe 2020-02-22Include <>/-/* around nicks in coloringJune McEnroe 2020-02-22Use (almost) the full range of IRC colors for nicksJune McEnroe