]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Reduced if statements used in sendOtherNetworkMessage
authorLuke Fitzgerald <lw.fitzgerald@googlemail.com>
Wed, 16 Jun 2010 01:25:09 +0000 (02:25 +0100)
committerLuke Fitzgerald <lw.fitzgerald@googlemail.com>
Wed, 16 Jun 2010 01:25:09 +0000 (02:25 +0100)
plugins/Msn/extlib/phpmsnclass/msn.class.php

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