summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAttila Molnar <attilamolnar@hush.com>2014-07-16 12:30:05 +0200
committerAttila Molnar <attilamolnar@hush.com>2014-07-16 12:30:05 +0200
commit046da7da9bf57ac9254f76fd1c43eadf1673cdf5 (patch)
treecd30abff939c02abc8ab1f9c9ef39afe79828c4c /src
parent4bdc173ee7802898ae46a09357e244210d4dd8e1 (diff)
Move typedef ClassVector to ServerConfig::ClassVector
Diffstat (limited to 'src')
-rw-r--r--src/coremods/core_stats.cpp4
-rw-r--r--src/users.cpp4
2 files changed, 4 insertions, 4 deletions
diff --git a/src/coremods/core_stats.cpp b/src/coremods/core_stats.cpp
index e28b3d1ef..f9cd78ddd 100644
--- a/src/coremods/core_stats.cpp
+++ b/src/coremods/core_stats.cpp
@@ -103,7 +103,7 @@ void CommandStats::DoStats(char statschar, User* user, string_list &results)
case 'i':
{
- for (ClassVector::iterator i = ServerInstance->Config->Classes.begin(); i != ServerInstance->Config->Classes.end(); i++)
+ for (ServerConfig::ClassVector::const_iterator i = ServerInstance->Config->Classes.begin(); i != ServerInstance->Config->Classes.end(); ++i)
{
ConnectClass* c = *i;
std::stringstream res;
@@ -132,7 +132,7 @@ void CommandStats::DoStats(char statschar, User* user, string_list &results)
case 'Y':
{
int idx = 0;
- for (ClassVector::iterator i = ServerInstance->Config->Classes.begin(); i != ServerInstance->Config->Classes.end(); i++)
+ for (ServerConfig::ClassVector::const_iterator i = ServerInstance->Config->Classes.begin(); i != ServerInstance->Config->Classes.end(); i++)
{
ConnectClass* c = *i;
results.push_back("215 "+user->nick+" i NOMATCH * "+c->GetHost()+" "+ConvToStr(c->limit ? c->limit : SocketEngine::GetMaxFds())+" "+ConvToStr(idx)+" "+ServerInstance->Config->ServerName+" *");
diff --git a/src/users.cpp b/src/users.cpp
index c2b8852d8..246efd7cf 100644
--- a/src/users.cpp
+++ b/src/users.cpp
@@ -1078,7 +1078,7 @@ void LocalUser::SetClass(const std::string &explicit_name)
if (!explicit_name.empty())
{
- for (ClassVector::iterator i = ServerInstance->Config->Classes.begin(); i != ServerInstance->Config->Classes.end(); i++)
+ for (ServerConfig::ClassVector::const_iterator i = ServerInstance->Config->Classes.begin(); i != ServerInstance->Config->Classes.end(); ++i)
{
ConnectClass* c = *i;
@@ -1091,7 +1091,7 @@ void LocalUser::SetClass(const std::string &explicit_name)
}
else
{
- for (ClassVector::iterator i = ServerInstance->Config->Classes.begin(); i != ServerInstance->Config->Classes.end(); i++)
+ for (ServerConfig::ClassVector::const_iterator i = ServerInstance->Config->Classes.begin(); i != ServerInstance->Config->Classes.end(); ++i)
{
ConnectClass* c = *i;
ServerInstance->Logs->Log("CONNECTCLASS", LOG_DEBUG, "Checking %s", c->GetName().c_str());