]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_remove.cpp
Note where to find the docs.
[user/henk/code/inspircd.git] / src / modules / m_remove.cpp
index 4dfa0bfb5c18300f3807c3b49953649f90da4e1e..2b148085e516c31069c85e756ecef0e7fcc9c0ef 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;
                }
 
@@ -180,7 +180,7 @@ class RemoveBase
                                channel->WriteChannelWithServ(ServerInstance->Config->ServerName, "NOTICE %s :%s removed %s from the channel", channel->name.c_str(), user->nick.c_str(), target->nick.c_str());
                                target->WriteServ("NOTICE %s :*** %s removed you from %s with the message: %s", target->nick.c_str(), user->nick.c_str(), channel->name.c_str(), reasonparam.c_str());
 
-                               if (!channel->PartUser(target, reason.c_str()))
+                               if (!channel->PartUser(target, reason))
                                        delete channel;
                        }
                        else
@@ -274,7 +274,7 @@ class ModuleRemove : public Module
 
        virtual Version GetVersion()
        {
-               return Version(1, 2, 1, 0, VF_COMMON | VF_VENDOR, API_VERSION);
+               return Version("$Id$", VF_COMMON | VF_VENDOR, API_VERSION);
        }
 
 };