Browse Source

Modified "mods" command outputs.

pull/3/head
JustinAJ 10 years ago
parent
commit
21b17c49ae
  1. 6
      RenX.Commands/RenX_Commands.cpp

6
RenX.Commands/RenX_Commands.cpp

@ -635,10 +635,11 @@ void ModsIRCCommand::trigger(IRC_Bot *source, const Jupiter::ReadableString &cha
for (Jupiter::DLList<RenX::PlayerInfo>::Node *node = server->players.getNode(0); node != nullptr; node = node->next)
{
player = node->data;
if (player->adminType.size() != 0)
if (player->isBot == false && (player->adminType.size() != 0 || (player->access != 0 && (player->gamePrefix.isEmpty() == false || player->formatNamePrefix.isEmpty() == false))))
{
if (msg.size() != 0) msg += ", ";
else msg += "Moderators in-game: ";
msg += player->gamePrefix;
msg += player->name;
}
}
@ -1328,10 +1329,11 @@ void ModsGameCommand::trigger(RenX::Server *source, RenX::PlayerInfo *, const Ju
for (Jupiter::DLList<RenX::PlayerInfo>::Node *node = source->players.getNode(0); node != nullptr; node = node->next)
{
player = node->data;
if (player->adminType.size() != 0)
if (player->isBot == false && (player->adminType.size() != 0 || (player->access != 0 && (player->gamePrefix.isEmpty() == false || player->formatNamePrefix.isEmpty() == false))))
{
if (msg.size() != 4) msg += ", ";
else msg += "Moderators in-game: ";
msg += player->gamePrefix;
msg += player->name;
}
}

Loading…
Cancel
Save