site/public/semantic/javascript/semantic.js
function(member) {
            users = $module.data('users');
            if(member.id != 'anonymous' && users[ member.id ] === undefined ) {
              users[ member.id ] = member.info;
              if(settings.randomColor && member.info.color === undefined) {
                member.info.color = settings.templates.color(member.id);
              }
              html = settings.templates.userList(member.info);
              if(member.info.isAdmin) {
                $(html)
                  .prependTo($userList)
                ;
              }
              else {
                $(html)
                  .appendTo($userList)
                ;
              }
              if(settings.partingMessages) {
                $log
                  .append( settings.templates.joined(member.info) )
                ;
                module.message.scroll.test();
              }
              module.user.updateCount();
            }
          }
function(member) {
            users = $module.data('users');
            if(member.id != 'anonymous' && users[ member.id ] === undefined ) {
              users[ member.id ] = member.info;
              if(settings.randomColor && member.info.color === undefined) {
                member.info.color = settings.templates.color(member.id);
              }
              html = settings.templates.userList(member.info);
              if(member.info.isAdmin) {
                $(html)
                  .prependTo($userList)
                ;
              }
              else {
                $(html)
                  .appendTo($userList)
                ;
              }
              if(settings.partingMessages) {
                $log
                  .append( settings.templates.joined(member.info) )
                ;
                module.message.scroll.test();
              }
              module.user.updateCount();
            }
          }
function ( member ) { users = $module . data ( 'users' ) ; if ( member . id != 'anonymous' && users [ member . id ] === undefined ) { users [ member . id ] = member . info ; if ( settings . randomColor && member . info . color === undefined ) { member . info . color = settings . templates . color ( member . id ) ; } html = settings . templates . userList ( member . info ) ; if ( member . info . isAdmin ) { $ ( html ) . prependTo ( $userList ) ; } else { $ ( html ) . appendTo ( $userList ) ; } if ( settings . partingMessages ) { $log . append ( settings . templates . joined ( member . info ) ) ; module . message . scroll . test ( ) ; } module . user . updateCount ( ) ; } }
add user to user list
add user to user list