Browse Source

Bot no longer messages non-logging channels on modrequest; bot no longer messages itself on modrequest.

pull/3/head
JustinAJ 10 years ago
parent
commit
268608d9b9
  1. BIN
      Release/Plugins/RenX.Core.lib
  2. 4
      RenX.Commands/RenX_Commands.cpp

BIN
Release/Plugins/RenX.Core.lib

Binary file not shown.

4
RenX.Commands/RenX_Commands.cpp

@ -1377,13 +1377,13 @@ void ModRequestGameCommand::trigger(RenX::Server *source, RenX::PlayerInfo *play
if (channel != nullptr) if (channel != nullptr)
{ {
type = channel->getType(); type = channel->getType();
server->sendMessage(channel->getName(), msg2);
if (source->isLogChanType(type)) if (source->isLogChanType(type))
{ {
server->sendMessage(channel->getName(), msg2);
msg += channel->getName(); msg += channel->getName();
for (unsigned int c = 0; c < channel->getUserCount(); c++) for (unsigned int c = 0; c < channel->getUserCount(); c++)
{ {
if (channel->getUserPrefix(c) != 0) if (channel->getUserPrefix(c) != 0 && channel->getUser(c)->getNickname().equals(server->getNickname()) == false)
{ {
server->sendMessage(channel->getUser(c)->getUser()->getNickname(), msg); server->sendMessage(channel->getUser(c)->getUser()->getNickname(), msg);
messageCount++; messageCount++;

Loading…
Cancel
Save