Reduced if statements used in sendOtherNetworkMessage

This commit is contained in:
Luke Fitzgerald 2010-06-16 02:25:09 +01:00
parent 47bc0ae4c4
commit 7b998f4b2a

View File

@ -1497,10 +1497,8 @@ class MSN {
private function sendOtherNetworkMessage($to, $message, $network) { private function sendOtherNetworkMessage($to, $message, $network) {
$message = $this->getMessage($message, $network); $message = $this->getMessage($message, $network);
$len = strlen($message); $len = strlen($message);
if ($this->ns_writeln("UUM $this->id $to $network 1 $len") === false) { if ($this->ns_writeln("UUM $this->id $to $network 1 $len") === false ||
return false; $this->ns_writedata($Message) === false) {
}
if ($this->ns_writedata($Message)) {
return false; return false;
} }
$this->debug_message("*** Sent to $to (network: $network):\n$Message"); $this->debug_message("*** Sent to $to (network: $network):\n$Message");