Reduced if statements used in sendOtherNetworkMessage
This commit is contained in:
parent
47bc0ae4c4
commit
7b998f4b2a
@ -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");
|
||||||
|
Loading…
Reference in New Issue
Block a user