From 623c7554a2de6fcee581a4712dd8947c14a9481b Mon Sep 17 00:00:00 2001 From: w00t Date: Thu, 7 Aug 2008 15:28:29 +0000 Subject: 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 --- src/modules/m_satopic.cpp | 7 ++----- 1 file 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); } }; -- cgit v1.2.3