summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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();