mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-20 12:30:56 +01:00
(PhabricatorIRCProtocolAdapter.connect) Use recommended connection registration order from RFC{1459,2812}
http://tools.ietf.org/html/rfc1459.html#section-4.1 and http://tools.ietf.org/html/rfc2812#section-3.1 mentions that client should send the PASS first, then the latter of NICK/USER. This is tested and confirmed working with ngircd commit 485d0aec813db9966922f17aae044df2d82b0b67 See: <https://github.com/facebook/phabricator/pull/524> Reviewed by: epriestley
This commit is contained in:
parent
d1e64e64ff
commit
fb87d0f491
1 changed files with 1 additions and 1 deletions
|
@ -49,11 +49,11 @@ final class PhabricatorIRCProtocolAdapter
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->socket = $socket;
|
$this->socket = $socket;
|
||||||
$this->write("USER {$user} 0 * :{$user}");
|
|
||||||
if ($pass) {
|
if ($pass) {
|
||||||
$this->write("PASS {$pass}");
|
$this->write("PASS {$pass}");
|
||||||
}
|
}
|
||||||
$this->write("NICK {$nick}");
|
$this->write("NICK {$nick}");
|
||||||
|
$this->write("USER {$user} 0 * :{$user}");
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getNextMessages($poll_frequency) {
|
public function getNextMessages($poll_frequency) {
|
||||||
|
|
Loading…
Reference in a new issue