Removed hard tabs

This commit is contained in:
Luke Fitzgerald 2010-06-30 12:50:07 -07:00
parent 9a7c60a3e2
commit c4458bc40a

View File

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