From: brain Date: Mon, 9 Jan 2006 22:08:46 +0000 (+0000) Subject: Fixed compile issue X-Git-Tag: v2.0.23~9318 X-Git-Url: https://git.netwichtig.de/gitweb/?a=commitdiff_plain;h=e78bb3590c517fcfa1990aace159dc2433ffbd62;p=user%2Fhenk%2Fcode%2Finspircd.git Fixed compile issue git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2760 e03df62e-2008-0410-955e-edbf42e46eb7 --- 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); }