summaryrefslogtreecommitdiff
path: root/src/modules
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules')
-rw-r--r--src/modules/m_alias.cpp3
-rw-r--r--src/modules/m_alltime.cpp1
-rw-r--r--src/modules/m_antibear.cpp3
-rw-r--r--src/modules/m_antibottler.cpp3
-rw-r--r--src/modules/m_auditorium.cpp3
-rw-r--r--src/modules/m_banexception.cpp4
-rw-r--r--src/modules/m_banredirect.cpp4
-rw-r--r--src/modules/m_blockamsg.cpp4
-rw-r--r--src/modules/m_blockcaps.cpp4
-rw-r--r--src/modules/m_blockcolor.cpp3
-rw-r--r--src/modules/m_botmode.cpp6
-rw-r--r--src/modules/m_cban.cpp5
-rw-r--r--src/modules/m_censor.cpp3
-rw-r--r--src/modules/m_cgiirc.cpp4
-rw-r--r--src/modules/m_chancreate.cpp3
-rw-r--r--src/modules/m_chanfilter.cpp4
-rw-r--r--src/modules/m_chanprotect.cpp3
-rw-r--r--src/modules/m_check.cpp3
-rw-r--r--src/modules/m_chghost.cpp3
-rw-r--r--src/modules/m_chgident.cpp2
-rw-r--r--src/modules/m_chgname.cpp2
-rw-r--r--src/modules/m_cloaking.cpp3
-rw-r--r--src/modules/m_clones.cpp3
-rw-r--r--src/modules/m_close.cpp3
-rw-r--r--src/modules/m_commonchans.cpp6
-rw-r--r--src/modules/m_conn_join.cpp3
-rw-r--r--src/modules/m_conn_umodes.cpp3
-rw-r--r--src/modules/m_conn_waitpong.cpp3
-rw-r--r--src/modules/m_connflood.cpp2
-rw-r--r--src/modules/m_customtitle.cpp3
-rw-r--r--src/modules/m_cycle.cpp3
-rw-r--r--src/modules/m_dccallow.cpp3
-rw-r--r--src/modules/m_deaf.cpp3
-rw-r--r--src/modules/m_denychans.cpp4
-rw-r--r--src/modules/m_devoice.cpp3
-rw-r--r--src/modules/m_dnsbl.cpp4
-rw-r--r--src/modules/m_filter.cpp3
-rw-r--r--src/modules/m_foobar.cpp3
-rw-r--r--src/modules/m_globalload.cpp3
-rw-r--r--src/modules/m_globops.cpp3
-rw-r--r--src/modules/m_helpop.cpp3
-rw-r--r--src/modules/m_hidechans.cpp3
-rw-r--r--src/modules/m_hideoper.cpp3
-rw-r--r--src/modules/m_hostchange.cpp3
-rw-r--r--src/modules/m_httpd.cpp2
-rw-r--r--src/modules/m_httpd_stats.cpp5
-rw-r--r--src/modules/m_ident.cpp3
-rw-r--r--src/modules/m_invisible.cpp3
-rw-r--r--src/modules/m_inviteexception.cpp4
-rw-r--r--src/modules/m_joinflood.cpp3
-rw-r--r--src/modules/m_jumpserver.cpp3
-rw-r--r--src/modules/m_kicknorejoin.cpp4
-rw-r--r--src/modules/m_knock.cpp3
-rw-r--r--src/modules/m_lockserv.cpp3
-rw-r--r--src/modules/m_md5.cpp3
-rw-r--r--src/modules/m_messageflood.cpp3
-rw-r--r--src/modules/m_namesx.cpp3
-rw-r--r--src/modules/m_nickflood.cpp3
-rw-r--r--src/modules/m_nicklock.cpp4
-rw-r--r--src/modules/m_noctcp.cpp3
-rw-r--r--src/modules/m_noinvite.cpp3
-rw-r--r--src/modules/m_nokicks.cpp3
-rw-r--r--src/modules/m_nonicks.cpp5
-rw-r--r--src/modules/m_nonotice.cpp3
-rw-r--r--src/modules/m_oper_hash.cpp3
-rw-r--r--src/modules/m_operchans.cpp3
-rw-r--r--src/modules/m_operjoin.cpp3
-rw-r--r--src/modules/m_operlevels.cpp3
-rw-r--r--src/modules/m_operlog.cpp5
-rw-r--r--src/modules/m_opermodes.cpp3
-rw-r--r--src/modules/m_opermotd.cpp3
-rw-r--r--src/modules/m_override.cpp4
-rw-r--r--src/modules/m_randquote.cpp3
-rw-r--r--src/modules/m_redirect.cpp3
-rw-r--r--src/modules/m_regonlycreate.cpp3
-rw-r--r--src/modules/m_remove.cpp5
-rw-r--r--src/modules/m_restrictbanned.cpp3
-rw-r--r--src/modules/m_restrictchans.cpp3
-rw-r--r--src/modules/m_restrictmsg.cpp3
-rw-r--r--src/modules/m_rpc_json.cpp4
-rw-r--r--src/modules/m_safelist.cpp5
-rw-r--r--src/modules/m_sajoin.cpp3
-rw-r--r--src/modules/m_samode.cpp3
-rw-r--r--src/modules/m_sanick.cpp3
-rw-r--r--src/modules/m_sapart.cpp3
-rw-r--r--src/modules/m_saquit.cpp3
-rw-r--r--src/modules/m_securelist.cpp5
-rw-r--r--src/modules/m_seenicks.cpp5
-rw-r--r--src/modules/m_services.cpp3
-rw-r--r--src/modules/m_services_account.cpp4
-rw-r--r--src/modules/m_sethost.cpp3
-rw-r--r--src/modules/m_setident.cpp2
-rw-r--r--src/modules/m_setidle.cpp3
-rw-r--r--src/modules/m_setname.cpp3
-rw-r--r--src/modules/m_sha256.cpp3
-rw-r--r--src/modules/m_showwhois.cpp3
-rw-r--r--src/modules/m_silence.cpp4
-rw-r--r--src/modules/m_silence_ext.cpp4
-rw-r--r--src/modules/m_spy.cpp8
-rw-r--r--src/modules/m_ssl_dummy.cpp2
-rw-r--r--src/modules/m_sslmodes.cpp3
-rw-r--r--src/modules/m_stripcolor.cpp3
-rw-r--r--src/modules/m_svshold.cpp5
-rw-r--r--src/modules/m_swhois.cpp3
-rw-r--r--src/modules/m_taxonomy.cpp3
-rw-r--r--src/modules/m_testcommand.cpp3
-rw-r--r--src/modules/m_timedbans.cpp5
-rw-r--r--src/modules/m_tline.cpp3
-rw-r--r--src/modules/m_uhnames.cpp3
-rw-r--r--src/modules/m_uninvite.cpp4
-rw-r--r--src/modules/m_userip.cpp3
-rw-r--r--src/modules/m_vhost.cpp3
-rw-r--r--src/modules/m_watch.cpp4
-rw-r--r--src/modules/m_xmlsocket.cpp4
114 files changed, 4 insertions, 380 deletions
diff --git a/src/modules/m_alias.cpp b/src/modules/m_alias.cpp
index 2bf4440b0..7f09de134 100644
--- a/src/modules/m_alias.cpp
+++ b/src/modules/m_alias.cpp
@@ -12,9 +12,6 @@
*/
#include "inspircd.h"
-#include "users.h"
-#include "channels.h"
-#include "modules.h"
#include "wildcard.h"
/* $ModDesc: Provides aliases of commands. */
diff --git a/src/modules/m_alltime.cpp b/src/modules/m_alltime.cpp
index 97ab6a3fe..70773167b 100644
--- a/src/modules/m_alltime.cpp
+++ b/src/modules/m_alltime.cpp
@@ -12,7 +12,6 @@
*/
#include "inspircd.h"
-#include "modules.h"
/* $ModDesc: Display timestamps from all servers connected to the network */
diff --git a/src/modules/m_antibear.cpp b/src/modules/m_antibear.cpp
index 2718cbb4c..0e254d00c 100644
--- a/src/modules/m_antibear.cpp
+++ b/src/modules/m_antibear.cpp
@@ -12,9 +12,6 @@
*/
#include "inspircd.h"
-#include "users.h"
-#include "channels.h"
-#include "modules.h"
#include "xline.h"
/* $ModDesc: Sends a numeric on connect which cripples a common type of trojan/spambot */
diff --git a/src/modules/m_antibottler.cpp b/src/modules/m_antibottler.cpp
index 3aa5592cc..56ad9da05 100644
--- a/src/modules/m_antibottler.cpp
+++ b/src/modules/m_antibottler.cpp
@@ -12,9 +12,6 @@
*/
#include "inspircd.h"
-#include "users.h"
-#include "channels.h"
-#include "modules.h"
/* $ModDesc: Changes the ident of connecting bottler clients to 'bottler' */
diff --git a/src/modules/m_auditorium.cpp b/src/modules/m_auditorium.cpp
index 6d709e431..de54a22bb 100644
--- a/src/modules/m_auditorium.cpp
+++ b/src/modules/m_auditorium.cpp
@@ -12,9 +12,6 @@
*/
#include "inspircd.h"
-#include "users.h"
-#include "channels.h"
-#include "modules.h"
/* $ModDesc: Allows for auditorium channels (+u) where nobody can see others joining and parting or the nick list */
diff --git a/src/modules/m_banexception.cpp b/src/modules/m_banexception.cpp
index 0cd03a08b..152415a91 100644
--- a/src/modules/m_banexception.cpp
+++ b/src/modules/m_banexception.cpp
@@ -12,10 +12,6 @@
*/
#include "inspircd.h"
-#include "users.h"
-#include "channels.h"
-#include "modules.h"
-#include "mode.h"
#include "u_listmode.h"
#include "wildcard.h"
diff --git a/src/modules/m_banredirect.cpp b/src/modules/m_banredirect.cpp
index 3697e995f..9fa36b516 100644
--- a/src/modules/m_banredirect.cpp
+++ b/src/modules/m_banredirect.cpp
@@ -12,10 +12,6 @@
*/
#include "inspircd.h"
-#include "mode.h"
-#include "users.h"
-#include "channels.h"
-#include "modules.h"
#include "u_listmode.h"
/* $ModDesc: Allows an extended ban (+b) syntax redirecting banned users to another channel */
diff --git a/src/modules/m_blockamsg.cpp b/src/modules/m_blockamsg.cpp
index 69e99d0bb..bcef01fd2 100644
--- a/src/modules/m_blockamsg.cpp
+++ b/src/modules/m_blockamsg.cpp
@@ -12,10 +12,6 @@
*/
#include "inspircd.h"
-#include "users.h"
-#include "channels.h"
-#include "modules.h"
-#include "hashcomp.h"
/* $ModDesc: Attempt to block /amsg, at least some of the irritating mIRC scripts. */
diff --git a/src/modules/m_blockcaps.cpp b/src/modules/m_blockcaps.cpp
index 9197a8f11..21e08470f 100644
--- a/src/modules/m_blockcaps.cpp
+++ b/src/modules/m_blockcaps.cpp
@@ -12,10 +12,6 @@
*/
#include "inspircd.h"
-#include "users.h"
-#include "channels.h"
-#include "modules.h"
-#include "mode.h"
/* $ModDesc: Provides support for channel mode +P to block all-CAPS channel messages and notices */
diff --git a/src/modules/m_blockcolor.cpp b/src/modules/m_blockcolor.cpp
index 69b0e4686..d46e5a9d6 100644
--- a/src/modules/m_blockcolor.cpp
+++ b/src/modules/m_blockcolor.cpp
@@ -12,9 +12,6 @@
*/
#include "inspircd.h"
-#include "users.h"
-#include "channels.h"
-#include "modules.h"
/* $ModDesc: Provides support for unreal-style channel mode +c */
diff --git a/src/modules/m_botmode.cpp b/src/modules/m_botmode.cpp
index a6cad9577..86dc9ea00 100644
--- a/src/modules/m_botmode.cpp
+++ b/src/modules/m_botmode.cpp
@@ -12,12 +12,6 @@
*/
#include "inspircd.h"
-#include <stdio.h>
-#include <string>
-#include "users.h"
-#include "channels.h"
-#include "modules.h"
-#include "configreader.h"
/* $ModDesc: Provides support for unreal-style umode +B */
diff --git a/src/modules/m_cban.cpp b/src/modules/m_cban.cpp
index 9835bdf43..abb4cd12a 100644
--- a/src/modules/m_cban.cpp
+++ b/src/modules/m_cban.cpp
@@ -12,11 +12,6 @@
*/
#include "inspircd.h"
-#include <algorithm>
-#include "users.h"
-#include "channels.h"
-#include "modules.h"
-#include "configreader.h"
/* $ModDesc: Gives /cban, aka C:lines. Think Q:lines, for channels. */
diff --git a/src/modules/m_censor.cpp b/src/modules/m_censor.cpp
index f4a5bd620..27bb3b741 100644
--- a/src/modules/m_censor.cpp
+++ b/src/modules/m_censor.cpp
@@ -15,9 +15,6 @@
#define _SCL_SECURE_NO_DEPRECATE
#include "inspircd.h"
-#include "users.h"
-#include "channels.h"
-#include "modules.h"
typedef std::map<irc::string,irc::string> censor_t;
diff --git a/src/modules/m_cgiirc.cpp b/src/modules/m_cgiirc.cpp
index c99d6b5eb..49a6fdabb 100644
--- a/src/modules/m_cgiirc.cpp
+++ b/src/modules/m_cgiirc.cpp
@@ -12,9 +12,7 @@
*/
#include "inspircd.h"
-#include "users.h"
-#include "modules.h"
-#include "dns.h"
+
#ifndef WINDOWS
#include <sys/socket.h>
#include <netinet/in.h>
diff --git a/src/modules/m_chancreate.cpp b/src/modules/m_chancreate.cpp
index 915e7c8cb..232d55314 100644
--- a/src/modules/m_chancreate.cpp
+++ b/src/modules/m_chancreate.cpp
@@ -12,9 +12,6 @@
*/
#include "inspircd.h"
-#include "users.h"
-#include "channels.h"
-#include "modules.h"
/* $ModDesc: Creates a snomask with notices whenever a new channel is created */
diff --git a/src/modules/m_chanfilter.cpp b/src/modules/m_chanfilter.cpp
index 375fbce9c..19e1fe3d9 100644
--- a/src/modules/m_chanfilter.cpp
+++ b/src/modules/m_chanfilter.cpp
@@ -15,10 +15,6 @@
#define _SCL_SECURE_NO_DEPRECATE
#include "inspircd.h"
-#include "users.h"
-#include "channels.h"
-#include "modules.h"
-#include "hashcomp.h"
#include "u_listmode.h"
/* $ModDesc: Provides channel-specific censor lists (like mode +G but varies from channel to channel) */
diff --git a/src/modules/m_chanprotect.cpp b/src/modules/m_chanprotect.cpp
index 6d99ed10b..0798e1947 100644
--- a/src/modules/m_chanprotect.cpp
+++ b/src/modules/m_chanprotect.cpp
@@ -12,9 +12,6 @@
*/
#include "inspircd.h"
-#include "users.h"
-#include "channels.h"
-#include "modules.h"
/* $ModDesc: Provides channel modes +a and +q */
/* $ModDep: ../../include/u_listmode.h */
diff --git a/src/modules/m_check.cpp b/src/modules/m_check.cpp
index 643af8e15..c4ec91988 100644
--- a/src/modules/m_check.cpp
+++ b/src/modules/m_check.cpp
@@ -12,9 +12,6 @@
*/
#include "inspircd.h"
-#include "users.h"
-#include "channels.h"
-#include "modules.h"
#include "wildcard.h"
/* $ModDesc: Provides the /check command to retrieve information on a user, channel, or IP address */
diff --git a/src/modules/m_chghost.cpp b/src/modules/m_chghost.cpp
index ab762eabb..a30e70099 100644
--- a/src/modules/m_chghost.cpp
+++ b/src/modules/m_chghost.cpp
@@ -12,9 +12,6 @@
*/
#include "inspircd.h"
-#include "users.h"
-#include "channels.h"
-#include "modules.h"
/* $ModDesc: Provides support for the CHGHOST command */
diff --git a/src/modules/m_chgident.cpp b/src/modules/m_chgident.cpp
index e13d211f4..50e1d466f 100644
--- a/src/modules/m_chgident.cpp
+++ b/src/modules/m_chgident.cpp
@@ -12,8 +12,6 @@
*/
#include "inspircd.h"
-#include "users.h"
-#include "modules.h"
/* $ModDesc: Provides support for the CHGIDENT command */
diff --git a/src/modules/m_chgname.cpp b/src/modules/m_chgname.cpp
index 763ef3c17..615239dcc 100644
--- a/src/modules/m_chgname.cpp
+++ b/src/modules/m_chgname.cpp
@@ -12,8 +12,6 @@
*/
#include "inspircd.h"
-#include "users.h"
-#include "modules.h"
/* $ModDesc: Provides support for the CHGNAME command */
diff --git a/src/modules/m_cloaking.cpp b/src/modules/m_cloaking.cpp
index ad7a7e337..d4c4c4529 100644
--- a/src/modules/m_cloaking.cpp
+++ b/src/modules/m_cloaking.cpp
@@ -12,9 +12,6 @@
*/
#include "inspircd.h"
-#include "users.h"
-#include "channels.h"
-#include "modules.h"
#include "m_hash.h"
/* $ModDesc: Provides masking of user hostnames */
diff --git a/src/modules/m_clones.cpp b/src/modules/m_clones.cpp
index 72a7ca7e8..85613f4ef 100644
--- a/src/modules/m_clones.cpp
+++ b/src/modules/m_clones.cpp
@@ -12,9 +12,6 @@
*/
#include "inspircd.h"
-#include "users.h"
-#include "channels.h"
-#include "modules.h"
#include "wildcard.h"
/* $ModDesc: Provides the /clones command to retrieve information on a user, channel, or IP address */
diff --git a/src/modules/m_close.cpp b/src/modules/m_close.cpp
index 93328a5a9..e395b427f 100644
--- a/src/modules/m_close.cpp
+++ b/src/modules/m_close.cpp
@@ -10,9 +10,6 @@
*/
#include "inspircd.h"
-#include "users.h"
-#include "channels.h"
-#include "modules.h"
/* $ModDesc: Provides /CLOSE functionality */
diff --git a/src/modules/m_commonchans.cpp b/src/modules/m_commonchans.cpp
index b4e274f6c..e9af24ad0 100644
--- a/src/modules/m_commonchans.cpp
+++ b/src/modules/m_commonchans.cpp
@@ -12,12 +12,6 @@
*/
#include "inspircd.h"
-#include <stdio.h>
-#include <string>
-#include "users.h"
-#include "channels.h"
-#include "modules.h"
-#include "configreader.h"
/* $ModDesc: Adds user mode +c, which if set, users must be on a common channel with you to private message you */
diff --git a/src/modules/m_conn_join.cpp b/src/modules/m_conn_join.cpp
index 2d639f310..d65fdf7e0 100644
--- a/src/modules/m_conn_join.cpp
+++ b/src/modules/m_conn_join.cpp
@@ -12,9 +12,6 @@
*/
#include "inspircd.h"
-#include "users.h"
-#include "channels.h"
-#include "modules.h"
/* $ModDesc: Forces users to join the specified channel(s) on connect */
diff --git a/src/modules/m_conn_umodes.cpp b/src/modules/m_conn_umodes.cpp
index 3f27eeff5..23b5d8280 100644
--- a/src/modules/m_conn_umodes.cpp
+++ b/src/modules/m_conn_umodes.cpp
@@ -12,9 +12,6 @@
*/
#include "inspircd.h"
-#include "users.h"
-#include "channels.h"
-#include "modules.h"
#include "wildcard.h"
/* $ModDesc: Sets (and unsets) modes on users when they connect */
diff --git a/src/modules/m_conn_waitpong.cpp b/src/modules/m_conn_waitpong.cpp
index 0dd27ddbd..51571072e 100644
--- a/src/modules/m_conn_waitpong.cpp
+++ b/src/modules/m_conn_waitpong.cpp
@@ -12,9 +12,6 @@
*/
#include "inspircd.h"
-#include "users.h"
-#include "channels.h"
-#include "modules.h"
/* $ModDesc: Forces connecting clients to send a PONG message back to the server before they can complete their connection */
diff --git a/src/modules/m_connflood.cpp b/src/modules/m_connflood.cpp
index 47b19fdf4..e3fea0521 100644
--- a/src/modules/m_connflood.cpp
+++ b/src/modules/m_connflood.cpp
@@ -12,8 +12,6 @@
*/
#include "inspircd.h"
-#include "users.h"
-#include "modules.h"
/* $ModDesc: Connection throttle */
diff --git a/src/modules/m_customtitle.cpp b/src/modules/m_customtitle.cpp
index 124609536..e2125644e 100644
--- a/src/modules/m_customtitle.cpp
+++ b/src/modules/m_customtitle.cpp
@@ -12,9 +12,6 @@
*/
#include "inspircd.h"
-#include "users.h"
-#include "channels.h"
-#include "modules.h"
#include "wildcard.h"
/* $ModDesc: Provides the TITLE command which allows setting of CUSTOM WHOIS TITLE line */
diff --git a/src/modules/m_cycle.cpp b/src/modules/m_cycle.cpp
index 0e3bd7ee2..c9a08c12a 100644
--- a/src/modules/m_cycle.cpp
+++ b/src/modules/m_cycle.cpp
@@ -12,9 +12,6 @@
*/
#include "inspircd.h"
-#include "users.h"
-#include "channels.h"
-#include "modules.h"
/* $ModDesc: Provides support for unreal-style CYCLE command. */
diff --git a/src/modules/m_dccallow.cpp b/src/modules/m_dccallow.cpp
index 6d8ccc7d3..5e3f286b5 100644
--- a/src/modules/m_dccallow.cpp
+++ b/src/modules/m_dccallow.cpp
@@ -12,9 +12,6 @@
*/
#include "inspircd.h"
-#include "users.h"
-#include "channels.h"
-#include "modules.h"
/* $ModDesc: Povides support for the /DCCALLOW command */
diff --git a/src/modules/m_deaf.cpp b/src/modules/m_deaf.cpp
index 12ef0ddda..c7d40115a 100644
--- a/src/modules/m_deaf.cpp
+++ b/src/modules/m_deaf.cpp
@@ -12,9 +12,6 @@
*/
#include "inspircd.h"
-#include "users.h"
-#include "channels.h"
-#include "modules.h"
/* $ModDesc: Provides support for ircu style usermode +d (deaf to channel messages and channel notices) */
diff --git a/src/modules/m_denychans.cpp b/src/modules/m_denychans.cpp
index 4a01faa7c..1b72c52c3 100644
--- a/src/modules/m_denychans.cpp
+++ b/src/modules/m_denychans.cpp
@@ -12,10 +12,6 @@
*/
#include "inspircd.h"
-#include "users.h"
-#include "channels.h"
-#include "modules.h"
-#include "hashcomp.h"
#include "wildcard.h"
/* $ModDesc: Implements config tags which allow blocking of joins to channels */
diff --git a/src/modules/m_devoice.cpp b/src/modules/m_devoice.cpp
index 06413f0ec..8169ea277 100644
--- a/src/modules/m_devoice.cpp
+++ b/src/modules/m_devoice.cpp
@@ -19,9 +19,6 @@
/* $ModDesc: Provides voiced users with the ability to devoice themselves. */
#include "inspircd.h"
-#include "users.h"
-#include "channels.h"
-#include "modules.h"
/** Handle /DEVOICE
*/
diff --git a/src/modules/m_dnsbl.cpp b/src/modules/m_dnsbl.cpp
index 5de6f2063..bfa511da2 100644
--- a/src/modules/m_dnsbl.cpp
+++ b/src/modules/m_dnsbl.cpp
@@ -13,10 +13,6 @@
#include "inspircd.h"
#include "xline.h"
-#include "dns.h"
-#include "users.h"
-#include "channels.h"
-#include "modules.h"
#ifndef WINDOWS
#include <sys/types.h>
diff --git a/src/modules/m_filter.cpp b/src/modules/m_filter.cpp
index 70de88e2c..68ec48891 100644
--- a/src/modules/m_filter.cpp
+++ b/src/modules/m_filter.cpp
@@ -12,9 +12,6 @@
*/
#include "inspircd.h"
-#include "users.h"
-#include "channels.h"
-#include "modules.h"
#include "m_filter.h"
/* $ModDesc: An advanced spam filtering module */
diff --git a/src/modules/m_foobar.cpp b/src/modules/m_foobar.cpp
index 7de305923..b086eb345 100644
--- a/src/modules/m_foobar.cpp
+++ b/src/modules/m_foobar.cpp
@@ -12,9 +12,6 @@
*/
#include "inspircd.h"
-#include "users.h"
-#include "channels.h"
-#include "modules.h"
/* $ModDesc: A dummy module for testing */
diff --git a/src/modules/m_globalload.cpp b/src/modules/m_globalload.cpp
index f9d3a418e..18e8ab018 100644
--- a/src/modules/m_globalload.cpp
+++ b/src/modules/m_globalload.cpp
@@ -14,9 +14,6 @@
/* $ModDesc: Allows global loading of a module. */
#include "inspircd.h"
-#include "users.h"
-#include "channels.h"
-#include "modules.h"
/** Handle /GLOADMODULE
*/
diff --git a/src/modules/m_globops.cpp b/src/modules/m_globops.cpp
index 18eae1d24..efe50731d 100644
--- a/src/modules/m_globops.cpp
+++ b/src/modules/m_globops.cpp
@@ -14,9 +14,6 @@
// Globops and +g support module by C.J.Edwards
#include "inspircd.h"
-#include "users.h"
-#include "channels.h"
-#include "modules.h"
/* $ModDesc: Provides support for GLOBOPS and user mode +g */
diff --git a/src/modules/m_helpop.cpp b/src/modules/m_helpop.cpp
index fd88651c0..b25ed7089 100644
--- a/src/modules/m_helpop.cpp
+++ b/src/modules/m_helpop.cpp
@@ -12,9 +12,6 @@
*/
#include "inspircd.h"
-#include "users.h"
-#include "channels.h"
-#include "modules.h"
/* $ModDesc: /helpop Command, Works like Unreal helpop */
static std::map<irc::string, std::string> helpop_map;
diff --git a/src/modules/m_hidechans.cpp b/src/modules/m_hidechans.cpp
index 2c3769f7a..8d2c6b4eb 100644
--- a/src/modules/m_hidechans.cpp
+++ b/src/modules/m_hidechans.cpp
@@ -12,9 +12,6 @@
*/
#include "inspircd.h"
-#include "users.h"
-#include "channels.h"
-#include "modules.h"
/* $ModDesc: Provides support for hiding channels with user mode +I */
diff --git a/src/modules/m_hideoper.cpp b/src/modules/m_hideoper.cpp
index 9f547d77d..1e4f7ae85 100644
--- a/src/modules/m_hideoper.cpp
+++ b/src/modules/m_hideoper.cpp
@@ -12,9 +12,6 @@
*/
#include "inspircd.h"
-#include "users.h"
-#include "channels.h"
-#include "modules.h"
/* $ModDesc: Provides support for hiding oper status with user mode +H */
diff --git a/src/modules/m_hostchange.cpp b/src/modules/m_hostchange.cpp
index ebc8a1ffa..cf85a3900 100644
--- a/src/modules/m_hostchange.cpp
+++ b/src/modules/m_hostchange.cpp
@@ -12,9 +12,6 @@
*/
#include "inspircd.h"
-#include "users.h"
-#include "channels.h"
-#include "modules.h"
#include "wildcard.h"
/* $ModDesc: Provides masking of user hostnames in a different way to m_cloaking */
diff --git a/src/modules/m_httpd.cpp b/src/modules/m_httpd.cpp
index a06098a0e..dc8a8c8a8 100644
--- a/src/modules/m_httpd.cpp
+++ b/src/modules/m_httpd.cpp
@@ -12,8 +12,6 @@
*/
#include "inspircd.h"
-#include <algorithm>
-#include "modules.h"
#include "httpd.h"
/* $ModDesc: Provides HTTP serving facilities to modules */
diff --git a/src/modules/m_httpd_stats.cpp b/src/modules/m_httpd_stats.cpp
index 6bf5dc868..9e89bd149 100644
--- a/src/modules/m_httpd_stats.cpp
+++ b/src/modules/m_httpd_stats.cpp
@@ -12,11 +12,6 @@
*/
#include "inspircd.h"
-#include "users.h"
-#include "channels.h"
-#include "configreader.h"
-#include "modules.h"
-#include "inspsocket.h"
#include "httpd.h"
/* $ModDesc: Provides statistics over HTTP via m_httpd.so */
diff --git a/src/modules/m_ident.cpp b/src/modules/m_ident.cpp
index 3e2da1be7..0fef4d33b 100644
--- a/src/modules/m_ident.cpp
+++ b/src/modules/m_ident.cpp
@@ -12,9 +12,6 @@
*/
#include "inspircd.h"
-#include "users.h"
-#include "channels.h"
-#include "modules.h"
/* $ModDesc: Provides support for RFC 1413 ident lookups */
diff --git a/src/modules/m_invisible.cpp b/src/modules/m_invisible.cpp
index 774c50b70..e8d9127b2 100644
--- a/src/modules/m_invisible.cpp
+++ b/src/modules/m_invisible.cpp
@@ -12,9 +12,6 @@
*/
#include "inspircd.h"
-#include "users.h"
-#include "channels.h"
-#include "modules.h"
#include <stdarg.h>
/* $ModDesc: Allows for opered clients to join channels without being seen, similar to unreal 3.1 +I mode */
diff --git a/src/modules/m_inviteexception.cpp b/src/modules/m_inviteexception.cpp
index b7b9920c5..1810f8297 100644
--- a/src/modules/m_inviteexception.cpp
+++ b/src/modules/m_inviteexception.cpp
@@ -12,10 +12,6 @@
*/
#include "inspircd.h"
-#include "users.h"
-#include "channels.h"
-#include "modules.h"
-#include "mode.h"
#include "u_listmode.h"
/* $ModDesc: Provides support for the +I channel mode */
diff --git a/src/modules/m_joinflood.cpp b/src/modules/m_joinflood.cpp
index 3d342b636..72d79361b 100644
--- a/src/modules/m_joinflood.cpp
+++ b/src/modules/m_joinflood.cpp
@@ -12,9 +12,6 @@
*/
#include "inspircd.h"
-#include "users.h"
-#include "channels.h"
-#include "modules.h"
/* $ModDesc: Provides channel mode +j (join flood protection) */
diff --git a/src/modules/m_jumpserver.cpp b/src/modules/m_jumpserver.cpp
index 28bbd056e..fb8727e3a 100644
--- a/src/modules/m_jumpserver.cpp
+++ b/src/modules/m_jumpserver.cpp
@@ -12,9 +12,6 @@
*/
#include "inspircd.h"
-#include "users.h"
-#include "channels.h"
-#include "modules.h"
/* $ModDesc: Provides support for unreal-style SAPART command */
diff --git a/src/modules/m_kicknorejoin.cpp b/src/modules/m_kicknorejoin.cpp
index bdb988ad2..6a684206f 100644
--- a/src/modules/m_kicknorejoin.cpp
+++ b/src/modules/m_kicknorejoin.cpp
@@ -12,10 +12,6 @@
*/
#include "inspircd.h"
-#include <sstream>
-#include "users.h"
-#include "channels.h"
-#include "modules.h"
/* $ModDesc: Provides channel mode +J (delay rejoin after kick) */
diff --git a/src/modules/m_knock.cpp b/src/modules/m_knock.cpp
index 8e7e14481..23ee05395 100644
--- a/src/modules/m_knock.cpp
+++ b/src/modules/m_knock.cpp
@@ -12,9 +12,6 @@
*/
#include "inspircd.h"
-#include "users.h"
-#include "channels.h"
-#include "modules.h"
/* $ModDesc: Provides support for /KNOCK and mode +K */
diff --git a/src/modules/m_lockserv.cpp b/src/modules/m_lockserv.cpp
index 2ca2e3f44..94ab31421 100644
--- a/src/modules/m_lockserv.cpp
+++ b/src/modules/m_lockserv.cpp
@@ -12,9 +12,6 @@
*/
#include "inspircd.h"
-#include "users.h"
-#include "channels.h"
-#include "modules.h"
/* $ModDesc: Allows locking of the server to stop all incoming connections till unlocked again */
diff --git a/src/modules/m_md5.cpp b/src/modules/m_md5.cpp
index 3b7df8369..2fe1daf61 100644
--- a/src/modules/m_md5.cpp
+++ b/src/modules/m_md5.cpp
@@ -18,9 +18,6 @@
#ifdef HAS_STDINT
#include <stdint.h>
#endif
-#include "users.h"
-#include "channels.h"
-#include "modules.h"
#include "m_hash.h"
/* The four core functions - F1 is optimized somewhat */
diff --git a/src/modules/m_messageflood.cpp b/src/modules/m_messageflood.cpp
index 1a89ea428..51e20fe7e 100644
--- a/src/modules/m_messageflood.cpp
+++ b/src/modules/m_messageflood.cpp
@@ -12,9 +12,6 @@
*/
#include "inspircd.h"
-#include "users.h"
-#include "channels.h"
-#include "modules.h"
/* $ModDesc: Provides channel mode +f (message flood protection) */
diff --git a/src/modules/m_namesx.cpp b/src/modules/m_namesx.cpp
index c45d777f8..b3741a457 100644
--- a/src/modules/m_namesx.cpp
+++ b/src/modules/m_namesx.cpp
@@ -12,9 +12,6 @@
*/
#include "inspircd.h"
-#include "users.h"
-#include "channels.h"
-#include "modules.h"
static const char* dummy = "ON";
diff --git a/src/modules/m_nickflood.cpp b/src/modules/m_nickflood.cpp
index 4799bd4ef..c5ba4065b 100644
--- a/src/modules/m_nickflood.cpp
+++ b/src/modules/m_nickflood.cpp
@@ -12,9 +12,6 @@
*/
#include "inspircd.h"
-#include "users.h"
-#include "channels.h"
-#include "modules.h"
/* $ModDesc: Provides channel mode +F (nick flood protection) */
diff --git a/src/modules/m_nicklock.cpp b/src/modules/m_nicklock.cpp
index 9bb0f270d..924c02995 100644
--- a/src/modules/m_nicklock.cpp
+++ b/src/modules/m_nicklock.cpp
@@ -12,10 +12,6 @@
*/
#include "inspircd.h"
-#include "users.h"
-#include "channels.h"
-#include "modules.h"
-#include "hashcomp.h"
/* $ModDesc: Provides the NICKLOCK command, allows an oper to chage a users nick and lock them to it until they quit */
diff --git a/src/modules/m_noctcp.cpp b/src/modules/m_noctcp.cpp
index 05dbd69ca..8bb84c6ce 100644
--- a/src/modules/m_noctcp.cpp
+++ b/src/modules/m_noctcp.cpp
@@ -12,9 +12,6 @@
*/
#include "inspircd.h"
-#include "users.h"
-#include "channels.h"
-#include "modules.h"
/* $ModDesc: Provides support for unreal-style channel mode +c */
diff --git a/src/modules/m_noinvite.cpp b/src/modules/m_noinvite.cpp
index 26965d319..c1d7f0d6f 100644
--- a/src/modules/m_noinvite.cpp
+++ b/src/modules/m_noinvite.cpp
@@ -12,9 +12,6 @@
*/
#include "inspircd.h"
-#include "users.h"
-#include "channels.h"
-#include "modules.h"
/* $ModDesc: Provides support for unreal-style channel mode +V */
diff --git a/src/modules/m_nokicks.cpp b/src/modules/m_nokicks.cpp
index 315eb7399..93ab2bd1d 100644
--- a/src/modules/m_nokicks.cpp
+++ b/src/modules/m_nokicks.cpp
@@ -12,9 +12,6 @@
*/
#include "inspircd.h"
-#include "users.h"
-#include "channels.h"
-#include "modules.h"
/* $ModDesc: Provides support for unreal-style channel mode +Q */
diff --git a/src/modules/m_nonicks.cpp b/src/modules/m_nonicks.cpp
index bb1843a95..da5003f83 100644
--- a/src/modules/m_nonicks.cpp
+++ b/src/modules/m_nonicks.cpp
@@ -12,11 +12,6 @@
*/
#include "inspircd.h"
-#include "users.h"
-#include "channels.h"
-#include "modules.h"
-#include "hashcomp.h"
-#include "configreader.h"
/* $ModDesc: Provides support for channel mode +N which prevents nick changes on channel */
diff --git a/src/modules/m_nonotice.cpp b/src/modules/m_nonotice.cpp
index ae926b4bb..e536328bc 100644
--- a/src/modules/m_nonotice.cpp
+++ b/src/modules/m_nonotice.cpp
@@ -12,9 +12,6 @@
*/
#include "inspircd.h"
-#include "users.h"
-#include "channels.h"
-#include "modules.h"
/* $ModDesc: Provides support for unreal-style channel mode +T */
diff --git a/src/modules/m_oper_hash.cpp b/src/modules/m_oper_hash.cpp
index b4661741b..79530e349 100644
--- a/src/modules/m_oper_hash.cpp
+++ b/src/modules/m_oper_hash.cpp
@@ -15,9 +15,6 @@
/* $ModDep: m_hash.h */
#include "inspircd.h"
-#include "users.h"
-#include "channels.h"
-#include "modules.h"
#include "m_hash.h"
typedef std::map<irc::string, Module*> hashymodules;
diff --git a/src/modules/m_operchans.cpp b/src/modules/m_operchans.cpp
index 6fd6c9e98..24772aea7 100644
--- a/src/modules/m_operchans.cpp
+++ b/src/modules/m_operchans.cpp
@@ -12,9 +12,6 @@
*/
#include "inspircd.h"
-#include "users.h"
-#include "channels.h"
-#include "modules.h"
/* $ModDesc: Provides support for oper-only chans via the +O channel mode */
diff --git a/src/modules/m_operjoin.cpp b/src/modules/m_operjoin.cpp
index d12bc1932..8383de739 100644
--- a/src/modules/m_operjoin.cpp
+++ b/src/modules/m_operjoin.cpp
@@ -12,9 +12,6 @@
*/
#include "inspircd.h"
-#include "users.h"
-#include "channels.h"
-#include "modules.h"
/* $ModDesc: Forces opers to join the specified channel(s) on oper-up */
diff --git a/src/modules/m_operlevels.cpp b/src/modules/m_operlevels.cpp
index 918d444ac..40e882625 100644
--- a/src/modules/m_operlevels.cpp
+++ b/src/modules/m_operlevels.cpp
@@ -12,9 +12,6 @@
*/
#include "inspircd.h"
-#include "users.h"
-#include "channels.h"
-#include "modules.h"
/* $ModDesc: Gives each oper type a 'level', cannot kill opers 'above' your level. */
diff --git a/src/modules/m_operlog.cpp b/src/modules/m_operlog.cpp
index 9bbdbef25..ab044bac1 100644
--- a/src/modules/m_operlog.cpp
+++ b/src/modules/m_operlog.cpp
@@ -11,10 +11,7 @@
* ---------------------------------------------------
*/
-#include "inspircd.h"
-#include "users.h"
-#include "channels.h"
-#include "modules.h"
+#include "inspircd.h"
/* $ModDesc: A module which logs all oper commands to the ircd log at default loglevel. */
diff --git a/src/modules/m_opermodes.cpp b/src/modules/m_opermodes.cpp
index 598f84e43..fea793c04 100644
--- a/src/modules/m_opermodes.cpp
+++ b/src/modules/m_opermodes.cpp
@@ -12,9 +12,6 @@
*/
#include "inspircd.h"
-#include "users.h"
-#include "channels.h"
-#include "modules.h"
/* $ModDesc: Sets (and unsets) modes on opers when they oper up */
diff --git a/src/modules/m_opermotd.cpp b/src/modules/m_opermotd.cpp
index 55608dcb8..6de816413 100644
--- a/src/modules/m_opermotd.cpp
+++ b/src/modules/m_opermotd.cpp
@@ -12,9 +12,6 @@
*/
#include "inspircd.h"
-#include "users.h"
-#include "channels.h"
-#include "modules.h"
/* $ModDesc: Shows a message to opers after oper-up, adds /opermotd */
diff --git a/src/modules/m_override.cpp b/src/modules/m_override.cpp
index 70a5f9812..0f8922854 100644
--- a/src/modules/m_override.cpp
+++ b/src/modules/m_override.cpp
@@ -12,10 +12,6 @@
*/
#include "inspircd.h"
-#include "users.h"
-#include "channels.h"
-#include "modules.h"
-#include "configreader.h"
#include "wildcard.h"
/* $ModDesc: Provides support for unreal-style oper-override */
diff --git a/src/modules/m_randquote.cpp b/src/modules/m_randquote.cpp
index 2ad7831ce..5f8d52714 100644
--- a/src/modules/m_randquote.cpp
+++ b/src/modules/m_randquote.cpp
@@ -12,9 +12,6 @@
*/
#include "inspircd.h"
-#include "users.h"
-#include "channels.h"
-#include "modules.h"
static FileReader *quotes = NULL;
diff --git a/src/modules/m_redirect.cpp b/src/modules/m_redirect.cpp
index a746644c2..097929456 100644
--- a/src/modules/m_redirect.cpp
+++ b/src/modules/m_redirect.cpp
@@ -12,9 +12,6 @@
*/
#include "inspircd.h"
-#include "users.h"
-#include "channels.h"
-#include "modules.h"
/* $ModDesc: Provides channel mode +L (limit redirection) */
diff --git a/src/modules/m_regonlycreate.cpp b/src/modules/m_regonlycreate.cpp
index 2174c860c..c712b396b 100644
--- a/src/modules/m_regonlycreate.cpp
+++ b/src/modules/m_regonlycreate.cpp
@@ -12,9 +12,6 @@
*/
#include "inspircd.h"
-#include "users.h"
-#include "channels.h"
-#include "modules.h"
/* $ModDesc: Prevents users who's nicks are not registered from creating new channels */
diff --git a/src/modules/m_remove.cpp b/src/modules/m_remove.cpp
index fcd6ae958..600a75d3d 100644
--- a/src/modules/m_remove.cpp
+++ b/src/modules/m_remove.cpp
@@ -12,11 +12,6 @@
*/
#include "inspircd.h"
-#include <sstream>
-#include "users.h"
-#include "channels.h"
-#include "modules.h"
-#include "configreader.h"
/* $ModDesc: Provides a /remove command, this is mostly an alternative to /kick, except makes users appear to have parted the channel */
diff --git a/src/modules/m_restrictbanned.cpp b/src/modules/m_restrictbanned.cpp
index 9315385a1..01245b505 100644
--- a/src/modules/m_restrictbanned.cpp
+++ b/src/modules/m_restrictbanned.cpp
@@ -12,9 +12,6 @@
*/
#include "inspircd.h"
-#include "users.h"
-#include "channels.h"
-#include "modules.h"
/* $ModDesc: Restricts banned users in a channel. May not speak, etc. */
diff --git a/src/modules/m_restrictchans.cpp b/src/modules/m_restrictchans.cpp
index 1f2416d44..69e503861 100644
--- a/src/modules/m_restrictchans.cpp
+++ b/src/modules/m_restrictchans.cpp
@@ -12,9 +12,6 @@
*/
#include "inspircd.h"
-#include "users.h"
-#include "channels.h"
-#include "modules.h"
/* $ModDesc: Only opers may create new channels if this module is loaded */
diff --git a/src/modules/m_restrictmsg.cpp b/src/modules/m_restrictmsg.cpp
index 0e95660b2..b5f10eb24 100644
--- a/src/modules/m_restrictmsg.cpp
+++ b/src/modules/m_restrictmsg.cpp
@@ -12,9 +12,6 @@
*/
#include "inspircd.h"
-#include "users.h"
-#include "channels.h"
-#include "modules.h"
/* $ModDesc: Forbids users from messaging each other. Users may still message opers and opers may message other opers. */
diff --git a/src/modules/m_rpc_json.cpp b/src/modules/m_rpc_json.cpp
index 44c1726ec..35557fa14 100644
--- a/src/modules/m_rpc_json.cpp
+++ b/src/modules/m_rpc_json.cpp
@@ -18,10 +18,6 @@
#include <utility>
#include "inspircd.h"
-#include "users.h"
-#include "channels.h"
-#include "configreader.h"
-#include "modules.h"
#include "inspsocket.h"
#include "httpd.h"
#include "json.h"
diff --git a/src/modules/m_safelist.cpp b/src/modules/m_safelist.cpp
index 5059b9f77..e23a00531 100644
--- a/src/modules/m_safelist.cpp
+++ b/src/modules/m_safelist.cpp
@@ -11,10 +11,7 @@
* ---------------------------------------------------
*/
-#include "inspircd.h"
-#include "users.h"
-#include "channels.h"
-#include "modules.h"
+#include "inspircd.h"
#include "wildcard.h"
/** Holds a users m_safelist state
diff --git a/src/modules/m_sajoin.cpp b/src/modules/m_sajoin.cpp
index 75e017044..32d136d6b 100644
--- a/src/modules/m_sajoin.cpp
+++ b/src/modules/m_sajoin.cpp
@@ -12,9 +12,6 @@
*/
#include "inspircd.h"
-#include "users.h"
-#include "channels.h"
-#include "modules.h"
/* $ModDesc: Provides support for unreal-style SAJOIN command */
diff --git a/src/modules/m_samode.cpp b/src/modules/m_samode.cpp
index 7f3e9f428..b49efd35e 100644
--- a/src/modules/m_samode.cpp
+++ b/src/modules/m_samode.cpp
@@ -14,9 +14,6 @@
/* $ModDesc: Provides more advanced UnrealIRCd SAMODE command */
#include "inspircd.h"
-#include "users.h"
-#include "channels.h"
-#include "modules.h"
/** Handle /SAMODE
*/
diff --git a/src/modules/m_sanick.cpp b/src/modules/m_sanick.cpp
index 02f0c3fa5..292644ee9 100644
--- a/src/modules/m_sanick.cpp
+++ b/src/modules/m_sanick.cpp
@@ -12,9 +12,6 @@
*/
#include "inspircd.h"
-#include "users.h"
-#include "channels.h"
-#include "modules.h"
/* $ModDesc: Provides support for SANICK command */
diff --git a/src/modules/m_sapart.cpp b/src/modules/m_sapart.cpp
index 1713e07c0..e90a1de11 100644
--- a/src/modules/m_sapart.cpp
+++ b/src/modules/m_sapart.cpp
@@ -12,9 +12,6 @@
*/
#include "inspircd.h"
-#include "users.h"
-#include "channels.h"
-#include "modules.h"
/* $ModDesc: Provides support for unreal-style SAPART command */
diff --git a/src/modules/m_saquit.cpp b/src/modules/m_saquit.cpp
index 65dd4e21a..26d1be5ec 100644
--- a/src/modules/m_saquit.cpp
+++ b/src/modules/m_saquit.cpp
@@ -12,9 +12,6 @@
*/
#include "inspircd.h"
-#include "users.h"
-#include "channels.h"
-#include "modules.h"
/* $ModDesc: Provides support for an SAQUIT command, exits user with a reason */
diff --git a/src/modules/m_securelist.cpp b/src/modules/m_securelist.cpp
index 8761716c0..d32921455 100644
--- a/src/modules/m_securelist.cpp
+++ b/src/modules/m_securelist.cpp
@@ -11,10 +11,7 @@
* ---------------------------------------------------
*/
-#include "inspircd.h"
-#include "users.h"
-#include "channels.h"
-#include "modules.h"
+#include "inspircd.h"
/* $ModDesc: A module overriding /list, and making it safe - stop those sendq problems. */
diff --git a/src/modules/m_seenicks.cpp b/src/modules/m_seenicks.cpp
index 215cd34b0..c0b6473eb 100644
--- a/src/modules/m_seenicks.cpp
+++ b/src/modules/m_seenicks.cpp
@@ -12,11 +12,6 @@
*/
#include "inspircd.h"
-#include "users.h"
-#include "channels.h"
-#include "modules.h"
-#include "hashcomp.h"
-#include "configreader.h"
/* $ModDesc: Provides support for seeing local and remote nickchanges via snomasks */
diff --git a/src/modules/m_services.cpp b/src/modules/m_services.cpp
index fc07708c2..7cf894fbc 100644
--- a/src/modules/m_services.cpp
+++ b/src/modules/m_services.cpp
@@ -12,9 +12,6 @@
*/
#include "inspircd.h"
-#include "users.h"
-#include "channels.h"
-#include "modules.h"
static bool kludgeme = false;
diff --git a/src/modules/m_services_account.cpp b/src/modules/m_services_account.cpp
index cff0d7698..78fd9b0a8 100644
--- a/src/modules/m_services_account.cpp
+++ b/src/modules/m_services_account.cpp
@@ -12,10 +12,6 @@
*/
#include "inspircd.h"
-#include "users.h"
-#include "channels.h"
-#include "modules.h"
-#include "hashcomp.h"
/* $ModDesc: Povides support for ircu-style services accounts, including chmode +R, etc. */
diff --git a/src/modules/m_sethost.cpp b/src/modules/m_sethost.cpp
index 48c31d4e2..4f0344846 100644
--- a/src/modules/m_sethost.cpp
+++ b/src/modules/m_sethost.cpp
@@ -12,9 +12,6 @@
*/
#include "inspircd.h"
-#include "users.h"
-#include "channels.h"
-#include "modules.h"
/* $ModDesc: Provides support for the SETHOST command */
diff --git a/src/modules/m_setident.cpp b/src/modules/m_setident.cpp
index ecdf63fb0..1914a2307 100644
--- a/src/modules/m_setident.cpp
+++ b/src/modules/m_setident.cpp
@@ -12,8 +12,6 @@
*/
#include "inspircd.h"
-#include "users.h"
-#include "modules.h"
/* $ModDesc: Provides support for the SETIDENT command */
diff --git a/src/modules/m_setidle.cpp b/src/modules/m_setidle.cpp
index c9368086f..f5f669d5d 100644
--- a/src/modules/m_setidle.cpp
+++ b/src/modules/m_setidle.cpp
@@ -12,9 +12,6 @@
*/
#include "inspircd.h"
-#include "users.h"
-#include "channels.h"
-#include "modules.h"
/* $ModDesc: Allows opers to set their idle time */
diff --git a/src/modules/m_setname.cpp b/src/modules/m_setname.cpp
index de3131c77..da04b9e72 100644
--- a/src/modules/m_setname.cpp
+++ b/src/modules/m_setname.cpp
@@ -12,9 +12,6 @@
*/
#include "inspircd.h"
-#include "users.h"
-#include "channels.h"
-#include "modules.h"
/* $ModDesc: Provides support for the SETNAME command */
diff --git a/src/modules/m_sha256.cpp b/src/modules/m_sha256.cpp
index 547e7655c..6875a5f94 100644
--- a/src/modules/m_sha256.cpp
+++ b/src/modules/m_sha256.cpp
@@ -54,9 +54,6 @@
#ifdef HAS_STDINT
#include <stdint.h>
#endif
-#include "users.h"
-#include "channels.h"
-#include "modules.h"
#include "m_hash.h"
#ifndef HAS_STDINT
diff --git a/src/modules/m_showwhois.cpp b/src/modules/m_showwhois.cpp
index cb6a0ffb0..02ac49d22 100644
--- a/src/modules/m_showwhois.cpp
+++ b/src/modules/m_showwhois.cpp
@@ -12,9 +12,6 @@
*/
#include "inspircd.h"
-#include "users.h"
-#include "channels.h"
-#include "modules.h"
/* $ModDesc: Allows opers to set +W to see when a user uses WHOIS on them */
diff --git a/src/modules/m_silence.cpp b/src/modules/m_silence.cpp
index f44243126..4c14b8c7b 100644
--- a/src/modules/m_silence.cpp
+++ b/src/modules/m_silence.cpp
@@ -12,10 +12,6 @@
*/
#include "inspircd.h"
-#include "users.h"
-#include "channels.h"
-#include "modules.h"
-#include "hashcomp.h"
#include "wildcard.h"
/* $ModDesc: Provides support for the /SILENCE command */
diff --git a/src/modules/m_silence_ext.cpp b/src/modules/m_silence_ext.cpp
index 1bb3b26e5..e6ca551ac 100644
--- a/src/modules/m_silence_ext.cpp
+++ b/src/modules/m_silence_ext.cpp
@@ -12,10 +12,6 @@
*/
#include "inspircd.h"
-#include "users.h"
-#include "channels.h"
-#include "modules.h"
-#include "hashcomp.h"
#include "wildcard.h"
/* $ModDesc: Provides support for the /SILENCE command */
diff --git a/src/modules/m_spy.cpp b/src/modules/m_spy.cpp
index b33a0ba54..e912fe6a1 100644
--- a/src/modules/m_spy.cpp
+++ b/src/modules/m_spy.cpp
@@ -11,17 +11,9 @@
* ---------------------------------------------------
*/
-/* NO, THIS MODULE DOES NOT SPY ON CHANNELS OR USERS.
- * IT JUST ALLOWS OPERS TO SEE +s CHANNELS IN LIST AND
- * WHOIS, WHICH IS SUPPORTED BY MOST IRCDS IN CORE.
- */
-
/* $ModDesc: Provides SPYLIST and SPYNAMES capability, allowing opers to see who's in +s channels */
#include "inspircd.h"
-#include "users.h"
-#include "channels.h"
-#include "modules.h"
#include "wildcard.h"
void spy_userlist(userrec *user, chanrec *c)
diff --git a/src/modules/m_ssl_dummy.cpp b/src/modules/m_ssl_dummy.cpp
index fb3032da2..6b9f6d46c 100644
--- a/src/modules/m_ssl_dummy.cpp
+++ b/src/modules/m_ssl_dummy.cpp
@@ -12,8 +12,6 @@
*/
#include "inspircd.h"
-#include "users.h"
-#include "modules.h"
/* $ModDesc: Makes remote /whoises to SSL servers work on a non-ssl server */
diff --git a/src/modules/m_sslmodes.cpp b/src/modules/m_sslmodes.cpp
index c8eee5a03..e772e212d 100644
--- a/src/modules/m_sslmodes.cpp
+++ b/src/modules/m_sslmodes.cpp
@@ -12,9 +12,6 @@
*/
#include "inspircd.h"
-#include "users.h"
-#include "channels.h"
-#include "modules.h"
/* $ModDesc: Provides support for unreal-style channel mode +z */
diff --git a/src/modules/m_stripcolor.cpp b/src/modules/m_stripcolor.cpp
index aad253bc7..ba8913600 100644
--- a/src/modules/m_stripcolor.cpp
+++ b/src/modules/m_stripcolor.cpp
@@ -12,9 +12,6 @@
*/
#include "inspircd.h"
-#include "users.h"
-#include "channels.h"
-#include "modules.h"
/* $ModDesc: Provides channel +S mode (strip ansi colour) */
diff --git a/src/modules/m_svshold.cpp b/src/modules/m_svshold.cpp
index 616655085..a18c5d5b1 100644
--- a/src/modules/m_svshold.cpp
+++ b/src/modules/m_svshold.cpp
@@ -12,11 +12,6 @@
*/
#include "inspircd.h"
-#include <algorithm>
-#include "users.h"
-#include "channels.h"
-#include "modules.h"
-#include "configreader.h"
/* $ModDesc: Implements SVSHOLD. Like Q:Lines, but can only be added/removed by Services. */
diff --git a/src/modules/m_swhois.cpp b/src/modules/m_swhois.cpp
index 2178ad97a..f5d5ee461 100644
--- a/src/modules/m_swhois.cpp
+++ b/src/modules/m_swhois.cpp
@@ -12,9 +12,6 @@
*/
#include "inspircd.h"
-#include "users.h"
-#include "channels.h"
-#include "modules.h"
/* $ModDesc: Provides the SWHOIS command which allows setting of arbitary WHOIS lines */
diff --git a/src/modules/m_taxonomy.cpp b/src/modules/m_taxonomy.cpp
index c9621d431..a137e8d90 100644
--- a/src/modules/m_taxonomy.cpp
+++ b/src/modules/m_taxonomy.cpp
@@ -12,9 +12,6 @@
*/
#include "inspircd.h"
-#include "users.h"
-#include "channels.h"
-#include "modules.h"
/* $ModDesc: Provides the /TAXONOMY command, used to view all metadata attached to a user */
diff --git a/src/modules/m_testcommand.cpp b/src/modules/m_testcommand.cpp
index 842dd3a55..f2a0fb5fd 100644
--- a/src/modules/m_testcommand.cpp
+++ b/src/modules/m_testcommand.cpp
@@ -12,9 +12,6 @@
*/
#include "inspircd.h"
-#include "users.h"
-#include "channels.h"
-#include "modules.h"
/* $ModDesc: Provides a pointless /dalinfo command, demo module */
diff --git a/src/modules/m_timedbans.cpp b/src/modules/m_timedbans.cpp
index e7655778d..d223ddae6 100644
--- a/src/modules/m_timedbans.cpp
+++ b/src/modules/m_timedbans.cpp
@@ -14,11 +14,6 @@
/* $ModDesc: Adds timed bans */
#include "inspircd.h"
-#include "users.h"
-#include "channels.h"
-#include "modules.h"
-#include "hashcomp.h"
-#include "configreader.h"
/** Holds a timed ban
*/
diff --git a/src/modules/m_tline.cpp b/src/modules/m_tline.cpp
index 834cb7f4c..3296a7f15 100644
--- a/src/modules/m_tline.cpp
+++ b/src/modules/m_tline.cpp
@@ -12,9 +12,6 @@
*/
#include "inspircd.h"
-#include "users.h"
-#include "channels.h"
-#include "modules.h"
#include "wildcard.h"
/* $ModDesc: Provides /tline command used to test who a mask matches */
diff --git a/src/modules/m_uhnames.cpp b/src/modules/m_uhnames.cpp
index 6794f4643..190c84878 100644
--- a/src/modules/m_uhnames.cpp
+++ b/src/modules/m_uhnames.cpp
@@ -12,9 +12,6 @@
*/
#include "inspircd.h"
-#include "users.h"
-#include "channels.h"
-#include "modules.h"
static const char* dummy = "ON";
diff --git a/src/modules/m_uninvite.cpp b/src/modules/m_uninvite.cpp
index ab748663c..03ef5be71 100644
--- a/src/modules/m_uninvite.cpp
+++ b/src/modules/m_uninvite.cpp
@@ -14,10 +14,6 @@
/* $ModDesc: Provides the UNINVITE command which lets users un-invite other users from channels (!) */
#include "inspircd.h"
-#include "users.h"
-#include "channels.h"
-#include "modules.h"
-#include "configreader.h"
/** Handle /UNINVITE
*/
diff --git a/src/modules/m_userip.cpp b/src/modules/m_userip.cpp
index 5223a1af1..81e2cf6c8 100644
--- a/src/modules/m_userip.cpp
+++ b/src/modules/m_userip.cpp
@@ -12,9 +12,6 @@
*/
#include "inspircd.h"
-#include "users.h"
-#include "channels.h"
-#include "modules.h"
/* $ModDesc: Provides support for USERIP command */
diff --git a/src/modules/m_vhost.cpp b/src/modules/m_vhost.cpp
index 3ce910456..4654507f6 100644
--- a/src/modules/m_vhost.cpp
+++ b/src/modules/m_vhost.cpp
@@ -12,9 +12,6 @@
*/
#include "inspircd.h"
-#include "users.h"
-#include "channels.h"
-#include "modules.h"
/* $ModDesc: Provides masking of user hostnames via traditional /VHOST command */
diff --git a/src/modules/m_watch.cpp b/src/modules/m_watch.cpp
index 1a2fcb76e..9b68b976f 100644
--- a/src/modules/m_watch.cpp
+++ b/src/modules/m_watch.cpp
@@ -12,10 +12,6 @@
*/
#include "inspircd.h"
-#include "users.h"
-#include "channels.h"
-#include "modules.h"
-#include "hashcomp.h"
/* $ModDesc: Provides support for the /WATCH command */
diff --git a/src/modules/m_xmlsocket.cpp b/src/modules/m_xmlsocket.cpp
index 7f37f66c9..d97d40f87 100644
--- a/src/modules/m_xmlsocket.cpp
+++ b/src/modules/m_xmlsocket.cpp
@@ -12,10 +12,6 @@
*/
#include "inspircd.h"
-#include "users.h"
-#include "channels.h"
-#include "modules.h"
-#include "hashcomp.h"
/* $ModDesc: Provides XMLSocket support for clients */