mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-10 08:52:39 +01:00
Merge pull request #197 from KorvinSzanto/master
D3410: Fix irc server login
This commit is contained in:
commit
5ba9ad330e
2 changed files with 4 additions and 4 deletions
|
@ -117,10 +117,6 @@ final class PhabricatorIRCBot extends PhabricatorDaemon {
|
|||
$this->writeCommand('PASS', "{$pass}");
|
||||
}
|
||||
|
||||
if ($nickpass) {
|
||||
$this->writeCommand("NickServ IDENTIFY ", "{$nickpass}");
|
||||
}
|
||||
|
||||
$this->writeCommand('NICK', "{$nick}");
|
||||
$this->runSelectLoop();
|
||||
}
|
||||
|
|
|
@ -27,6 +27,10 @@ final class PhabricatorIRCProtocolHandler extends PhabricatorIRCHandler {
|
|||
switch ($message->getCommand()) {
|
||||
case '422': // Error - no MOTD
|
||||
case '376': // End of MOTD
|
||||
$nickpass = $this->getConfig('nickpass');
|
||||
if ($nickpass) {
|
||||
$this->write('PRIVMSG', "nickserv :IDENTIFY {$nickpass}");
|
||||
}
|
||||
$join = $this->getConfig('join');
|
||||
if (!$join) {
|
||||
throw new Exception("Not configured to join any channels!");
|
||||
|
|
Loading…
Reference in a new issue