printf("Initialization completed in %f milliseconds."ENDL,static_cast<double>(std::chrono::duration_cast<std::chrono::microseconds>(std::chrono::steady_clock::now()-Jupiter::g_start_time).count())/1000.0);
printf("Initialization completed in %f milliseconds."ENDL,static_cast<double>(std::chrono::duration_cast<std::chrono::microseconds>(std::chrono::steady_clock::now()-Jupiter::g_start_time).count())/1000.0);
if(consoleCommands->size()>0)
if(!consoleCommands.empty()){
printf("%zu Console Commands have been initialized%s"ENDL,consoleCommands->size(),getConsoleCommand("help"_jrs)==nullptr?".":"; type \"help\" for more information.");
printf("%zu Console Commands have been initialized%s"ENDL,consoleCommands.size(),getConsoleCommand("help"_jrs)==nullptr?".":"; type \"help\" for more information.");
if(IRCMasterCommandList->size()>0)
printf("%zu IRC Commands have been loaded into the master list."ENDL,IRCMasterCommandList->size());
returnnewJupiter::GenericCommand::ResponseLine(Jupiter::StringS::Format("%u of %u objects failed to successfully rehash.",r,Jupiter::getRehashableCount()),GenericCommand::DisplayType::PublicError);
returnnewJupiter::GenericCommand::ResponseLine(Jupiter::StringS::Format("%u of %u objects failed to successfully rehash.",r,Jupiter::getRehashableCount()),GenericCommand::DisplayType::PublicError);
Jupiter::GenericCommand::ResponseLine*line=result->set(Jupiter::String::Format("There are %u plugins loaded:",Jupiter::plugins.size()),GenericCommand::DisplayType::PublicSuccess);
{
for(auto&plugin:Jupiter::plugins){
Jupiter::GenericCommand::ResponseLine*line=ret->set(Jupiter::String::Format("There are %u plugins loaded:",Jupiter::plugins->size()),GenericCommand::DisplayType::PublicSuccess);
fprintf(stderr,"[RenX] ERROR: Failed to connect to %.*s on port %u. Error code: %d"ENDL,server->getHostname().size(),server->getHostname().c_str(),server->getPort(),Jupiter::Socket::getLastError());
fprintf(stderr,"[RenX] ERROR: Failed to connect to %.*s on port %u. Error code: %d"ENDL,server->getHostname().size(),server->getHostname().c_str(),server->getPort(),Jupiter::Socket::getLastError());
returnnewJupiter::GenericCommand::ResponseLine("Error: Too few parameters. Syntax: ladder <name | rank>"_jrs,GenericCommand::DisplayType::PrivateError);
returnnewJupiter::GenericCommand::ResponseLine("Error: Too few parameters. Syntax: ladder <name | rank>"_jrs,GenericCommand::DisplayType::PrivateError);
}
if(RenX::default_ladder_database==nullptr)
if(RenX::default_ladder_database==nullptr){
returnnewJupiter::GenericCommand::ResponseLine("Error: No default ladder database specified."_jrs,GenericCommand::DisplayType::PrivateError);
returnnewJupiter::GenericCommand::ResponseLine("Error: No default ladder database specified."_jrs,GenericCommand::DisplayType::PrivateError);
printf("Incoming server connected from %.*s:%u"ENDL,server->getSocketHostname().size(),server->getSocketHostname().c_str(),server->getSocketPort());
printf("Incoming server connected from %.*s:%u"ENDL,server->getSocketHostname().size(),server->getSocketHostname().c_str(),server->getSocketPort());
server->sendLogChan("Incoming server connected from "IRCCOLOR"12%.*s:%u",server->getSocketHostname().size(),server->getSocketHostname().c_str(),server->getSocketPort());
server->sendLogChan("Incoming server connected from "IRCCOLOR"12%.*s:%u",server->getSocketHostname().size(),server->getSocketHostname().c_str(),server->getSocketPort());
server.sendMessage(player,Jupiter::StringS::Format("You have been authorized into group \"%.*s\", with access level %u.",group->name.size(),group->name.ptr(),player.access));
server.sendMessage(player,Jupiter::StringS::Format("You have been authorized into group \"%.*s\", with access level %u.",group->name.size(),group->name.ptr(),player.access));
source->sendNotice(nick,Jupiter::StringS::Format("%.*s has been kicked from the server for exceeding the warning limit (%d warnings).",player->name.size(),player->name.ptr(),warns));
source->sendNotice(nick,Jupiter::StringS::Format("%.*s has been kicked from the server for exceeding the warning limit (%d warnings).",player->name.size(),player->name.ptr(),warns));
source->sendNotice(nick,Jupiter::StringS::Format("%.*s has been banned from the server for exceeding the warning limit (%d warnings).",player->name.size(),player->name.ptr(),reason.size(),reason.ptr(),warns));
source->sendNotice(nick,Jupiter::StringS::Format("%.*s has been banned from the server for exceeding the warning limit (%d warnings).",player->name.size(),player->name.ptr(),reason.size(),reason.ptr(),warns));
server->sendWarnMessage(*player,Jupiter::StringS::Format("You have been warned by %.*s@IRC for: %.*s. You have %d warnings.",nick.size(),nick.ptr(),reason.size(),reason.ptr(),warns));
source->sendNotice(nick,Jupiter::StringS::Format("%.*s has been warned; they now have %d warnings.",player->name.size(),player->name.ptr(),warns));
server->sendWarnMessage(*player,Jupiter::StringS::Format("You have been warned by %.*s@IRC for: %.*s. You have %d warnings.",nick.size(),nick.ptr(),reason.size(),reason.ptr(),warns));
source->sendNotice(nick,Jupiter::StringS::Format("%.*s has been warned; they now have %d warnings.",player->name.size(),player->name.ptr(),warns));
}
}
}
else
source->sendMessage(channel,"Error: Channel not attached to any connected Renegade X servers."_jrs);
}
}
}
}
else
source->sendNotice(nick,"Error: Too Few Parameters. Syntax: Warn <Player> <Reason>"_jrs);
source->sendMessage(*player,Jupiter::StringS::Format("%.*s has been kicked from the server for exceeding the warning limit (%d warnings).",target->name.size(),target->name.ptr(),warns));
source->sendMessage(*player,Jupiter::StringS::Format("%.*s has been kicked from the server for exceeding the warning limit (%d warnings).",target->name.size(),target->name.ptr(),warns));
source->sendMessage(*player,Jupiter::StringS::Format("%.*s has been banned from the server for exceeding the warning limit (%d warnings).",target->name.size(),target->name.ptr(),warns));
source->sendMessage(*player,Jupiter::StringS::Format("%.*s has been banned from the server for exceeding the warning limit (%d warnings).",target->name.size(),target->name.ptr(),warns));
source->sendWarnMessage(*target,Jupiter::StringS::Format("You have been warned by %.*s for: %.*s. You have %d warnings.",player->name.size(),player->name.ptr(),reason.size(),reason.ptr(),warns));
source->sendWarnMessage(*target,Jupiter::StringS::Format("You have been warned by %.*s for: %.*s. You have %d warnings.",player->name.size(),player->name.ptr(),reason.size(),reason.ptr(),warns));
source->sendMessage(*player,Jupiter::StringS::Format("%.*s has been warned; they now have %d warnings.",target->name.size(),target->name.ptr(),warns));
source->sendMessage(*player,Jupiter::StringS::Format("%.*s has been warned; they now have %d warnings.",target->name.size(),target->name.ptr(),warns));
@ -212,8 +188,7 @@ void WarnGameCommand::trigger(RenX::Server *source, RenX::PlayerInfo *player, co
source->sendMessage(*player,"Error: Too few parameters. Syntax: Warn <Player> <Reason>"_jrs);
source->sendMessage(*player,"Error: Too few parameters. Syntax: Warn <Player> <Reason>"_jrs);
source->sendMessage(*target,Jupiter::StringS::Format("You have been pardoned by %.*s@IRC; your warnings have been reset.",player->name.size(),player->name.ptr()));
source->sendMessage(*target,Jupiter::StringS::Format("You have been pardoned by %.*s@IRC; your warnings have been reset.",player->name.size(),player->name.ptr()));
source->sendMessage(*player,Jupiter::StringS::Format("%.*s has been pardoned; their warnings have been reset.",target->name.size(),target->name.ptr()));
source->sendMessage(*player,Jupiter::StringS::Format("%.*s has been pardoned; their warnings have been reset.",target->name.size(),target->name.ptr()));