From a48e3a4d5c96555f5a8df8b25c9796ae9314ad1e Mon Sep 17 00:00:00 2001 From: attilamolnar Date: Sun, 8 Sep 2013 18:00:22 +0200 Subject: [PATCH] Change allocation of a few services to make use of auto registration --- src/modules/m_dccallow.cpp | 40 ++++++++++++++++--------------------- src/modules/m_showwhois.cpp | 25 ++++++++++------------- 2 files changed, 28 insertions(+), 37 deletions(-) diff --git a/src/modules/m_dccallow.cpp b/src/modules/m_dccallow.cpp index c6cb09645..99952342b 100644 --- a/src/modules/m_dccallow.cpp +++ b/src/modules/m_dccallow.cpp @@ -51,12 +51,16 @@ typedef std::vector dccallowlist; dccallowlist* dl; typedef std::vector bannedfilelist; bannedfilelist bfl; -SimpleExtItem* ext; +typedef SimpleExtItem DCCAllowExt; class CommandDccallow : public Command { + DCCAllowExt& ext; + public: - CommandDccallow(Module* parent) : Command(parent, "DCCALLOW", 0) + CommandDccallow(Module* parent, DCCAllowExt& Ext) + : Command(parent, "DCCALLOW", 0) + , ext(Ext) { syntax = "{[+|-]