Exemple #1
0
 public static function run(Command $command, Connection $connection, JsonConfig $config)
 {
     Logger::info(BashColor::HIGHLIGHT . "Nickname already in use.");
     $altNick = IRC::getInstance()->getConfig()->getData("alt_nickname", "FishIRC");
     if (!$connection->isConnected() and $connection->getNick() !== $altNick) {
         $connection->changeNick($altNick);
     }
 }