diff options
author | attilamolnar <attilamolnar@hush.com> | 2012-10-05 15:04:22 +0200 |
---|---|---|
committer | Adam <Adam@anope.org> | 2012-10-06 02:06:18 -0400 |
commit | 14d7de0cf38d8cbf9d28c527e1be27da071f755e (patch) | |
tree | 4894fe87658309da04aded981f4d45fd3dd1a1ab /modules/protocol/inspircd11.cpp | |
parent | cd28fdc1929585e5ca1b57331fd5009ba6e72cc4 (diff) |
InspIRCd: Remove has_svshold, use IRCDProto::CanSVSHold
Diffstat (limited to 'modules/protocol/inspircd11.cpp')
-rw-r--r-- | modules/protocol/inspircd11.cpp | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/modules/protocol/inspircd11.cpp b/modules/protocol/inspircd11.cpp index 3a3463ff8..ee625ac36 100644 --- a/modules/protocol/inspircd11.cpp +++ b/modules/protocol/inspircd11.cpp @@ -15,7 +15,6 @@ static bool has_servicesmod = false; static bool has_globopsmod = false; -static bool has_svsholdmod = false; static bool has_chghostmod = false; static bool has_chgidentmod = false; static bool has_hidechansmod = false; @@ -346,10 +345,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) { @@ -358,7 +357,7 @@ struct IRCDMessageCapab : IRCDMessage if (params[1].find("m_services.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) @@ -559,13 +558,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; |