diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-11-12 15:47:14 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-11-12 15:47:14 +0000 |
commit | ccb435a2d3a455c5e558a90c4bfb2870007c4556 (patch) | |
tree | e4ad38d1133bd5924e37b46ccf9a64e31b916718 /src/modules | |
parent | ddbd88314157ac990382deb4eb5d34e38097c96a (diff) |
Notice back to oper on invalid SAMODE
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5706 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules')
-rw-r--r-- | src/modules/m_samode.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
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<std::string> 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; } |