From 8c8bb4c0f56c2db72b463cf9d8f6ac53848f9839 Mon Sep 17 00:00:00 2001 From: rswindell <> Date: Sat, 15 Jun 2019 01:28:28 +0000 Subject: [PATCH] Use the cached avatar_lib.js. --- exec/showmsghdr.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/exec/showmsghdr.js b/exec/showmsghdr.js index e33586204a..bc1da33a95 100644 --- a/exec/showmsghdr.js +++ b/exec/showmsghdr.js @@ -73,7 +73,8 @@ show_msghdr(); // Avatar support here: if(!(bbs.msg_attr&MSG_ANONYMOUS) && console.term_supports(USER_ANSI)) { - var Avatar = load({}, 'avatar_lib.js'); - Avatar.draw(bbs.msg_from_ext, bbs.msg_from, bbs.msg_from_net, /* above: */true, /* right-justified: */true); + if(!bbs.mods.avatar_lib) + bbs.mods.avatar_lib = load({}, 'avatar_lib.js'); + bbs.mods.avatar_lib.draw(bbs.msg_from_ext, bbs.msg_from, bbs.msg_from_net, /* above: */true, /* right-justified: */true); console.attributes = 7; // Clear the background attribute as the next line might scroll, filling with BG attribute } \ No newline at end of file -- GitLab