summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-11-12 15:47:14 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-11-12 15:47:14 +0000
commitccb435a2d3a455c5e558a90c4bfb2870007c4556 (patch)
treee4ad38d1133bd5924e37b46ccf9a64e31b916718
parentddbd88314157ac990382deb4eb5d34e38097c96a (diff)
Notice back to oper on invalid SAMODE
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5706 e03df62e-2008-0410-955e-edbf42e46eb7
-rw-r--r--src/modules/m_samode.cpp6
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;
}