summaryrefslogtreecommitdiff
path: root/src/modules/m_satopic.cpp
diff options
context:
space:
mode:
authorw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>2008-08-07 15:28:29 +0000
committerw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>2008-08-07 15:28:29 +0000
commit623c7554a2de6fcee581a4712dd8947c14a9481b (patch)
tree7e1717c5fcbf8461c052f1c496df5dcedbb93a44 /src/modules/m_satopic.cpp
parent9ebc0997ccd8c6eea8742d0f9c59b9e3f78c85fc (diff)
Fixes to m_satopic from danieldg, closes bug #586. Thanks.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10112 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules/m_satopic.cpp')
-rw-r--r--src/modules/m_satopic.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/modules/m_satopic.cpp b/src/modules/m_satopic.cpp
index 4394cb799..f03684ccb 100644
--- a/src/modules/m_satopic.cpp
+++ b/src/modules/m_satopic.cpp
@@ -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(1, 2, 0, 0, VF_VENDOR, API_VERSION);
}
};