summaryrefslogtreecommitdiff
path: root/modules/protocol/inspircd12.cpp
diff options
context:
space:
mode:
authorattilamolnar <attilamolnar@hush.com>2012-10-05 15:04:22 +0200
committerAdam <Adam@anope.org>2012-10-06 02:06:18 -0400
commit14d7de0cf38d8cbf9d28c527e1be27da071f755e (patch)
tree4894fe87658309da04aded981f4d45fd3dd1a1ab /modules/protocol/inspircd12.cpp
parentcd28fdc1929585e5ca1b57331fd5009ba6e72cc4 (diff)
InspIRCd: Remove has_svshold, use IRCDProto::CanSVSHold
Diffstat (limited to 'modules/protocol/inspircd12.cpp')
-rw-r--r--modules/protocol/inspircd12.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/modules/protocol/inspircd12.cpp b/modules/protocol/inspircd12.cpp
index 1fd9bbc81..e71e7dbc3 100644
--- a/modules/protocol/inspircd12.cpp
+++ b/modules/protocol/inspircd12.cpp
@@ -21,7 +21,6 @@ static bool has_rlinemod = false;
#include "inspircd-ts6.h"
static bool has_servicesmod = false;
-static bool has_svsholdmod = false;
static bool has_hidechansmod = false;
class InspIRCd12Proto : public InspIRCdTS6Proto
@@ -92,10 +91,10 @@ struct IRCDMessageCapab : IRCDMessage
/* reset CAPAB */
has_servicesmod = false;
has_globopsmod = false;
- has_svsholdmod = false;
has_chghostmod = false;
has_chgidentmod = false;
has_hidechansmod = false;
+ ircdproto->CanSVSHold = false;
}
else if (params[0].equals_cs("MODULES") && params.size() > 1)
{
@@ -104,7 +103,7 @@ struct IRCDMessageCapab : IRCDMessage
if (params[1].find("m_services_account.so") != Anope::string::npos)
has_servicesmod = true;
if (params[1].find("m_svshold.so") != Anope::string::npos)
- has_svsholdmod = true;
+ ircdproto->CanSVSHold = true;
if (params[1].find("m_chghost.so") != Anope::string::npos)
has_chghostmod = true;
if (params[1].find("m_chgident.so") != Anope::string::npos)
@@ -409,13 +408,12 @@ struct IRCDMessageCapab : IRCDMessage
quitting = true;
return false;
}
- if (!has_svsholdmod)
+ if (!ircdproto->CanSVSHold)
Log() << "SVSHOLD missing, Usage disabled until module is loaded.";
if (!has_chghostmod)
Log() << "CHGHOST missing, Usage disabled until module is loaded.";
if (!has_chgidentmod)
Log() << "CHGIDENT missing, Usage disabled until module is loaded.";
- ircdproto->CanSVSHold = has_svsholdmod;
}
return true;