Browse Source

Plugin data is now attached to ban entries; Jupiter version updated.

pull/3/head
JustinAJ 10 years ago
parent
commit
f64206c72d
  1. 2
      Jupiter
  2. BIN
      Release/Bot.lib
  3. BIN
      Release/Plugins/RenX.Core.lib
  4. 4
      RenX.Core/RenX_BanDatabase.cpp

2
Jupiter

@ -1 +1 @@
Subproject commit 21326918e9caf39c37d487183801715724908f85 Subproject commit 4fdd55288d85b0500b88a56b384d9b433b42bc39

BIN
Release/Bot.lib

Binary file not shown.

BIN
Release/Plugins/RenX.Core.lib

Binary file not shown.

4
RenX.Core/RenX_BanDatabase.cpp

@ -136,10 +136,12 @@ void RenX::BanDatabase::add(RenX::Server *server, const RenX::PlayerInfo *player
for (size_t i = 0; i < xPlugins.size(); i++) for (size_t i = 0; i < xPlugins.size(); i++)
if (xPlugins.get(i)->RenX_OnBan(server, player, pluginData)) if (xPlugins.get(i)->RenX_OnBan(server, player, pluginData))
{ {
const Jupiter::ReadableString &pluginName = xPlugins.get(i)->getName();
fputc('\0', file); fputc('\0', file);
fwrite(xPlugins.get(i)->getName().ptr(), sizeof(char), xPlugins.get(i)->getName().size(), file); fwrite(pluginName.ptr(), sizeof(char), pluginName.size(), file);
fputc('\0', file); fputc('\0', file);
fwrite(pluginData.ptr(), sizeof(char), pluginData.size(), file); fwrite(pluginData.ptr(), sizeof(char), pluginData.size(), file);
entry->varData.set(pluginName, pluginData);
} }

Loading…
Cancel
Save