summaryrefslogtreecommitdiff
path: root/html.c
diff options
context:
space:
mode:
Diffstat (limited to 'html.c')
-rw-r--r--html.c14
1 files changed, 11 insertions, 3 deletions
diff --git a/html.c b/html.c
index 6eadbf7..386354d 100644
--- a/html.c
+++ b/html.c
@@ -327,9 +327,17 @@ d_char *html_top_controls(snac *snac, d_char *s)
327 "</div>\n" 327 "</div>\n"
328 "</div>\n"; 328 "</div>\n";
329 329
330 char *email = xs_dict_get(snac->config, "email"); 330 const char *email = "[disabled by admin]";
331 if (xs_is_null(email)) 331
332 email = ""; 332 if (xs_type(xs_dict_get(srv_config, "disable_email_notifications")) != XSTYPE_TRUE) {
333 email = xs_dict_get(snac->config_o, "email");
334 if (xs_is_null(email)) {
335 email = xs_dict_get(snac->config, "email");
336
337 if (xs_is_null(email))
338 email = "";
339 }
340 }
333 341
334 char *cw = xs_dict_get(snac->config, "cw"); 342 char *cw = xs_dict_get(snac->config, "cw");
335 if (xs_is_null(cw)) 343 if (xs_is_null(cw))