if(source->Config==nullptr)source->sendMessage(channel,STRING_LITERAL_AS_REFERENCE("Unable to find Config data."));
if(Jupiter::IRC::Client::Config==nullptr)
returnnewGenericCommand::ResponseLine(STRING_LITERAL_AS_REFERENCE("Unable to find Config data."),GenericCommand::DisplayType::PublicError);
else
{
boolr;
if(parameters.isNotEmpty())
r=source->Config->sync(parameters);
elser=source->Config->sync();
if(r)source->sendMessage(channel,STRING_LITERAL_AS_REFERENCE("Config data synced to file successfully."));
elsesource->sendMessage(channel,STRING_LITERAL_AS_REFERENCE("Unable to sync Config data."));
r=Jupiter::IRC::Client::Config->sync(parameters);
elser=Jupiter::IRC::Client::Config->sync();
if(r)
returnnewGenericCommand::ResponseLine(STRING_LITERAL_AS_REFERENCE("Config data synced to file successfully."),GenericCommand::DisplayType::PublicSuccess);
returnnewGenericCommand::ResponseLine(STRING_LITERAL_AS_REFERENCE("Unable to sync Config data."),GenericCommand::DisplayType::PublicError);
if(source->Config==nullptr)source->sendMessage(channel,STRING_LITERAL_AS_REFERENCE("Unable to find Config data."));
if(Jupiter::IRC::Client::Config==nullptr)
returnnewGenericCommand::ResponseLine(STRING_LITERAL_AS_REFERENCE("Unable to find Config data."),GenericCommand::DisplayType::PublicError);
else
{
unsignedintr=Jupiter::rehash();
if(r==0)
source->sendMessage(channel,Jupiter::StringS::Format("All %u objects were successfully rehashed.",Jupiter::getRehashableCount()));
elsesource->sendMessage(channel,Jupiter::StringS::Format("%u of %u objects failed to successfully rehash.",r,Jupiter::getRehashableCount()));
returnnewGenericCommand::ResponseLine(Jupiter::StringS::Format("All %u objects were successfully rehashed.",Jupiter::getRehashableCount()),GenericCommand::DisplayType::PublicSuccess);
returnnewGenericCommand::ResponseLine(Jupiter::StringS::Format("%u of %u objects failed to successfully rehash.",r,Jupiter::getRehashableCount()),GenericCommand::DisplayType::PublicError);