Skip to content
This repository has been archived by the owner on Jun 30, 2020. It is now read-only.

Commit

Permalink
Merge pull request #10 from tyranron/fix-server-option
Browse files Browse the repository at this point in the history
Set 'server' option when initializing XMPP object
  • Loading branch information
BirknerAlex authored Oct 3, 2018
2 parents 3970a32 + c226ecd commit ab642da
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/BirknerAlex/XMPPHP/XMPP.php
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ public function __construct($host, $port, $user, $password, $resource, $server =
$this->password = $password;
$this->resource = $resource;
if(!$server) $server = $host;
$this->server = $server;
$this->basejid = $this->user . '@' . $this->host;

$this->roster = new Roster();
Expand Down

0 comments on commit ab642da

Please sign in to comment.