summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2007-05-10 00:36:16 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2007-05-10 00:36:16 +0000
commit7cbc335e893c8b77d04dafa9b879cab8f42a1dd4 (patch)
tree6907689337b8ea3b93c89d3532403a913cf96162
parentf7dd3ab4c02f704226ee77d1a12d74104e0e36d1 (diff)
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
-rw-r--r--src/modules/m_uhnames.cpp3
1 files changed, 3 insertions, 0 deletions
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();