]> git.netwichtig.de Git - user/henk/code/inspircd.git/commitdiff
Fixed compile issue
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>
Mon, 9 Jan 2006 22:08:46 +0000 (22:08 +0000)
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>
Mon, 9 Jan 2006 22:08:46 +0000 (22:08 +0000)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2760 e03df62e-2008-0410-955e-edbf42e46eb7

src/inspircd.cpp

index 16b450ec977592ce76262fd45d2d83bbefb44e15..7ccbef91d31f924d5d311bd90571dc0132602520 100644 (file)
@@ -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);
        }