summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2014-12-27 13:13:11 -0500
committerAdam <Adam@anope.org>2014-12-27 13:13:11 -0500
commited920366d69801bab7fc276fa24296b7f1264ff2 (patch)
treef44e016ae383f7ddacbb466dde2f7fc931eb2f63 /modules
parent50acad5ce451b44b469890fe46ce14c7ffd031ca (diff)
Remove now unnecessary eventhook constructor calls in module init lists
Diffstat (limited to 'modules')
-rw-r--r--modules/bs_autoassign.cpp1
-rw-r--r--modules/commands/bs_assign.cpp2
-rw-r--r--modules/commands/bs_kick.cpp2
-rw-r--r--modules/commands/bs_set.cpp1
-rw-r--r--modules/commands/cs_access.cpp1
-rw-r--r--modules/commands/cs_akick.cpp1
-rw-r--r--modules/commands/cs_entrymsg.cpp1
-rw-r--r--modules/commands/cs_list.cpp1
-rw-r--r--modules/commands/cs_log.cpp2
-rw-r--r--modules/commands/cs_mode.cpp3
-rw-r--r--modules/commands/cs_seen.cpp7
-rw-r--r--modules/commands/cs_set.cpp12
-rw-r--r--modules/commands/cs_set_misc.cpp1
-rw-r--r--modules/commands/cs_suspend.cpp4
-rw-r--r--modules/commands/cs_topic.cpp3
-rw-r--r--modules/commands/greet.cpp3
-rw-r--r--modules/commands/hs_group.cpp2
-rw-r--r--modules/commands/ns_access.cpp1
-rw-r--r--modules/commands/ns_ajoin.cpp1
-rw-r--r--modules/commands/ns_cert.cpp2
-rw-r--r--modules/commands/ns_list.cpp1
-rw-r--r--modules/commands/ns_recover.cpp2
-rw-r--r--modules/commands/ns_register.cpp2
-rw-r--r--modules/commands/ns_resetpass.cpp1
-rw-r--r--modules/commands/ns_set.cpp7
-rw-r--r--modules/commands/ns_set_misc.cpp1
-rw-r--r--modules/commands/ns_suspend.cpp3
-rw-r--r--modules/commands/os_defcon.cpp6
-rw-r--r--modules/commands/os_dns.cpp5
-rw-r--r--modules/commands/os_forbid.cpp4
-rw-r--r--modules/commands/os_ignore.cpp1
-rw-r--r--modules/commands/os_info.cpp2
-rw-r--r--modules/commands/os_login.cpp1
-rw-r--r--modules/commands/os_news.cpp2
-rw-r--r--modules/commands/os_noop.cpp1
-rw-r--r--modules/cs_statusupdate.cpp2
-rw-r--r--modules/database/db_flatfile.cpp2
-rw-r--r--modules/database/db_old.cpp2
-rw-r--r--modules/database/db_redis.cpp2
-rw-r--r--modules/database/db_sql.cpp1
-rw-r--r--modules/encryption/enc_bcrypt.cpp2
-rw-r--r--modules/encryption/enc_md5.cpp2
-rw-r--r--modules/encryption/enc_none.cpp3
-rw-r--r--modules/encryption/enc_old.cpp2
-rw-r--r--modules/encryption/enc_sha1.cpp2
-rw-r--r--modules/encryption/enc_sha256.cpp2
-rw-r--r--modules/extra/m_ldap.cpp1
-rw-r--r--modules/extra/m_ldap_oper.cpp2
-rw-r--r--modules/extra/m_mysql.cpp1
-rw-r--r--modules/extra/m_sql_authentication.cpp2
-rw-r--r--modules/extra/m_sql_log.cpp1
-rw-r--r--modules/extra/m_ssl_gnutls.cpp1
-rw-r--r--modules/extra/m_ssl_openssl.cpp1
-rw-r--r--modules/fantasy.cpp2
-rw-r--r--modules/m_dns.cpp1
-rw-r--r--modules/m_dnsbl.cpp1
-rw-r--r--modules/m_helpchan.cpp1
-rw-r--r--modules/m_httpd.cpp1
-rw-r--r--modules/m_proxyscan.cpp1
-rw-r--r--modules/m_redis.cpp1
-rw-r--r--modules/ns_maxemail.cpp1
-rw-r--r--modules/protocol/bahamut.cpp1
-rw-r--r--modules/protocol/charybdis.cpp2
-rw-r--r--modules/protocol/hybrid.cpp1
-rw-r--r--modules/protocol/inspircd20.cpp7
-rw-r--r--modules/protocol/ngircd.cpp1
-rw-r--r--modules/pseudoclients/botserv/botserv.cpp9
-rw-r--r--modules/pseudoclients/chanserv/chanserv.cpp19
-rw-r--r--modules/pseudoclients/global.cpp4
-rw-r--r--modules/pseudoclients/hostserv.cpp5
-rw-r--r--modules/pseudoclients/memoserv/memoserv.cpp8
-rw-r--r--modules/pseudoclients/nickserv/nickserv.cpp20
-rw-r--r--modules/pseudoclients/operserv.cpp9
73 files changed, 0 insertions, 216 deletions
diff --git a/modules/bs_autoassign.cpp b/modules/bs_autoassign.cpp
index 911ba2c76..8978499ed 100644
--- a/modules/bs_autoassign.cpp
+++ b/modules/bs_autoassign.cpp
@@ -14,7 +14,6 @@ class BSAutoAssign : public Module
{
public:
BSAutoAssign(const Anope::string &modname, const Anope::string &creator) : Module(modname, creator, VENDOR)
- , EventHook<Event::ChanRegistered>()
{
}
diff --git a/modules/commands/bs_assign.cpp b/modules/commands/bs_assign.cpp
index 350aa9c00..4312a9254 100644
--- a/modules/commands/bs_assign.cpp
+++ b/modules/commands/bs_assign.cpp
@@ -227,8 +227,6 @@ class BSAssign : public Module
public:
BSAssign(const Anope::string &modname, const Anope::string &creator) : Module(modname, creator, VENDOR)
- , EventHook<Event::Invite>()
- , EventHook<Event::ServiceBotEvent>()
, nobot(this, botinfo, "BS_NOBOT")
diff --git a/modules/commands/bs_kick.cpp b/modules/commands/bs_kick.cpp
index e7b4738cd..70ed5b2ad 100644
--- a/modules/commands/bs_kick.cpp
+++ b/modules/commands/bs_kick.cpp
@@ -1279,8 +1279,6 @@ class BSKick : public Module
public:
BSKick(const Anope::string &modname, const Anope::string &creator) : Module(modname, creator, VENDOR)
- , EventHook<Event::ServiceBotEvent>()
- , EventHook<Event::Privmsg>()
, bandata(this, "bandata")
, userdata(this, "userdata")
diff --git a/modules/commands/bs_set.cpp b/modules/commands/bs_set.cpp
index 58015ba01..2abea91b2 100644
--- a/modules/commands/bs_set.cpp
+++ b/modules/commands/bs_set.cpp
@@ -194,7 +194,6 @@ class BSSet : public Module
public:
BSSet(const Anope::string &modname, const Anope::string &creator) : Module(modname, creator, VENDOR)
- , EventHook<Event::BotBan>()
, commandbsset(this)
, commandbssetbanexpire(this)
, commandbssetprivate(this)
diff --git a/modules/commands/cs_access.cpp b/modules/commands/cs_access.cpp
index 7e9c47993..ae4a291a0 100644
--- a/modules/commands/cs_access.cpp
+++ b/modules/commands/cs_access.cpp
@@ -891,7 +891,6 @@ class CSAccess : public Module
public:
CSAccess(const Anope::string &modname, const Anope::string &creator) : Module(modname, creator, VENDOR)
- , EventHook<Event::GroupCheckPriv>()
, commandcsaccess(this)
, commandcslevels(this, onlevelchange)
, onlevelchange(this)
diff --git a/modules/commands/cs_akick.cpp b/modules/commands/cs_akick.cpp
index e18ead579..08da7537f 100644
--- a/modules/commands/cs_akick.cpp
+++ b/modules/commands/cs_akick.cpp
@@ -668,7 +668,6 @@ class CSAKick : public Module
public:
CSAKick(const Anope::string &modname, const Anope::string &creator) : Module(modname, creator, VENDOR)
- , EventHook<Event::CheckKick>()
, commandcsakick(this, akickevents)
, akickevents(this)
, akick_type(this)
diff --git a/modules/commands/cs_entrymsg.cpp b/modules/commands/cs_entrymsg.cpp
index 51654ea84..4a646b3b3 100644
--- a/modules/commands/cs_entrymsg.cpp
+++ b/modules/commands/cs_entrymsg.cpp
@@ -254,7 +254,6 @@ class CSEntryMessage : public Module
public:
CSEntryMessage(const Anope::string &modname, const Anope::string &creator) : Module(modname, creator, VENDOR)
- , EventHook<Event::JoinChannel>()
, commandentrymsg(this)
, entrymsg_type(this)
{
diff --git a/modules/commands/cs_list.cpp b/modules/commands/cs_list.cpp
index e3efaa547..5a4c58bff 100644
--- a/modules/commands/cs_list.cpp
+++ b/modules/commands/cs_list.cpp
@@ -244,7 +244,6 @@ class CSList : public Module
public:
CSList(const Anope::string &modname, const Anope::string &creator) : Module(modname, creator, VENDOR)
- , EventHook<Event::ChanInfo>()
, commandcslist(this)
, commandcssetprivate(this)
, priv(this, "CS_PRIVATE")
diff --git a/modules/commands/cs_log.cpp b/modules/commands/cs_log.cpp
index f8624ce76..6a90115f5 100644
--- a/modules/commands/cs_log.cpp
+++ b/modules/commands/cs_log.cpp
@@ -345,8 +345,6 @@ class CSLog : public Module
public:
CSLog(const Anope::string &modname, const Anope::string &creator) : Module(modname, creator, VENDOR)
- , EventHook<Event::ChanRegistered>()
- , EventHook<Event::Log>()
, commandcslog(this)
, logtype(this)
{
diff --git a/modules/commands/cs_mode.cpp b/modules/commands/cs_mode.cpp
index b525f51a5..d0dea2625 100644
--- a/modules/commands/cs_mode.cpp
+++ b/modules/commands/cs_mode.cpp
@@ -861,9 +861,6 @@ class CSMode : public Module
public:
CSMode(const Anope::string &modname, const Anope::string &creator) : Module(modname, creator, VENDOR)
- , EventHook<Event::CheckModes>()
- , EventHook<Event::ChanRegistered>()
- , EventHook<Event::ChanInfo>()
, commandcsmode(this)
, commandcsmodes(this)
, modelock(this)
diff --git a/modules/commands/cs_seen.cpp b/modules/commands/cs_seen.cpp
index 0474b8e26..b46b2efc5 100644
--- a/modules/commands/cs_seen.cpp
+++ b/modules/commands/cs_seen.cpp
@@ -378,13 +378,6 @@ class CSSeen : public Module
public:
CSSeen(const Anope::string &modname, const Anope::string &creator) : Module(modname, creator, VENDOR)
- , EventHook<Event::ExpireTick>()
- , EventHook<Event::UserConnect>()
- , EventHook<Event::UserNickChange>()
- , EventHook<Event::UserQuit>()
- , EventHook<Event::JoinChannel>()
- , EventHook<Event::PartChannel>()
- , EventHook<Event::PreUserKicked>()
// , seeninfo_type("SeenInfo", SeenInfo::Unserialize)
, commandseen(this)
, commandosseen(this)
diff --git a/modules/commands/cs_set.cpp b/modules/commands/cs_set.cpp
index 9cf58c029..2f0e2dd4f 100644
--- a/modules/commands/cs_set.cpp
+++ b/modules/commands/cs_set.cpp
@@ -1101,18 +1101,6 @@ class CSSet : public Module
public:
CSSet(const Anope::string &modname, const Anope::string &creator) : Module(modname, creator, VENDOR)
- , EventHook<Event::CreateChan>()
- , EventHook<Event::ChannelCreate>()
- , EventHook<Event::ChannelSync>()
- , EventHook<Event::CheckKick>()
- , EventHook<Event::DelChan>()
- , EventHook<Event::ChannelModeSet>()
- , EventHook<Event::ChannelModeUnset>()
- , EventHook<Event::CheckDelete>()
- , EventHook<Event::JoinChannel>()
- , EventHook<Event::SetCorrectModes>()
- , EventHook<ChanServ::Event::PreChanExpire>()
- , EventHook<Event::ChanInfo>()
, noautoop(this, ChanServ::channel, "NOAUTOOP")
, peace(this, ChanServ::channel, "PEACE")
diff --git a/modules/commands/cs_set_misc.cpp b/modules/commands/cs_set_misc.cpp
index 51cf44b79..7af347087 100644
--- a/modules/commands/cs_set_misc.cpp
+++ b/modules/commands/cs_set_misc.cpp
@@ -175,7 +175,6 @@ class CSSetMisc : public Module
public:
CSSetMisc(const Anope::string &modname, const Anope::string &creator) : Module(modname, creator, VENDOR)
- , EventHook<Event::ChanInfo>()
, commandcssetmisc(this)
, type(this)
{
diff --git a/modules/commands/cs_suspend.cpp b/modules/commands/cs_suspend.cpp
index 6fd234014..58b4617f0 100644
--- a/modules/commands/cs_suspend.cpp
+++ b/modules/commands/cs_suspend.cpp
@@ -268,10 +268,6 @@ class CSSuspend : public Module
public:
CSSuspend(const Anope::string &modname, const Anope::string &creator) : Module(modname, creator, VENDOR)
- , EventHook<Event::ChanInfo>()
- , EventHook<ChanServ::Event::PreChanExpire>()
- , EventHook<Event::CheckKick>()
- , EventHook<Event::ChanDrop>()
, commandcssuspend(this, onchansuspend)
, commandcsunsuspend(this, onchanunsuspend)
, onchansuspend(this)
diff --git a/modules/commands/cs_topic.cpp b/modules/commands/cs_topic.cpp
index 5fd40bdf0..49a5a0043 100644
--- a/modules/commands/cs_topic.cpp
+++ b/modules/commands/cs_topic.cpp
@@ -211,9 +211,6 @@ class CSTopic : public Module
public:
CSTopic(const Anope::string &modname, const Anope::string &creator) : Module(modname, creator, VENDOR)
- , EventHook<Event::ChannelSync>()
- , EventHook<Event::TopicUpdated>()
- , EventHook<Event::ChanInfo>()
, commandcstopic(this)
, commandcssetkeeptopic(this)
, topiclock(this, "TOPICLOCK")
diff --git a/modules/commands/greet.cpp b/modules/commands/greet.cpp
index 9134876cc..ebc8c1612 100644
--- a/modules/commands/greet.cpp
+++ b/modules/commands/greet.cpp
@@ -170,9 +170,6 @@ class Greet : public Module
public:
Greet(const Anope::string &modname, const Anope::string &creator) : Module(modname, creator, VENDOR)
- , EventHook<Event::JoinChannel>()
- , EventHook<Event::NickInfo>()
- , EventHook<Event::ServiceBotEvent>()
, bs_greet(this, ChanServ::channel, "BS_GREET")
, ns_greet(this, NickServ::account, "greet")
, commandbssetgreet(this)
diff --git a/modules/commands/hs_group.cpp b/modules/commands/hs_group.cpp
index 5635b8ce6..8a7a208a6 100644
--- a/modules/commands/hs_group.cpp
+++ b/modules/commands/hs_group.cpp
@@ -84,8 +84,6 @@ class HSGroup : public Module
public:
HSGroup(const Anope::string &modname, const Anope::string &creator) : Module(modname, creator, VENDOR)
- , EventHook<Event::SetVhost>()
- , EventHook<Event::NickGroup>()
, commandhsgroup(this)
{
}
diff --git a/modules/commands/ns_access.cpp b/modules/commands/ns_access.cpp
index 7b727452a..ba2116ac9 100644
--- a/modules/commands/ns_access.cpp
+++ b/modules/commands/ns_access.cpp
@@ -236,7 +236,6 @@ class NSAccess : public Module
public:
NSAccess(const Anope::string &modname, const Anope::string &creator) : Module(modname, creator, VENDOR)
- , EventHook<NickServ::Event::NickRegister>()
, commandnsaccess(this)
, nick_type(this)
{
diff --git a/modules/commands/ns_ajoin.cpp b/modules/commands/ns_ajoin.cpp
index 7aca41b3e..135beb403 100644
--- a/modules/commands/ns_ajoin.cpp
+++ b/modules/commands/ns_ajoin.cpp
@@ -282,7 +282,6 @@ class NSAJoin : public Module
public:
NSAJoin(const Anope::string &modname, const Anope::string &creator) : Module(modname, creator, VENDOR)
- , EventHook<Event::UserLogin>()
, commandnsajoin(this)
, ajtype(this)
{
diff --git a/modules/commands/ns_cert.cpp b/modules/commands/ns_cert.cpp
index a241f9c97..fc87f8cb0 100644
--- a/modules/commands/ns_cert.cpp
+++ b/modules/commands/ns_cert.cpp
@@ -313,8 +313,6 @@ class NSCert : public Module
public:
NSCert(const Anope::string &modname, const Anope::string &creator) : Module(modname, creator, VENDOR)
- , EventHook<Event::Fingerprint>()
- , EventHook<NickServ::Event::NickValidate>()
, commandnscert(this)
, cs(this)
, onnickservevents(this)
diff --git a/modules/commands/ns_list.cpp b/modules/commands/ns_list.cpp
index 3307f6fed..2820326d2 100644
--- a/modules/commands/ns_list.cpp
+++ b/modules/commands/ns_list.cpp
@@ -270,7 +270,6 @@ class NSList : public Module
public:
NSList(const Anope::string &modname, const Anope::string &creator) : Module(modname, creator, VENDOR)
- , EventHook<Event::NickInfo>()
, commandnslist(this)
, commandnssetprivate(this)
, commandnssasetprivate(this)
diff --git a/modules/commands/ns_recover.cpp b/modules/commands/ns_recover.cpp
index 21d11124f..64daabf1c 100644
--- a/modules/commands/ns_recover.cpp
+++ b/modules/commands/ns_recover.cpp
@@ -202,8 +202,6 @@ class NSRecover : public Module
public:
NSRecover(const Anope::string &modname, const Anope::string &creator) : Module(modname, creator, VENDOR)
- , EventHook<Event::UserNickChange>()
- , EventHook<Event::JoinChannel>()
, commandnsrecover(this)
, recover(this, "recover")
{
diff --git a/modules/commands/ns_register.cpp b/modules/commands/ns_register.cpp
index b13a945a6..8feb979be 100644
--- a/modules/commands/ns_register.cpp
+++ b/modules/commands/ns_register.cpp
@@ -350,8 +350,6 @@ class NSRegister : public Module
public:
NSRegister(const Anope::string &modname, const Anope::string &creator) : Module(modname, creator, VENDOR)
- , EventHook<Event::NickIdentify>()
- , EventHook<NickServ::Event::PreNickExpire>()
, commandnsregister(this)
, commandnsconfirm(this)
, commandnsrsend(this)
diff --git a/modules/commands/ns_resetpass.cpp b/modules/commands/ns_resetpass.cpp
index 2680c9b42..3be5a4c06 100644
--- a/modules/commands/ns_resetpass.cpp
+++ b/modules/commands/ns_resetpass.cpp
@@ -67,7 +67,6 @@ class NSResetPass : public Module
public:
NSResetPass(const Anope::string &modname, const Anope::string &creator) : Module(modname, creator, VENDOR)
- , EventHook<Event::PreCommand>()
, commandnsresetpass(this), reset(this, "reset")
{
if (!Config->GetBlock("mail")->Get<bool>("usemail"))
diff --git a/modules/commands/ns_set.cpp b/modules/commands/ns_set.cpp
index b04687b7b..b130ba1fa 100644
--- a/modules/commands/ns_set.cpp
+++ b/modules/commands/ns_set.cpp
@@ -1107,13 +1107,6 @@ class NSSet : public Module
public:
NSSet(const Anope::string &modname, const Anope::string &creator) : Module(modname, creator, VENDOR)
- , EventHook<Event::PreCommand>()
- , EventHook<Event::SetCorrectModes>()
- , EventHook<NickServ::Event::PreNickExpire>()
- , EventHook<Event::NickInfo>()
- , EventHook<Event::UserModeSet>()
- , EventHook<Event::UserModeUnset>()
- , EventHook<Event::UserLogin>()
, commandnsset(this)
, commandnssaset(this)
, commandnssetautoop(this)
diff --git a/modules/commands/ns_set_misc.cpp b/modules/commands/ns_set_misc.cpp
index eb94c0f13..5d03797b1 100644
--- a/modules/commands/ns_set_misc.cpp
+++ b/modules/commands/ns_set_misc.cpp
@@ -186,7 +186,6 @@ class NSSetMisc : public Module
public:
NSSetMisc(const Anope::string &modname, const