From 6e1f6f7a30d4f59e69b4c386e7897c9f9d16f565 Mon Sep 17 00:00:00 2001 From: brain Date: Thu, 10 May 2007 00:55:07 +0000 Subject: This doesnt need a data copy any more git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6939 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_uhnames.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src') diff --git a/src/modules/m_uhnames.cpp b/src/modules/m_uhnames.cpp index ccd6b85b0..b0981d58d 100644 --- a/src/modules/m_uhnames.cpp +++ b/src/modules/m_uhnames.cpp @@ -81,10 +81,8 @@ class ModuleUHNames : public Module if (!ulist) ulist = Ptr->GetUsers(); - nl.clear(); for (CUList::iterator i = ulist->begin(); i != ulist->end(); i++) - nl[i->first] = i->first->GetFullHost(); - ulist = &nl; + i->second = i->first->GetFullHost(); } return 0; } -- cgit v1.2.3