summaryrefslogtreecommitdiff
path: root/src/coremods
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/coremods
parent4bdc173ee7802898ae46a09357e244210d4dd8e1 (diff)
Move typedef ClassVector to ServerConfig::ClassVector
Diffstat (limited to 'src/coremods')
-rw-r--r--src/coremods/core_stats.cpp4
1 files changed, 2 insertions, 2 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+" *");