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) {
$message = $this->getMessage($message, $network);
$len = strlen($message);
if ($this->ns_writeln("UUM $this->id $to $network 1 $len") === false) {
return false;
}
if ($this->ns_writedata($Message)) {
if ($this->ns_writeln("UUM $this->id $to $network 1 $len") === false ||
$this->ns_writedata($Message) === false) {
return false;
}
$this->debug_message("*** Sent to $to (network: $network):\n$Message");