From 7b998f4b2a21b86ae6a3a22e6e7891e2d98d3902 Mon Sep 17 00:00:00 2001 From: Luke Fitzgerald Date: Wed, 16 Jun 2010 02:25:09 +0100 Subject: [PATCH] Reduced if statements used in sendOtherNetworkMessage --- plugins/Msn/extlib/phpmsnclass/msn.class.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/plugins/Msn/extlib/phpmsnclass/msn.class.php b/plugins/Msn/extlib/phpmsnclass/msn.class.php index 8049d4ca49..c37b945e77 100644 --- a/plugins/Msn/extlib/phpmsnclass/msn.class.php +++ b/plugins/Msn/extlib/phpmsnclass/msn.class.php @@ -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"); -- 2.39.5