replaceCommandLogin: function(textParts) {
if(this.userRole === '2' || this.userRole === '3')
return '<span class="chatBotMessage">'
+ this.lang['login'].replace(/%s/, textParts[1]) + ' '
+ this.replaceCommandWhois(textParts)
+ '</span>';
else
return '<span class="chatBotMessage">'
+ this.lang['login'].replace(/%s/, textParts[1])
+ '</span>';
},
replaceCommandLogin: function(textParts) {
if(this.userRole === '2' || this.userRole === '3')
return '<span class="chatBotMessage">'
+ this.lang['login'].replace(/%s/, textParts[1]) + ' '
+ this.lang['whois'].replace(/%s/, textParts[1]) + ' '
+ '<a title="Geolocation" target="_blank" href="http://www.ip-tracker.org/locator/ip-lookup.php?ip=' + textParts[2] + '">'
+ textParts[2]
+ '</span>';
else
return '<span class="chatBotMessage">'
+ this.lang['login'].replace(/%s/, textParts[1])
+ '</span>';
},
My question is why the textParts[2] is working with the "whois case" and not with "login case". How can we make the bot call the "whois case" by the entrance of someone inside the chat room and to be visible only by the mods and the admin. Basically, I'd prefer to have a record of guest's IP address inside the log file, no matter if a mod or an admin has login inside the chat room.