]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_remove.cpp
Fix for bug #415, affects only trunk (wish i'd known this before i started!)
[user/henk/code/inspircd.git] / src / modules / m_remove.cpp
index cbb7138d7def6f45fdcbf336221cd28964fe24ae..c8d661890bfb6f5c079265961cb0a91b8f46782c 100644 (file)
@@ -149,7 +149,7 @@ class RemoveBase
                        tlevel = chartolevel(channel->GetPrefixChar(target));
                }
                
-               hasnokicks = (ServerInstance->FindModule("m_nokicks.so") && channel->IsModeSet('Q'));
+               hasnokicks = (ServerInstance->Modules->Find("m_nokicks.so") && channel->IsModeSet('Q'));
                
                /* We support the +Q channel mode via. the m_nokicks module, if the module is loaded and the mode is set then disallow the /remove */
                if ((!IS_LOCAL(user)) || (!supportnokicks || !hasnokicks || (ulevel == ULINE)))
@@ -211,9 +211,6 @@ class cmd_remove : public command_t, public RemoveBase
                this->source = "m_remove.so";
                syntax = "<nick> <channel> [<reason>]";
                TRANSLATE4(TR_NICK, TR_TEXT, TR_TEXT, TR_END);
-
-               for (size_t x = 0; x < translation.size(); x++)
-                       printf("translation[%ld] = %ld\n", x, translation[x]);
        }
        
        CmdResult Handle (const char** parameters, int pcnt, userrec *user)