1
0
mirror of https://github.com/anope/anope.git synced 2026-07-01 12:46:39 +02:00

Clean up and reorganize our header files

This commit is contained in:
Adam
2012-02-14 15:13:27 -05:00
parent 086790d633
commit a9772cde21
117 changed files with 2418 additions and 1822 deletions
+13
View File
@@ -9,11 +9,24 @@
* Based on the original code of Services by Andy Church.
*/
#include "services.h"
#include "modules.h"
message_map MessageMap;
std::list<Module *> Modules;
CallBack::CallBack(Module *mod, long time_from_now, time_t now, bool repeating) : Timer(time_from_now, now, repeating), m(mod)
{
}
CallBack::~CallBack()
{
std::list<CallBack *>::iterator it = std::find(m->CallBacks.begin(), m->CallBacks.end(), this);
if (it != m->CallBacks.end())
m->CallBacks.erase(it);
}
/** Message constructor, adds the message to Anope
* @param n The message name
* @param f A callback function