]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_remove.cpp
Add extban types +bb R: and M: - stops matching account masks from joining and speaki...
[user/henk/code/inspircd.git] / src / modules / m_remove.cpp
index d35f1f8ddf1f9aeb8cbd9e3408328fd416c128e3..5ded9bda0e23635870ea1e2134cc11ff23cb5b5d 100644 (file)
@@ -99,7 +99,7 @@ class RemoveBase
                /* Fix by brain - someone needs to learn to validate their input! */
                if (!target || !channel)
                {
-                       user->WriteNumeric(401, "%s %s :No such nick/channel", user->nick.c_str(), !target ? username : channame);
+                       user->WriteNumeric(ERR_NOSUCHNICK, "%s %s :No such nick/channel", user->nick.c_str(), !target ? username : channame);
                        return CMD_FAILURE;
                }