Updates to drawing, additional props, friendly IP addrs, etc.

This commit is contained in:
Bryan Ashby
2022-06-10 16:08:22 -06:00
parent 1ba866f2ca
commit ba5775adc9
8 changed files with 59 additions and 9 deletions

View File

@@ -121,7 +121,7 @@ const PREDEFINED_MCI_GENERATORS = {
UD : function themeId(client) { return userStatAsString(client, UserProps.ThemeId, ''); },
UC : function loginCount(client) { return userStatAsCountString(client, UserProps.LoginCount, 0); },
ND : function connectedNode(client) { return client.node.toString(); },
IP : function clientIpAddress(client) { return client.remoteAddress.friendlyRemoteAddress() },
IP : function clientIpAddress(client) { return client.friendlyRemoteAddress() },
ST : function serverName(client) { return client.session.serverName; },
FN : function activeFileBaseFilterName(client) {
const activeFilter = FileBaseFilters.getActiveFilter(client);
@@ -370,7 +370,7 @@ function getPredefinedMCIValue(client, code, extra) {
try {
value = generator(client, extra);
} catch(e) {
Log.error( { code : code, exception : e.message }, 'Exception caught generating predefined MCI value' );
Log.error( { code : code, exception : e.message }, `Failed generating predefined MCI value (${code})` );
}
return value;