]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_satopic.cpp
Fix various rline bugs, implement /stats R, and fix the issue where you get no error...
[user/henk/code/inspircd.git] / src / modules / m_satopic.cpp
index 4394cb799f1ad23ab3bdbc6b263fa6a79516d8b9..855a5ca5685369e95f8b97fcaf979ef9158aa1da 100644 (file)
@@ -43,14 +43,11 @@ class CommandSATopic : public Command
                        ServerInstance->SNO->WriteToSnoMask('A', user->nick + " used SATOPIC on " + target->name + ", new topic: " + newTopic);
                        ServerInstance->PI->SendSNONotice("A", user->nick + " used SATOPIC on " + target->name + ", new topic: " + newTopic);
 
-                       /* I think this is right, the TOPIC message generated should be
-                        * propogated without the SATOPIC command itself having to be.
-                        */
                        return CMD_LOCALONLY;
                }
                else
                {
-                       user->WriteNumeric(401, "%s %s :No such nick/channel", user->nick.c_str(), target->name.c_str());
+                       user->WriteNumeric(401, "%s %s :No such nick/channel", user->nick.c_str(), parameters[0].c_str());
                        return CMD_FAILURE;
                }
        }
@@ -73,7 +70,7 @@ class ModuleSATopic : public Module
 
        virtual Version GetVersion()
        {
-               return Version(1, 2, 0, 0, VF_COMMON | VF_VENDOR, API_VERSION);
+               return Version("$Id$", VF_VENDOR, API_VERSION);
        }
 };