Browse Source

Updated Jupiter version; OnBadRehash() added to IRC_Bot.

pull/3/head
JustinAJ 10 years ago
parent
commit
ab572abe10
  1. 5
      Bot/IRC_Bot.h
  2. 2
      Bot/Main.cpp
  3. 2
      Jupiter
  4. BIN
      Release/Bot.lib
  5. BIN
      Release/Plugins/RenX.Core.lib

5
Bot/IRC_Bot.h

@ -103,6 +103,11 @@ public:
*/ */
int OnRehash(); int OnRehash();
/**
* @brief Shouldn't ever happen; returns removed.
*/
bool OnBadRehash(bool removed) { return removed; };
/** Constructor for IRC_Bot */ /** Constructor for IRC_Bot */
IRC_Bot(const Jupiter::ReadableString &configSection); IRC_Bot(const Jupiter::ReadableString &configSection);

2
Bot/Main.cpp

@ -133,7 +133,7 @@ int main(int argc, const char **args)
while (1) while (1)
{ {
for (size_t i = 0; i < Jupiter::plugins->size(); i++) for (size_t i = 0; i < Jupiter::plugins->size(); i++)
if (Jupiter::plugins->get(i)->think() != 0) if (Jupiter::plugins->get(i)->shouldRemove() || Jupiter::plugins->get(i)->think() != 0)
Jupiter::freePlugin(i); Jupiter::freePlugin(i);
Jupiter_checkTimers(); Jupiter_checkTimers();
serverManager->think(); serverManager->think();

2
Jupiter

@ -1 +1 @@
Subproject commit 5850b6f7a472a3ee801ba9a7281494ac7564dba7 Subproject commit 8273d519ae8615019152e30410c3b27c65ba40cb

BIN
Release/Bot.lib

Binary file not shown.

BIN
Release/Plugins/RenX.Core.lib

Binary file not shown.
Loading…
Cancel
Save