From 2192a9f58aae466a42d60279fb34ee3c5d2950a1 Mon Sep 17 00:00:00 2001 From: w00t Date: Sun, 13 Jan 2008 03:37:25 +0000 Subject: First UserManager overhaul: Move clone counts out of InspIRCd & User. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8705 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_clones.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/modules/m_clones.cpp') diff --git a/src/modules/m_clones.cpp b/src/modules/m_clones.cpp index e9f757249..0c1cdff2f 100644 --- a/src/modules/m_clones.cpp +++ b/src/modules/m_clones.cpp @@ -44,7 +44,8 @@ class CommandClones : public Command user->WriteServ(clonesstr + " START"); /* hostname or other */ - for (clonemap::iterator x = ServerInstance->global_clones.begin(); x != ServerInstance->global_clones.end(); x++) + // XXX I really don't like marking global_clones public for this. at all. -- w00t + for (clonemap::iterator x = ServerInstance->Users->global_clones.begin(); x != ServerInstance->Users->global_clones.end(); x++) { if (x->second >= limit) user->WriteServ(clonesstr + " "+ ConvToStr(x->second) + " " + assign(x->first)); -- cgit v1.2.3