Explorar el Código

Added the @user@host id in the HTML title.

default hace 3 años
padre
commit
764178fb34
Se han modificado 1 ficheros con 5 adiciones y 1 borrados
  1. 5 1
      html.c

+ 5 - 1
html.c

@@ -155,7 +155,11 @@ d_char *html_user_header(snac *snac, d_char *s, int local)
     }
     }
 
 
     {
     {
-        xs *s1 = xs_fmt("<title>%s</title>\n", xs_dict_get(snac->config, "name"));
+        xs *s1 = xs_fmt("<title>%s (@%s@%s)</title>\n",
+            xs_dict_get(snac->config, "name"),
+            snac->uid,
+            xs_dict_get(srv_config,   "host"));
+
         s = xs_str_cat(s, s1);
         s = xs_str_cat(s, s1);
     }
     }