mirror of
https://github.com/anope/anope.git
synced 2026-07-05 04:33:12 +02:00
Fixed these ModuleManager::Attach calls once and for all..
This commit is contained in:
@@ -27,7 +27,7 @@ class BotServCore : public Module
|
||||
|
||||
Implementation i[] = { I_OnPrivmsg, I_OnPreCommand, I_OnJoinChannel, I_OnLeaveChannel,
|
||||
I_OnPreHelp, I_OnPostHelp, I_OnChannelModeSet };
|
||||
ModuleManager::Attach(i, this, 7);
|
||||
ModuleManager::Attach(i, this, sizeof(i) / sizeof(Implementation));
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -25,7 +25,7 @@ class ChanServCore : public Module
|
||||
throw ModuleException("No bot named " + Config->ChanServ);
|
||||
|
||||
Implementation i[] = { I_OnBotPrivmsg, I_OnDelCore, I_OnPreHelp, I_OnPostHelp };
|
||||
ModuleManager::Attach(i, this, 4);
|
||||
ModuleManager::Attach(i, this, sizeof(i) / sizeof(Implementation));
|
||||
}
|
||||
|
||||
EventReturn OnBotPrivmsg(User *u, BotInfo *bi, Anope::string &message)
|
||||
|
||||
@@ -132,7 +132,7 @@ class DBMySQL : public Module
|
||||
Implementation i[] = {
|
||||
I_OnLoadDatabase, I_OnServerConnect
|
||||
};
|
||||
ModuleManager::Attach(i, this, 2);
|
||||
ModuleManager::Attach(i, this, sizeof(i) / sizeof(Implementation));
|
||||
|
||||
ModuleManager::RegisterService(&commandsqlsync);
|
||||
|
||||
|
||||
@@ -162,7 +162,7 @@ class MySQLLiveModule : public Module
|
||||
Module(modname, creator, DATABASE), SQL("mysql/main"), ACS("asynch_commands")
|
||||
{
|
||||
Implementation i[] = { I_OnFindChan, I_OnFindNick, I_OnFindCore, I_OnShutdown };
|
||||
ModuleManager::Attach(i, this, 4);
|
||||
ModuleManager::Attach(i, this, sizeof(i) / sizeof(Implementation));
|
||||
}
|
||||
|
||||
void OnShutdown()
|
||||
|
||||
@@ -360,7 +360,7 @@ class DBPlain : public Module
|
||||
this->SetAuthor("Anope");
|
||||
|
||||
Implementation i[] = { I_OnReload, I_OnDatabaseRead, I_OnLoadDatabase, I_OnDatabaseReadMetadata, I_OnSaveDatabase, I_OnModuleLoad };
|
||||
ModuleManager::Attach(i, this, 6);
|
||||
ModuleManager::Attach(i, this, sizeof(i) / sizeof(Implementation));
|
||||
|
||||
OnReload();
|
||||
|
||||
|
||||
@@ -320,7 +320,7 @@ class EMD5 : public Module
|
||||
this->SetAuthor("Anope");
|
||||
|
||||
Implementation i[] = { I_OnEncrypt, I_OnCheckAuthentication };
|
||||
ModuleManager::Attach(i, this, 2);
|
||||
ModuleManager::Attach(i, this, sizeof(i) / sizeof(Implementation));
|
||||
}
|
||||
|
||||
EventReturn OnEncrypt(const Anope::string &src, Anope::string &dest)
|
||||
|
||||
@@ -17,7 +17,7 @@ class ENone : public Module
|
||||
this->SetAuthor("Anope");
|
||||
|
||||
Implementation i[] = { I_OnEncrypt, I_OnDecrypt, I_OnCheckAuthentication };
|
||||
ModuleManager::Attach(i, this, 3);
|
||||
ModuleManager::Attach(i, this, sizeof(i) / sizeof(Implementation));
|
||||
}
|
||||
|
||||
EventReturn OnEncrypt(const Anope::string &src, Anope::string &dest)
|
||||
|
||||
@@ -325,7 +325,7 @@ class EOld : public Module
|
||||
this->SetAuthor("Anope");
|
||||
|
||||
Implementation i[] = { I_OnEncrypt, I_OnCheckAuthentication };
|
||||
ModuleManager::Attach(i, this, 2);
|
||||
ModuleManager::Attach(i, this, sizeof(i) / sizeof(Implementation));
|
||||
}
|
||||
|
||||
EventReturn OnEncrypt(const Anope::string &src, Anope::string &dest)
|
||||
|
||||
@@ -173,7 +173,7 @@ class ESHA1 : public Module
|
||||
this->SetAuthor("Anope");
|
||||
|
||||
Implementation i[] = { I_OnEncrypt, I_OnCheckAuthentication };
|
||||
ModuleManager::Attach(i, this, 2);
|
||||
ModuleManager::Attach(i, this, sizeof(i) / sizeof(Implementation));
|
||||
}
|
||||
|
||||
EventReturn OnEncrypt(const Anope::string &src, Anope::string &dest)
|
||||
|
||||
@@ -252,7 +252,7 @@ class ESHA256 : public Module
|
||||
this->SetAuthor("Anope");
|
||||
|
||||
Implementation i[] = { I_OnEncrypt, I_OnCheckAuthentication };
|
||||
ModuleManager::Attach(i, this, 2);
|
||||
ModuleManager::Attach(i, this, sizeof(i) / sizeof(Implementation));
|
||||
|
||||
use_iv = false;
|
||||
}
|
||||
|
||||
@@ -60,7 +60,7 @@ class GlobalCore : public Module
|
||||
ModuleManager::RegisterService(&this->myglobalservice);
|
||||
|
||||
Implementation i[] = { I_OnRestart, I_OnShutdown, I_OnNewServer, I_OnPreHelp };
|
||||
ModuleManager::Attach(i, this, 3);
|
||||
ModuleManager::Attach(i, this, sizeof(i) / sizeof(Implementation));
|
||||
}
|
||||
|
||||
void OnRestart()
|
||||
|
||||
@@ -28,7 +28,7 @@ class HostServCore : public Module
|
||||
throw ModuleException("No bot named " + Config->HostServ);
|
||||
|
||||
Implementation i[] = { I_OnNickIdentify, I_OnNickUpdate, I_OnPreHelp };
|
||||
ModuleManager::Attach(i, this, 3);
|
||||
ModuleManager::Attach(i, this, sizeof(i) / sizeof(Implementation));
|
||||
}
|
||||
|
||||
void OnNickIdentify(User *u)
|
||||
|
||||
@@ -167,7 +167,7 @@ class MemoServCore : public Module
|
||||
throw ModuleException("No bot named " + Config->MemoServ);
|
||||
|
||||
Implementation i[] = { I_OnNickIdentify, I_OnJoinChannel, I_OnUserAway, I_OnNickUpdate, I_OnPreHelp, I_OnPostHelp };
|
||||
ModuleManager::Attach(i, this, 6);
|
||||
ModuleManager::Attach(i, this, sizeof(i) / sizeof(Implementation));
|
||||
|
||||
ModuleManager::RegisterService(&this->mymemoserv);
|
||||
}
|
||||
|
||||
@@ -116,7 +116,7 @@ class NSAJoin : public Module
|
||||
ModuleManager::RegisterService(&commandnsajoin);
|
||||
|
||||
Implementation i[] = { I_OnNickIdentify, I_OnDatabaseWriteMetadata, I_OnDatabaseReadMetadata };
|
||||
ModuleManager::Attach(i, this, 3);
|
||||
ModuleManager::Attach(i, this, sizeof(i) / sizeof(Implementation));
|
||||
}
|
||||
|
||||
void OnNickIdentify(User *u)
|
||||
|
||||
@@ -211,7 +211,7 @@ class NSCert : public Module
|
||||
throw ModuleException("Your IRCd does not support ssl client certificates");
|
||||
|
||||
Implementation i[] = { I_OnUserNickChange, I_OnFingerprint };
|
||||
ModuleManager::Attach(i, this, 2);
|
||||
ModuleManager::Attach(i, this, sizeof(i) / sizeof(Implementation));
|
||||
|
||||
ModuleManager::RegisterService(&commandnscert);
|
||||
}
|
||||
|
||||
@@ -147,7 +147,7 @@ class NickServCore : public Module
|
||||
|
||||
Implementation i[] = { I_OnDelNick, I_OnDelCore, I_OnChangeCoreDisplay, I_OnNickIdentify, I_OnNickGroup,
|
||||
I_OnNickUpdate, I_OnUserNickChange, I_OnPreHelp, I_OnPostHelp };
|
||||
ModuleManager::Attach(i, this, 9);
|
||||
ModuleManager::Attach(i, this, sizeof(i) / sizeof(Implementation));
|
||||
|
||||
ModuleManager::RegisterService(&this->mynickserv);
|
||||
}
|
||||
|
||||
@@ -207,7 +207,7 @@ class OSForbid : public Module
|
||||
this->SetAuthor("Anope");
|
||||
|
||||
Implementation i[] = { I_OnUserConnect, I_OnUserNickChange, I_OnJoinChannel, I_OnPreCommand, I_OnDatabaseWrite, I_OnDatabaseRead };
|
||||
ModuleManager::Attach(i, this, 6);
|
||||
ModuleManager::Attach(i, this, sizeof(i) / sizeof(Implementation));
|
||||
|
||||
ModuleManager::RegisterService(&this->forbidService);
|
||||
|
||||
|
||||
@@ -294,7 +294,7 @@ class OSIgnore : public Module
|
||||
ModuleManager::RegisterService(&commandosignore);
|
||||
|
||||
Implementation i[] = { I_OnDatabaseRead, I_OnDatabaseWrite, I_OnBotPrivmsg };
|
||||
ModuleManager::Attach(i, this, 3);
|
||||
ModuleManager::Attach(i, this, sizeof(i) / sizeof(Implementation));
|
||||
|
||||
ModuleManager::RegisterService(&this->osignoreservice);
|
||||
}
|
||||
|
||||
@@ -293,7 +293,7 @@ class OperServCore : public Module
|
||||
throw ModuleException("No bot named " + Config->OperServ);
|
||||
|
||||
Implementation i[] = { I_OnBotPrivmsg, I_OnServerQuit, I_OnUserModeSet, I_OnUserModeUnset, I_OnUserConnect, I_OnUserNickChange, I_OnPreHelp };
|
||||
ModuleManager::Attach(i, this, 7);
|
||||
ModuleManager::Attach(i, this, sizeof(i) / sizeof(Implementation));
|
||||
|
||||
ModuleManager::RegisterService(&sglines);
|
||||
ModuleManager::RegisterService(&szlines);
|
||||
|
||||
@@ -381,7 +381,7 @@ class OSNews : public Module
|
||||
ModuleManager::RegisterService(&commandosrandomnews);
|
||||
|
||||
Implementation i[] = { I_OnUserModeSet, I_OnUserConnect, I_OnDatabaseRead, I_OnDatabaseWrite };
|
||||
ModuleManager::Attach(i, this, 4);
|
||||
ModuleManager::Attach(i, this, sizeof(i) / sizeof(Implementation));
|
||||
|
||||
ModuleManager::RegisterService(&this->newsservice);
|
||||
}
|
||||
|
||||
@@ -174,7 +174,7 @@ class OSOper : public Module
|
||||
this->SetAuthor("Anope");
|
||||
|
||||
Implementation i[] = { I_OnDatabaseWrite, I_OnDatabaseRead };
|
||||
ModuleManager::Attach(i, this, 2);
|
||||
ModuleManager::Attach(i, this, sizeof(i) / sizeof(Implementation));
|
||||
|
||||
ModuleManager::RegisterService(&commandosoper);
|
||||
}
|
||||
|
||||
@@ -725,7 +725,7 @@ class OSSession : public Module
|
||||
this->SetAuthor("Anope");
|
||||
|
||||
Implementation i[] = { I_OnUserConnect, I_OnUserLogoff };
|
||||
ModuleManager::Attach(i, this, 2);
|
||||
ModuleManager::Attach(i, this, sizeof(i) / sizeof(Implementation));
|
||||
|
||||
ModuleManager::RegisterService(&commandossession);
|
||||
ModuleManager::RegisterService(&commandosexception);
|
||||
|
||||
@@ -21,7 +21,7 @@ class BSAutoAssign : public Module
|
||||
this->SetAuthor("Anope");
|
||||
|
||||
Implementation i[] = { I_OnChanRegistered, I_OnReload };
|
||||
ModuleManager::Attach(i, this, 2);
|
||||
ModuleManager::Attach(i, this, sizeof(i) / sizeof(Implementation));
|
||||
|
||||
this->OnReload();
|
||||
}
|
||||
|
||||
@@ -166,7 +166,7 @@ class CSEntryMessage : public Module
|
||||
this->SetAuthor("Anope");
|
||||
|
||||
Implementation i[] = { I_OnJoinChannel, I_OnReload, I_OnDatabaseReadMetadata, I_OnDatabaseWriteMetadata };
|
||||
ModuleManager::Attach(i, this, 4);
|
||||
ModuleManager::Attach(i, this, sizeof(i) / sizeof(Implementation));
|
||||
|
||||
ModuleManager::RegisterService(&commandentrymsg);
|
||||
|
||||
|
||||
@@ -60,7 +60,7 @@ class CSSetMisc : public Module
|
||||
this->SetAuthor("Anope");
|
||||
|
||||
Implementation i[] = { I_OnChanInfo, I_OnDatabaseWriteMetadata, I_OnDatabaseReadMetadata };
|
||||
ModuleManager::Attach(i, this, 3);
|
||||
ModuleManager::Attach(i, this, sizeof(i) / sizeof(Implementation));
|
||||
|
||||
ModuleManager::RegisterService(&this->commandcssetmisc);
|
||||
ModuleManager::RegisterService(&this->commandcssasetmisc);
|
||||
|
||||
@@ -312,7 +312,7 @@ class HSRequest : public Module
|
||||
ModuleManager::RegisterService(&commandhswaiting);
|
||||
|
||||
Implementation i[] = { I_OnDelNick, I_OnDatabaseRead, I_OnDatabaseWrite, I_OnReload };
|
||||
ModuleManager::Attach(i, this, 4);
|
||||
ModuleManager::Attach(i, this, sizeof(i) / sizeof(Implementation));
|
||||
|
||||
this->OnReload();
|
||||
}
|
||||
|
||||
@@ -118,7 +118,7 @@ class ModuleAsynchCommands : public Module, public Pipe, public AsynchCommandsSe
|
||||
main_mutex.Lock();
|
||||
|
||||
Implementation i[] = { I_OnDeleteObject, I_OnPreCommand };
|
||||
ModuleManager::Attach(i, this, 2);
|
||||
ModuleManager::Attach(i, this, sizeof(i) / sizeof(Implementation));
|
||||
|
||||
ModuleManager::SetPriority(this, PRIORITY_FIRST);
|
||||
|
||||
|
||||
@@ -87,7 +87,7 @@ class ModuleDNSBL : public Module
|
||||
this->SetAuthor("Anope");
|
||||
|
||||
Implementation i[] = { I_OnReload, I_OnUserConnect };
|
||||
ModuleManager::Attach(i, this, 2);
|
||||
ModuleManager::Attach(i, this, sizeof(i) / sizeof(Implementation));
|
||||
|
||||
OnReload();
|
||||
}
|
||||
|
||||
@@ -17,7 +17,7 @@ class HelpChannel : public Module
|
||||
this->SetAuthor("Anope");
|
||||
|
||||
Implementation i[] = { I_OnChannelModeSet, I_OnReload };
|
||||
ModuleManager::Attach(i, this, 2);
|
||||
ModuleManager::Attach(i, this, sizeof(i) / sizeof(Implementation));
|
||||
|
||||
OnReload();
|
||||
}
|
||||
|
||||
@@ -346,7 +346,7 @@ class ModuleLDAP : public Module, public Pipe
|
||||
me = this;
|
||||
|
||||
Implementation i[] = { I_OnReload, I_OnModuleUnload };
|
||||
ModuleManager::Attach(i, this, 2);
|
||||
ModuleManager::Attach(i, this, sizeof(i) / sizeof(Implementation));
|
||||
|
||||
OnReload();
|
||||
}
|
||||
|
||||
@@ -181,7 +181,7 @@ class NSIdentifyLDAP : public Module
|
||||
this->SetAuthor("Anope");
|
||||
|
||||
Implementation i[] = { I_OnReload, I_OnPreCommand, I_OnCheckAuthentication, I_OnNickIdentify, I_OnNickRegister };
|
||||
ModuleManager::Attach(i, this, 5);
|
||||
ModuleManager::Attach(i, this, sizeof(i) / sizeof(Implementation));
|
||||
ModuleManager::SetPriority(this, PRIORITY_FIRST);
|
||||
|
||||
OnReload();
|
||||
|
||||
@@ -90,7 +90,7 @@ class LDAPOper : public Module
|
||||
this->SetAuthor("Anope");
|
||||
|
||||
Implementation i[] = { I_OnReload, I_OnNickIdentify, I_OnDelCore };
|
||||
ModuleManager::Attach(i, this, 3);
|
||||
ModuleManager::Attach(i, this, sizeof(i) / sizeof(Implementation));
|
||||
|
||||
OnReload();
|
||||
}
|
||||
|
||||
@@ -15,7 +15,7 @@ class StatusUpdate : public Module
|
||||
this->SetAuthor("Anope");
|
||||
|
||||
Implementation i[] = { I_OnAccessAdd, I_OnAccessChange, I_OnAccessDel, I_OnAccessClear };
|
||||
ModuleManager::Attach(i, this, 4);
|
||||
ModuleManager::Attach(i, this, sizeof(i) / sizeof(Implementation));
|
||||
}
|
||||
|
||||
void OnAccessAdd(ChannelInfo *ci, User *u, ChanAccess *access)
|
||||
|
||||
@@ -232,7 +232,7 @@ class ModuleXMLRPC : public Module
|
||||
ModuleManager::RegisterService(&this->xmlrpcinterface);
|
||||
|
||||
Implementation i[] = { I_OnReload };
|
||||
ModuleManager::Attach(i, this, 1);
|
||||
ModuleManager::Attach(i, this, sizeof(i) / sizeof(Implementation));
|
||||
|
||||
OnReload();
|
||||
}
|
||||
|
||||
@@ -59,7 +59,7 @@ class NSMaxEmail : public Module
|
||||
this->SetAuthor("Anope");
|
||||
|
||||
Implementation i[] = { I_OnReload, I_OnPreCommand };
|
||||
ModuleManager::Attach(i, this, 2);
|
||||
ModuleManager::Attach(i, this, sizeof(i) / sizeof(Implementation));
|
||||
|
||||
OnReload();
|
||||
}
|
||||
|
||||
@@ -76,7 +76,7 @@ class NSSetMisc : public Module
|
||||
this->SetAuthor("Anope");
|
||||
|
||||
Implementation i[] = { I_OnNickInfo, I_OnDatabaseWriteMetadata, I_OnDatabaseReadMetadata };
|
||||
ModuleManager::Attach(i, this, 3);
|
||||
ModuleManager::Attach(i, this, sizeof(i) / sizeof(Implementation));
|
||||
|
||||
ModuleManager::RegisterService(&this->commandnssetmisc);
|
||||
ModuleManager::RegisterService(&this->commandnssasetmisc);
|
||||
|
||||
@@ -758,7 +758,7 @@ class ProtoInspIRCd : public Module
|
||||
Capab.SetFlag(CAPAB_NOQUIT);
|
||||
|
||||
Implementation i[] = { I_OnUserNickChange, I_OnServerSync };
|
||||
ModuleManager::Attach(i, this, 2);
|
||||
ModuleManager::Attach(i, this, sizeof(i) / sizeof(Implementation));
|
||||
|
||||
if (Config->Numeric.empty())
|
||||
throw ModuleException("This IRCd protocol requires a server id to be set in Anope's configuration.");
|
||||
|
||||
@@ -753,7 +753,7 @@ class ProtoInspIRCd : public Module
|
||||
Capab.SetFlag(CAPAB_NOQUIT);
|
||||
|
||||
Implementation i[] = { I_OnUserNickChange, I_OnServerSync };
|
||||
ModuleManager::Attach(i, this, 2);
|
||||
ModuleManager::Attach(i, this, sizeof(i) / sizeof(Implementation));
|
||||
|
||||
if (Config->Numeric.empty())
|
||||
throw ModuleException("This IRCd protocol requires a server id to be set in Anope's configuration.");
|
||||
|
||||
@@ -659,7 +659,7 @@ class ProtoPlexus : public Module
|
||||
this->AddModes();
|
||||
|
||||
Implementation i[] = { I_OnServerSync };
|
||||
ModuleManager::Attach(i, this, 1);
|
||||
ModuleManager::Attach(i, this, sizeof(i) / sizeof(Implementation));
|
||||
|
||||
if (Config->Numeric.empty())
|
||||
throw ModuleException("This IRCd protocol requires a server id to be set in Anope's configuration.");
|
||||
|
||||
@@ -591,7 +591,7 @@ class ProtoRatbox : public Module
|
||||
this->AddModes();
|
||||
|
||||
Implementation i[] = { I_OnServerSync };
|
||||
ModuleManager::Attach(i, this, 1);
|
||||
ModuleManager::Attach(i, this, sizeof(i) / sizeof(Implementation));
|
||||
|
||||
if (Config->Numeric.empty())
|
||||
throw ModuleException("This IRCd protocol requires a server id to be set in Anope's configuration.");
|
||||
|
||||
Reference in New Issue
Block a user