From 7cbc335e893c8b77d04dafa9b879cab8f42a1dd4 Mon Sep 17 00:00:00 2001 From: brain Date: Thu, 10 May 2007 00:36:16 +0000 Subject: Make it not suck^H^H^H^Hsegfault... and its all fixed and *working* :) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6937 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_uhnames.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/modules/m_uhnames.cpp') diff --git a/src/modules/m_uhnames.cpp b/src/modules/m_uhnames.cpp index e29e0c662..ccd6b85b0 100644 --- a/src/modules/m_uhnames.cpp +++ b/src/modules/m_uhnames.cpp @@ -78,6 +78,9 @@ class ModuleUHNames : public Module { if (user->GetExt("UHNAMES")) { + if (!ulist) + ulist = Ptr->GetUsers(); + nl.clear(); for (CUList::iterator i = ulist->begin(); i != ulist->end(); i++) nl[i->first] = i->first->GetFullHost(); -- cgit v1.2.3