summaryrefslogtreecommitdiff
path: root/src/inspircd.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/inspircd.cpp')
-rw-r--r--src/inspircd.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/inspircd.cpp b/src/inspircd.cpp
index 16b450ec9..7ccbef91d 100644
--- a/src/inspircd.cpp
+++ b/src/inspircd.cpp
@@ -282,14 +282,14 @@ void InspIRCd::MoveTo(std::string modulename,int slot)
log(DEBUG,"Moving %s to slot %d",modulename.c_str(),slot);
for (unsigned int v = 0; v < Config->module_names.size(); v++)
{
- if (module_names[v] == modulename)
+ if (Config->module_names[v] == modulename)
{
// found an instance, swap it with the item at MODCOUNT
v2 = v;
break;
}
}
- if (v == slot)
+ if (v2 == slot)
{
log(DEBUG,"Item %s already in slot %d!",modulename.c_str(),slot);
}