]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_sakick.cpp
Add IS_SERVER() and REG_ALL checks to (mostly oper only) commands taking a target...
[user/henk/code/inspircd.git] / src / modules / m_sakick.cpp
index efd991ff0c6aa34f76b837bae268cce289006ed4..7dfcd8904db3b7e8531059e270274a6eac547cb5 100644 (file)
@@ -39,7 +39,7 @@ class CommandSakick : public Command
                Channel* channel = ServerInstance->FindChan(parameters[0]);
                const char* reason = "";
 
-               if (dest && channel)
+               if ((dest) && (dest->registered == REG_ALL) && (channel))
                {
                        if (parameters.size() > 2)
                        {