From ccb435a2d3a455c5e558a90c4bfb2870007c4556 Mon Sep 17 00:00:00 2001 From: brain Date: Sun, 12 Nov 2006 15:47:14 +0000 Subject: Notice back to oper on invalid SAMODE git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5706 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_samode.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/modules/m_samode.cpp b/src/modules/m_samode.cpp index 34278101e..1f68e48bf 100644 --- a/src/modules/m_samode.cpp +++ b/src/modules/m_samode.cpp @@ -61,7 +61,7 @@ class cmd_samode : public command_t if (ServerInstance->Modes->GetLastParse().length()) { - ServerInstance->WriteOpers(std::string(user->nick)+" used SAMODE: "+ServerInstance->Modes->GetLastParse()); + ServerInstance->WriteOpers("*** " + std::string(user->nick) + " used SAMODE: " + ServerInstance->Modes->GetLastParse()); std::deque n; irc::spacesepstream spaced(ServerInstance->Modes->GetLastParse()); @@ -78,6 +78,10 @@ class cmd_samode : public command_t */ return CMD_FAILURE; } + else + { + user->WriteServ("NOTICE %s :*** Invalid SAMODE sequence.", user->nick); + } return CMD_FAILURE; } -- cgit v1.2.3