Skip to content
Snippets Groups Projects
Commit 6aa8dd50 authored by rswindell's avatar rswindell
Browse files

Display a user's avatar (if he has one and its enable) during logon.

Don't load asc2htmlterm.js unless the user is actually using htmlterm.
parent c357a41b
No related branches found
No related tags found
No related merge requests found
......@@ -8,7 +8,7 @@
load("sbbsdefs.js");
load("text.js");
load("asc2htmlterm.js");
var Avatar = load({}, "avatar_lib.js");
var options = load("modopts.js", "logon");
// Check if we're being asked to auto-run an external (web interface external programs section uses this)
......@@ -136,6 +136,7 @@ if(user.settings&USER_HTML) {
}
if(user.settings&USER_HTML) {
load("asc2htmlterm.js");
var buf="\2\2<html><head><title>Welcome status screen</title></head><body bgcolor=\"black\" text=\"#a8a8a8\">";
// Last few callers
......@@ -219,6 +220,9 @@ else {
console.printfile(auto_msg,P_NOATCODES);
console.crlf();
}
if(console.term_supports(USER_ANSI))
Avatar.draw(user.number, /* name: */null, /* netaddr: */null, /* above: */false, /* right: */true);
}
// Automatically set shell to WIPSHELL
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment