From ed920366d69801bab7fc276fa24296b7f1264ff2 Mon Sep 17 00:00:00 2001 From: Adam Date: Sat, 27 Dec 2014 13:13:11 -0500 Subject: Remove now unnecessary eventhook constructor calls in module init lists --- modules/commands/bs_assign.cpp | 2 -- modules/commands/bs_kick.cpp | 2 -- modules/commands/bs_set.cpp | 1 - modules/commands/cs_access.cpp | 1 - modules/commands/cs_akick.cpp | 1 - modules/commands/cs_entrymsg.cpp | 1 - modules/commands/cs_list.cpp | 1 - modules/commands/cs_log.cpp | 2 -- modules/commands/cs_mode.cpp | 3 --- modules/commands/cs_seen.cpp | 7 ------- modules/commands/cs_set.cpp | 12 ------------ modules/commands/cs_set_misc.cpp | 1 - modules/commands/cs_suspend.cpp | 4 ---- modules/commands/cs_topic.cpp | 3 --- modules/commands/greet.cpp | 3 --- modules/commands/hs_group.cpp | 2 -- modules/commands/ns_access.cpp | 1 - modules/commands/ns_ajoin.cpp | 1 - modules/commands/ns_cert.cpp | 2 -- modules/commands/ns_list.cpp | 1 - modules/commands/ns_recover.cpp | 2 -- modules/commands/ns_register.cpp | 2 -- modules/commands/ns_resetpass.cpp | 1 - modules/commands/ns_set.cpp | 7 ------- modules/commands/ns_set_misc.cpp | 1 - modules/commands/ns_suspend.cpp | 3 --- modules/commands/os_defcon.cpp | 6 ------ modules/commands/os_dns.cpp | 5 ----- modules/commands/os_forbid.cpp | 4 ---- modules/commands/os_ignore.cpp | 1 - modules/commands/os_info.cpp | 2 -- modules/commands/os_login.cpp | 1 - modules/commands/os_news.cpp | 2 -- modules/commands/os_noop.cpp | 1 - 34 files changed, 89 deletions(-) (limited to 'modules/commands') 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() - , EventHook() , 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() - , EventHook() , 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() , 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() , 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() , 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() , 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() , 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() - , EventHook() , 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() - , EventHook() - , EventHook() , 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() - , EventHook() - , EventHook() - , EventHook() - , EventHook() - , EventHook() - , EventHook() // , 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() - , EventHook() - , EventHook() - , EventHook() - , EventHook() - , EventHook() - , EventHook() - , EventHook() - , EventHook() - , EventHook() - , EventHook() - , EventHook() , 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() , 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() - , EventHook() - , EventHook() - , EventHook() , 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() - , EventHook() - , EventHook() , 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() - , EventHook() - , EventHook() , 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() - , EventHook() , 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() , 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() , 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() - , EventHook() , 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() , 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() - , EventHook() , 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() - , EventHook() , 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() , commandnsresetpass(this), reset(this, "reset") { if (!Config->GetBlock("mail")->Get("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() - , EventHook() - , EventHook() - , EventHook() - , EventHook() - , EventHook() - , EventHook() , 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 Anope::string &creator) : Module(modname, creator, VENDOR) - , EventHook() , commandnssetmisc(this) , commandnssasetmisc(this) , type(this) diff --git a/modules/commands/ns_suspend.cpp b/modules/commands/ns_suspend.cpp index 9019b5f7d..83b2e9119 100644 --- a/modules/commands/ns_suspend.cpp +++ b/modules/commands/ns_suspend.cpp @@ -272,9 +272,6 @@ class NSSuspend : public Module public: NSSuspend(const Anope::string &modname, const Anope::string &creator) : Module(modname, creator, VENDOR) - , EventHook() - , EventHook() - , EventHook() , commandnssuspend(this, onnicksuspend) , commandnsunsuspend(this, onnickunsuspend) , onnicksuspend(this) diff --git a/modules/commands/os_defcon.cpp b/modules/commands/os_defcon.cpp index ba893a960..498af9a8a 100644 --- a/modules/commands/os_defcon.cpp +++ b/modules/commands/os_defcon.cpp @@ -337,12 +337,6 @@ class OSDefcon : public Module public: OSDefcon(const Anope::string &modname, const Anope::string &creator) : Module(modname, creator, VENDOR) - , EventHook() - , EventHook() - , EventHook() - , EventHook() - , EventHook() - , EventHook() , session_service("SessionService", "session") , akills("XLineManager", "xlinemanager/sgline") , commandosdefcon(this, ondefconlevel) diff --git a/modules/commands/os_dns.cpp b/modules/commands/os_dns.cpp index 2d68583e2..a231a1e74 100644 --- a/modules/commands/os_dns.cpp +++ b/modules/commands/os_dns.cpp @@ -802,11 +802,6 @@ class ModuleDNS : public Module public: ModuleDNS(const Anope::string &modname, const Anope::string &creator) : Module(modname, creator, EXTRA | VENDOR) - , EventHook() - , EventHook() - , EventHook() - , EventHook() - , EventHook() , zonetype(this) , servertype(this) , zonemembtype(this) diff --git a/modules/commands/os_forbid.cpp b/modules/commands/os_forbid.cpp index be7f908bd..0a7b1c209 100644 --- a/modules/commands/os_forbid.cpp +++ b/modules/commands/os_forbid.cpp @@ -460,10 +460,6 @@ class OSForbid : public Module public: OSForbid(const Anope::string &modname, const Anope::string &creator) : Module(modname, creator, VENDOR) - , EventHook() - , EventHook() - , EventHook() - , EventHook() , forbid_service(this) , type(this) , commandosforbid(this) diff --git a/modules/commands/os_ignore.cpp b/modules/commands/os_ignore.cpp index 03632f84d..d9563cc29 100644 --- a/modules/commands/os_ignore.cpp +++ b/modules/commands/os_ignore.cpp @@ -374,7 +374,6 @@ class OSIgnore : public Module public: OSIgnore(const Anope::string &modname, const Anope::string &creator) : Module(modname, creator, VENDOR) - , EventHook() , ignoretype(this) , osignoreservice(this) , commandosignore(this) diff --git a/modules/commands/os_info.cpp b/modules/commands/os_info.cpp index 4342791a7..7b292d4b2 100644 --- a/modules/commands/os_info.cpp +++ b/modules/commands/os_info.cpp @@ -241,8 +241,6 @@ class OSInfo : public Module public: OSInfo(const Anope::string &modname, const Anope::string &creator) : Module(modname, creator, VENDOR) - , EventHook() - , EventHook() , commandosinfo(this) , oinfotype(this) { diff --git a/modules/commands/os_login.cpp b/modules/commands/os_login.cpp index f09d794b2..650c48e3d 100644 --- a/modules/commands/os_login.cpp +++ b/modules/commands/os_login.cpp @@ -125,7 +125,6 @@ class OSLogin : public Module public: OSLogin(const Anope::string &modname, const Anope::string &creator) : Module(modname, creator, VENDOR) - , EventHook() , commandoslogin(this) , commandoslogout(this) , os_login(this, "os_login") diff --git a/modules/commands/os_news.cpp b/modules/commands/os_news.cpp index ecee31520..03a1e3a57 100644 --- a/modules/commands/os_news.cpp +++ b/modules/commands/os_news.cpp @@ -426,8 +426,6 @@ class OSNews : public Module public: OSNews(const Anope::string &modname, const Anope::string &creator) : Module(modname, creator, VENDOR) - , EventHook() - , EventHook() , newsitemtype(this) , commandoslogonnews(this) , commandosopernews(this) diff --git a/modules/commands/os_noop.cpp b/modules/commands/os_noop.cpp index 14cf8b8c4..0a4fe845e 100644 --- a/modules/commands/os_noop.cpp +++ b/modules/commands/os_noop.cpp @@ -77,7 +77,6 @@ class OSNOOP : public Module public: OSNOOP(const Anope::string &modname, const Anope::string &creator) : Module(modname, creator, VENDOR) - , EventHook() , commandosnoop(this) , noop(this, "noop") { -- cgit