summaryrefslogtreecommitdiff
path: root/src/inspircd.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/inspircd.cpp')
-rw-r--r--src/inspircd.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/inspircd.cpp b/src/inspircd.cpp
index 75c0833fc..28f9541dd 100644
--- a/src/inspircd.cpp
+++ b/src/inspircd.cpp
@@ -2189,7 +2189,7 @@ bool UnloadModule(const char* filename)
{
modules[j]->OnCleanup(TYPE_CHANNEL,c->second);
}
- for (user_hash::iterator u = userlist.begin(); u != userlist.end(); u++)
+ for (user_hash::iterator u = clientlist.begin(); u != clientlist.end(); u++)
{
modules[j]->OnCleanup(TYPE_USER,u->second);
}