Removed hard tabs
This commit is contained in:
		@@ -483,9 +483,9 @@ class MSN {
 | 
			
		||||
    * @return void
 | 
			
		||||
    */
 | 
			
		||||
    private function signonFailure($message) {
 | 
			
		||||
    	if(!empty($message)) {
 | 
			
		||||
        if(!empty($message)) {
 | 
			
		||||
            $this->debug_message($message);
 | 
			
		||||
    	}
 | 
			
		||||
        }
 | 
			
		||||
        $this->callHandler('ConnectFailed');
 | 
			
		||||
        $this->NSRetryWait($this->retry_wait);
 | 
			
		||||
    }
 | 
			
		||||
@@ -1486,7 +1486,7 @@ class MSN {
 | 
			
		||||
 | 
			
		||||
        if ($this->sb_writeln($socket, $id, "MSG $id N $len") === false ||
 | 
			
		||||
            $this->sb_writedata($socket, $aMessage) === false) {
 | 
			
		||||
            	return false;
 | 
			
		||||
                return false;
 | 
			
		||||
            }
 | 
			
		||||
 | 
			
		||||
        // Don't close the SB session, we might as well leave it open
 | 
			
		||||
@@ -1522,23 +1522,23 @@ class MSN {
 | 
			
		||||
     */
 | 
			
		||||
    public function sendMessage($to, $message) {
 | 
			
		||||
        if ($message != '') {
 | 
			
		||||
        	$toParts = explode('@', $to);
 | 
			
		||||
        	if(count($toParts) < 3) {
 | 
			
		||||
        		list($name, $host) = $toParts;
 | 
			
		||||
        		$network = 1;
 | 
			
		||||
        	} else {
 | 
			
		||||
        		list($name, $host, $network) = $toParts;
 | 
			
		||||
        	}
 | 
			
		||||
            $toParts = explode('@', $to);
 | 
			
		||||
            if(count($toParts) < 3) {
 | 
			
		||||
                list($name, $host) = $toParts;
 | 
			
		||||
                $network = 1;
 | 
			
		||||
            } else {
 | 
			
		||||
                list($name, $host, $network) = $toParts;
 | 
			
		||||
            }
 | 
			
		||||
 | 
			
		||||
            $recipient = $name.'@'.$host;
 | 
			
		||||
 | 
			
		||||
            if ($network === 1) {
 | 
			
		||||
                if (!isset($this->switchBoardSessionLookup[$recipient])) {
 | 
			
		||||
                   	if (!isset($this->switchBoardSessions[$recipient]) || time() - $this->switchBoardSessions[$recipient]['XFRReqTime'] > $this->XFRReqTimeout) {
 | 
			
		||||
                   		$this->debug_message("*** No existing SB session or request has timed out");
 | 
			
		||||
	                    $this->reqSBSession($recipient);
 | 
			
		||||
                   	}
 | 
			
		||||
                   	return false;
 | 
			
		||||
                    if (!isset($this->switchBoardSessions[$recipient]) || time() - $this->switchBoardSessions[$recipient]['XFRReqTime'] > $this->XFRReqTimeout) {
 | 
			
		||||
                        $this->debug_message("*** No existing SB session or request has timed out");
 | 
			
		||||
                        $this->reqSBSession($recipient);
 | 
			
		||||
                    }
 | 
			
		||||
                    return false;
 | 
			
		||||
                } else {
 | 
			
		||||
                    $socket = $this->switchBoardSessionLookup[$recipient];
 | 
			
		||||
                    $intsocket = (int) $socket;
 | 
			
		||||
@@ -1547,10 +1547,10 @@ class MSN {
 | 
			
		||||
                        $this->endSBSession($socket);
 | 
			
		||||
                        return $this->sendMessage($recipient.'@Offline', $message);
 | 
			
		||||
                    } else {
 | 
			
		||||
                    	if ($this->switchBoardSessions[$intsocket]['joined'] !== true) {
 | 
			
		||||
                    		$this->debug_message("*** Recipient has not joined session, returning false");
 | 
			
		||||
                    		return false;
 | 
			
		||||
                    	}
 | 
			
		||||
                        if ($this->switchBoardSessions[$intsocket]['joined'] !== true) {
 | 
			
		||||
                            $this->debug_message("*** Recipient has not joined session, returning false");
 | 
			
		||||
                            return false;
 | 
			
		||||
                        }
 | 
			
		||||
 | 
			
		||||
                        $this->debug_message("*** Attempting to send message to $recipient using existing SB session");
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user