1
0
mirror of https://github.com/anope/anope.git synced 2026-06-26 12:36:38 +02:00

Pretty large coding style cleanup, in source doc

cleanup, and allow protocol mods to depend on each
other
This commit is contained in:
Adam
2012-11-22 00:50:33 -05:00
parent 368d469631
commit d33a0f75a5
303 changed files with 7880 additions and 9388 deletions
+18 -20
View File
@@ -1,20 +1,18 @@
/*
*
* (C) 2003-2012 Anope Team
* Contact us at team@anope.org
*
* Please read COPYING and README for further details.
*
*/
#include "services.h"
#include "modules.h"
#include "oper.h"
#include "account.h"
#include "regchannel.h"
#include "access.h"
#include "bots.h"
#include "anope.h"
#include "service.h"
std::map<Anope::string, std::map<Anope::string, Service *> > Service::services;
void RegisterTypes()
{
static SerializeType nc("NickCore", NickCore::unserialize), na("NickAlias", NickAlias::unserialize), bi("BotInfo", BotInfo::unserialize),
ci("ChannelInfo", ChannelInfo::unserialize), access("ChanAccess", ChanAccess::unserialize), logsetting("LogSetting", LogSetting::unserialize),
modelock("ModeLock", ModeLock::unserialize), akick("AutoKick", AutoKick::unserialize), badword("BadWord", BadWord::unserialize),
memo("Memo", Memo::unserialize), xline("XLine", XLine::unserialize);
}
std::map<Anope::string, std::map<Anope::string, Service *> > Service::Services;
std::map<Anope::string, std::map<Anope::string, Anope::string> > Service::Aliases;
Base::Base()
{
@@ -22,19 +20,19 @@ Base::Base()
Base::~Base()
{
for (std::set<dynamic_reference_base *>::iterator it = this->References.begin(), it_end = this->References.end(); it != it_end; ++it)
for (std::set<ReferenceBase *>::iterator it = this->references.begin(), it_end = this->references.end(); it != it_end; ++it)
{
(*it)->Invalidate();
}
}
void Base::AddReference(dynamic_reference_base *r)
void Base::AddReference(ReferenceBase *r)
{
this->References.insert(r);
this->references.insert(r);
}
void Base::DelReference(dynamic_reference_base *r)
void Base::DelReference(ReferenceBase *r)
{
this->References.erase(r);
this->references.erase(r);
}