From 50eebfeac8ebe501b021ebf62b0b01464fd79a21 Mon Sep 17 00:00:00 2001 From: danieldg Date: Wed, 1 Jul 2009 22:55:39 +0000 Subject: Move list of open ports out of Config object git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11423 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/commands/cmd_stats.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/commands') diff --git a/src/commands/cmd_stats.cpp b/src/commands/cmd_stats.cpp index 09a6c4394..4af8dcb91 100644 --- a/src/commands/cmd_stats.cpp +++ b/src/commands/cmd_stats.cpp @@ -82,14 +82,14 @@ DllExport void DoStats(InspIRCd* ServerInstance, char statschar, User* user, str /* stats p (show listening ports and registered clients on each) */ case 'p': { - for (size_t i = 0; i < ServerInstance->Config->ports.size(); i++) + for (size_t i = 0; i < ServerInstance->ports.size(); i++) { - std::string ip = ServerInstance->Config->ports[i]->GetIP(); + std::string ip = ServerInstance->ports[i]->GetIP(); if (ip.empty()) ip.assign("*"); - results.push_back(sn+" 249 "+user->nick+" :"+ ip + ":"+ConvToStr(ServerInstance->Config->ports[i]->GetPort())+" (client, " + - ServerInstance->Config->ports[i]->GetDescription() + ")"); + results.push_back(sn+" 249 "+user->nick+" :"+ ip + ":"+ConvToStr(ServerInstance->ports[i]->GetPort())+" (client, " + + ServerInstance->ports[i]->GetDescription() + ")"); } } break; -- cgit v1.2.3