diff options
Diffstat (limited to 'html.c')
-rw-r--r-- | html.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/html.c b/html.c index 21dca9f..f300813 100644 --- a/html.c +++ b/html.c @@ -28,6 +28,7 @@ #include "server.h" +bool htmlHideHost; const char *htmlStylesheet = "stylesheet.css"; static enum kcgi_err htmlCSS(struct khtmlreq *html, struct kreq *req) { @@ -372,7 +373,10 @@ eventNick(struct khtmlreq *html, const struct Event *event) { class, sizeof(class), "fg%02d", hash(strcmp(event->user, "*") ? event->user : event->nick) ); - asprintf(&mask, "%s!%s@%s", event->nick, event->user, event->host); + asprintf( + &mask, "%s!%s@%s", + event->nick, event->user, (htmlHideHost ? "*" : event->host) + ); if (!mask) err(EX_OSERR, "asprintf"); const char *format = "%s"; switch (event->type) { |