diff --git a/exec/showmsghdr.js b/exec/showmsghdr.js index e33586204a1ee02a47e4f5704ac423833c4e7f19..bc1da33a956cb8037ec073145af918aa07e95d1c 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