//Checks if the user is chatbot if (userName == 'ChatBot'){ //Places the chatbot avatar in the variable var AvatarPic = ' '; } //Checks if the user is a guest else if(userRole == 0){ var AvatarPic = ' '; } else{ //Places the UNIQUE user avatar in the variable //outcome of this will be: //UniqueUserName var AvatarPic = ''
				+ userName
				+ ' '; } //Here is where everything is written to chat return '
' + this.getDeletionLink(messageID, userID, userRole, channelID) + dateTime //This is where the Avatar Line is inserted (just before the AjaxChat username + AvatarPic + '' + userName + '' + colon + this.replaceText(messageText) + '
';