diff --git a/src/infrastructure/daemon/irc/bot/PhabricatorIRCBot.php b/src/infrastructure/daemon/irc/bot/PhabricatorIRCBot.php index e29d604b08..8fef888303 100644 --- a/src/infrastructure/daemon/irc/bot/PhabricatorIRCBot.php +++ b/src/infrastructure/daemon/irc/bot/PhabricatorIRCBot.php @@ -56,6 +56,8 @@ final class PhabricatorIRCBot extends PhabricatorDaemon { $pass = idx($config, 'pass'); $nick = idx($config, 'nick', 'phabot'); $user = idx($config, 'user', $nick); + $ssl = idx($config, 'ssl', false); + $nickpass = idx($config, 'nickpass'); if (!preg_match('/^[A-Za-z0-9_`[{}^|\]\\-]+$/', $nick)) { throw new Exception( @@ -107,6 +109,10 @@ final class PhabricatorIRCBot extends PhabricatorDaemon { $this->writeCommand('PASS', "{$pass}"); } + if ($nickpass) { + $this->writeCommand("NickServ IDENTIFY ", "{$nickpass}"); + } + $this->writeCommand('NICK', "{$nick}"); foreach ($join as $channel) { $this->writeCommand('JOIN', "{$channel}");