original_string: public function oldAuthResultHandler($xml) {
  			if($xml->attrs['type'] != 'result') {
  				$this->log->log("Auth failed!",  XMPPHP_Log::LEVEL_ERROR);
  				$this->disconnect();
  				throw new XMPPHP_Exception('Auth failed!');
  			} else {
  				$this->log->log("Session started");
  				$this->event('session_start');
  			}
  		}
code: public function oldAuthResultHandler($xml) {
  			if($xml->attrs['type'] != 'result') {
  				$this->log->log("Auth failed!",  XMPPHP_Log::LEVEL_ERROR);
  				$this->disconnect();
  				throw new XMPPHP_Exception('Auth failed!');
  			} else {
  				$this->log->log("Session started");
  				$this->event('session_start');
  			}
  		}
code_tokens: public function oldAuthResultHandler ( $ xml ) { if ( $ xml -> attrs [ 'type' ] != 'result' ) { $ this -> log -> log ( "Auth failed!" , XMPPHP_Log :: LEVEL_ERROR ) ; $ this -> disconnect ( ) ; throw new XMPPHP_Exception ( 'Auth failed!' ) ; } else { $ this -> log -> log ( "Session started" ) ; $ this -> event ( 'session_start' ) ; } }
docstring: Determine authenticated or failure
  
  @param XMLObj $xml
docstring_tokens: Determine authenticated or failure