]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Fix 'from' address in the XMPP ping command
authorAndrew Engelbrecht <andrew@fsf.org>
Thu, 13 Apr 2017 16:23:12 +0000 (12:23 -0400)
committerAndrew Engelbrecht <andrew@fsf.org>
Thu, 13 Apr 2017 16:35:49 +0000 (12:35 -0400)
This commit corrects a syntax error that caused the XMPP daemon to
reatedly reconnect to the remote server.

plugins/Xmpp/lib/xmppmanager.php

index 372824ce54dc2f960958ad63af71fafdba55d40b..44e04a4ae79c11efed5520da38bba05074b40673 100644 (file)
@@ -183,7 +183,7 @@ class XmppManager extends ImManager
         }
 
         common_log(LOG_DEBUG, "Sending ping #{$this->pingid}");
-               $this->conn->send("<iq from='{" . $this->plugin->daemonScreenname() . "}' to='{$this->plugin->server}' id='ping_{$this->pingid}' type='get'><ping xmlns='urn:xmpp:ping'/></iq>");
+               $this->conn->send("<iq from='{$this->plugin->daemonScreenname()}' to='{$this->plugin->server}' id='ping_{$this->pingid}' type='get'><ping xmlns='urn:xmpp:ping'/></iq>");
         $this->lastping = $now;
         return true;
     }